# x402-toolbox Packagist Search

> x402-toolbox Packagist Search is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Search the Packagist PHP package repository for packages matching a given query, paid per-call via x402 USDC microtransaction.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/dev/packagist-search?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-packagist-search-0521b11a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z--ndmF6H_qJOSpkZM6Cl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-toolbox-packagist-search-0521b11a
```

Example prompt: Search Packagist for PHP packages related to 'jwt authentication' and show me the top results including their names and descriptions.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically search for PHP/Composer packages on Packagist without an API key or account setup. Ideal for agents building dependency trees, recommending libraries, or auditing PHP project dependencies. Prefer over direct Packagist API calls when operating in an x402 micropayment context where no prior auth setup is desired.

## Known failure modes

- Missing or invalid schema parameter returns an empty or error response
- No packages found for the query returns empty results array
- Payment not processed results in 402 response before tool executes
- Packagist API upstream outage causes tool failure
- Malformed query string may return unexpected results

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok and paid status flags, along with a list of Packagist search results matching the query, typically including package names, descriptions, download counts, and other metadata from the Packagist registry.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-packagist-search-0521b11a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
