# Datakoot Package Search

> Datakoot Package Search is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Search npm or cargo package registries by free-text query and return matching packages with names, descriptions, versions, and links

## Facts

- Endpoint: POST https://x402.datakoot.com/api/package_search?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-package-search-876e27ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1429C9Y9VDHyIuGyxuMeb

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 datakoot-package-search-876e27ab -d '<json body>'
```

Example prompt: Search npm for packages related to 'mcp server' and show me the top 5 results with their names, versions, and descriptions.

## When to prefer this

Use this endpoint when you need to search npm or cargo package registries by keyword or description to discover libraries, evaluate options, or find specific packages. It is especially useful for AI agents doing dependency research, auditing available tooling, or recommending libraries to developers. Prefer this over scraping npm.js or crates.io directly since it returns structured JSON with links and version data in a single call.

## Known failure modes

- Invalid ecosystem value (not npm or cargo) returns a validation error
- Empty or overly broad query returns too many low-relevance results
- Package registry unavailable causes a service error
- Limit value out of expected range may be rejected or clamped
- Payment failure via x402 means the call is not charged and the response is not returned

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

A JSON object containing the original query, the ecosystem searched, a result count, and an array of matching packages each with name, version, description, and links (npm/cargo page, bugs tracker, homepage, repository).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 10,
   "description": "Maximum number of results to return."
  },
  "query": {
   "type": "string",
   "description": "Free-text search terms, matched against package names and descriptions."
  },
  "ecosystem": {
   "enum": [
    "npm",
    "cargo"
   ],
   "type": "string",
   "description": "Package registry to look in. One of: npm, pypi, cargo."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "mcp server",
  "results": [
   {
    "name": "@notionhq/notion-mcp-server",
    "links": {
     "npm": "https://www.npmjs.com/package/@notionhq/notion-mcp-server",
     "bugs": "https://github.com/makenotion/notion-mcp-server/issues",
     "homepage": "https://github.com/makenotion/notion-mcp-server#readme",
     "repository": "git+ssh://git@github.com/makenotion/notion-mcp-server.git"
    },
    "version": "2.5.2",
    "description": "Official MCP server for Notion API"
   },
   {
    "name": "@ui5/mcp-server",
    "links": {
     "npm": "https://www.npmjs.com/package/@ui5/mcp-server",
     "bugs": "https://github.com/UI5/mcp-server/issues",
     "homepage": "https://github.com/UI5/mcp-server#readme",
     "repository": "git+https://github.com/UI5/mcp-server.git"
    },
    "version": "0.3.1",
    "description": "MCP server for SAPUI5/OpenUI5 development"
   }
  ],
  "ecosystem": "npm",
  "result_count": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-package-search-876e27ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
