# AgentMarket agent quickstart

> Find AI agents, MCP servers, A2A agents, APIs and tools for a task, then give your user grounded links. Search → inspect → compare → open.

## 1. Search by task

Describe the job in plain words. Add filters to narrow it. Each result has a stable `id`, a `slug`, a canonical `url` and a `detailsUrl`. Page with `page` while `hasMore` is true.

```
curl 'https://www.agentmarket.trade/api/search?q=extract+data+from+PDFs&interface=mcp&pricing=free,freemium&limit=5'

{
  "schemaVersion": "1", "query": "extract data from PDFs", "total": 7, "page": 1, "limit": 5, "hasMore": true, "nextPage": 2,
  "organic": [{ "id": "…", "slug": "llamaparse", "name": "LlamaParse", "description": "…",
    "url": "https://www.agentmarket.trade/products/llamaparse", "detailsUrl": "https://www.agentmarket.trade/api/products/llamaparse",
    "pricing": { "display": "Free tier, then from $…", "model": "freemium" }, "interfaces": ["mcp", "rest_api"],
    "claimed": false, "demo": false, "publishedAt": "…", "updatedAt": "…" }],
  "sponsored": []
}
```

## 2. Inspect one listing

Get full details by slug or id: long description, capabilities, every pricing plan, interfaces with endpoint and docs URLs, provider website. Fields the provider never published are listed in `unknownFields`; treat them as unknown, not as free or unsupported.

```
curl 'https://www.agentmarket.trade/api/products/llamaparse?fields=id,name,pricing,interfaces'
```

## 3. Compare

Fetch details for each candidate, or use the MCP `compare_products` tool or an A2A data part with `slugs`. To show a person, link the compare page.

```
curl https://www.agentmarket.trade/api/a2a -H 'Content-Type: application/json' -H 'A2A-Version: 1.0' \
  -d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{"role":"ROLE_USER","messageId":"m1","parts":[{"data":{"slugs":["llamaparse","docling"]}}]}}}'

https://www.agentmarket.trade/compare?products=llamaparse,docling
```

## 4. Open

Cite the listing's `url` (its canonical AgentMarket page) as evidence, and send the user to `outboundUrl` (the provider's website, tagged so they know you came from AgentMarket) to sign up with the provider. AgentMarket offers provider-enabled trials; use an agent key to try eligible tools before signing up.

```
https://www.agentmarket.trade/products/llamaparse
```

## Rules

- Catalog discovery is read-only and free, no API key or sign-in. Trials require Authorization: Bearer <agent key> from https://www.agentmarket.trade/settings/agent-keys and share the owner's normal trial limits.
- Trials: GET https://www.agentmarket.trade/api/products/{slug}/trial/operations; POST https://www.agentmarket.trade/api/products/{slug}/trial/run with {"tool":"…","arguments":{}}. MCP get_trial_operations/run_trial; A2A skills get-trial-operations/run-trial. Send Authorization: Bearer <agent key> on each request.
- Trust filters: verified and demo each accept true, false or "unknown". Omit for all states. Unknown never matches false/true; demo means illustrative sample, not runnable trial availability. Search responses echo filters and trust status while retaining fieldProvenance. Reference: https://www.agentmarket.trade/docs/trust-filters.
- Structured capability schema: https://www.agentmarket.trade/api/capability-schema (v1). Use capabilityFilters: [{field, op, value}] for AND filters in MCP/A2A, or a JSON-encoded capabilityFilters query parameter in HTTP. Boolean/enum: eq, ne; numeric: eq, ne, gt, gte, lt, lte; sets: has; evidence: status. Unknown/not_supported never match value predicates, including ne. Docs: https://www.agentmarket.trade/docs/capabilities.
- Response projection: GET https://www.agentmarket.trade/api/products/{slug-or-id}?fields=id,name,pricing or MCP get_product with fields:["id","name","pricing"]. Bulk: POST https://www.agentmarket.trade/api/products/bulk with {"ids":["ID_OR_SLUG","ANOTHER"],"fields":["id","name"]}, MCP get_products or A2A skill get-products. 1–20 identifiers, ordered per-item errors, one shared rate-limit unit per call, 128 KiB per product/512 KiB bulk catalog response. Reference: https://www.agentmarket.trade/docs/listing-retrieval. Search also supports fields projection and limit 1–100; capabilityFilters is the canonical name for capability conditions, with legacy fields object arrays still supported.
- Comparison differences: MCP compare_products or A2A data {"slugs":["a","b"]} preserves full profiles and adds differencesSchemaVersion:1 plus normalized differences with JSON Pointer fields, listing IDs/values/states, materiality and provenance-based verification/freshness. Identical fields are omitted. Reference: https://www.agentmarket.trade/docs/comparison-differences.
- Listing history: GET https://www.agentmarket.trade/api/products/{slug}/history, MCP get_product_history, A2A skill get-product-history. Optional type=pricing_changed, limit 1–50 and cursor=nextCursor. Retains prior published changes while a listing is unavailable; drafts and credentials stay private. Reference: https://www.agentmarket.trade/docs/listing-history.
- Catalog sync: GET https://www.agentmarket.trade/api/changes?since=<ISO timestamp>, MCP get_catalog_changes, A2A skill get-catalog-changes. Follow nextCursor, then poll with syncToken as after. 90-day window; page cursors expire in 24h. Removed events are public tombstones, not private drafts. Reference: https://www.agentmarket.trade/docs/catalog-changes.
- Listing details include health.mcp: the latest scheduled probe of the listing's MCP endpoint (initialize + tools/list, twice a day) with status pass, fail or auth_required, toolCount, latencyMs, lastCheckedAt and an error code; null until the current endpoint has been probed.
- Only published listings are returned. Listings with "demo": true are illustrative examples, not real products.
- "claimed": false means the listing was compiled from the provider's public site and may be out of date; "publishedAt" is its first public availability (null if unknown historically); "updatedAt" is its last material public change. sort=newest orders by first publication; sort=updated orders by material update. Responses are live, not cached.
- Rate limit: 60 requests a minute per IP, shared across all endpoints. Over the limit you get HTTP 429 with Retry-After.
- Optional: send a stable X-Client-Id header (1–128 visible ASCII characters, no personal data) so repeat calls from changing IPs count as one anonymous caller in our usage stats. It is only stored as a salted hash that changes weekly.
- Errors are JSON: {"error": "invalid_input" | "not_found" | "rate_limited" | "internal_error", "message": "…"}. Invalid filters return 400 with an "errors" object per field.
- Same data over MCP (https://www.agentmarket.trade/mcp) and A2A (https://www.agentmarket.trade/.well-known/agent-card.json). Setup for each agent: https://www.agentmarket.trade/api#mcp

## Search filters

- verified: true, false, unknown
- demo: true, false, unknown
- type: agent, mcp_server, a2a_agent, api, web_app, tool
- pricing: free, freemium, subscription, per_call, per_task, usage_based, one_time, custom
- interface: web, rest_api, mcp, a2a
- category: finance, research, coding, productivity, documents, data, creative, travel, shopping, developer-tools, other
- sort: relevance, price, popular, newest, updated
- limit: 1-100 (default 10); returned limit/maxLimit identify effective and maximum page sizes. Search response JSON is capped at 1 MiB; choose fields or a smaller limit on response_too_large.
- verified, demo: true, false or unknown (omit for all states; unknown never matches false)
- page: 1-1000

More: [API docs](https://www.agentmarket.trade/api) · [llms.txt](https://www.agentmarket.trade/llms.txt)
