HTTP reference
The agent-data HTTP interfaces expose catalog reads and API data requests to your application. Marketplace requests use https://agent-data.motie.dev.
The get data guide shows one complete search, contract read, and data call.
Authentication and addresses
Section titled “Authentication and addresses”Supply your API key through AGENT_DATA_API_KEY. The Bash and zsh examples send it in the Authorization: Bearer header. See API-key setup.
| Address | Purpose |
|---|---|
https://agent-data.motie.dev | Catalog, contract, account, notification, and build requests. |
https://api.agent-data.dev/<handle> | Data requests for the API identified by that handle. Use the contract’s api.base_url. |
Read the base URL and operation path from the current contract. For example, YouTube’s base URL is https://api.agent-data.dev/youtube-com.
Append /v1/search-videos once for its search operation. Keep the handle in the base URL.
Platform reads
Section titled “Platform reads”| Method and path | Inputs | Result |
|---|---|---|
GET /api/v2/marketplace/search | Required q. Optional limit, direct_offset, related_offset, offset, category, and tags. | Direct and related API results. |
GET /api/v1/marketplace/listings | Optional limit, offset, category, and tags. | Listings and pagination. |
GET /api/v1/marketplace/listings/{api-reference}/docs | The API handle in the path. | The API contract. |
GET /api/v1/account | Optional full=true. | Account details. |
This contract request uses the YouTube handle, youtube-com.
curl --fail-with-body --silent --show-error \ -H "Authorization: Bearer $AGENT_DATA_API_KEY" \ 'https://agent-data.motie.dev/api/v1/marketplace/listings/youtube-com/docs'Use the returned api.base_url, route method, route path, and input definitions for the data request.
Data inputs
Section titled “Data inputs”| Contract location | Action |
|---|---|
path | Replace the named placeholder with the URL-encoded value. |
query | Add query-string parameters with curl’s --get --data-urlencode. |
header | Send the named HTTP header. |
request_body | Send the body with the media type from the contract. |
For an application/json body, send Content-Type: application/json. Preserve the contract’s JSON types. Numbers such as 1 differ from strings such as "1".
Send the body value itself, not the CLI’s path, query, header, or body input object. See typed inputs for real examples.
Responses and failures
Section titled “Responses and failures”Check the HTTP status, content type, and body. curl --fail-with-body --silent --show-error retains an error response body while returning a nonzero exit status.
Each API defines its response schema. There is no universal data-response object for all catalog APIs.
Retain the returned error code, message, request identifier, and timestamp. Follow troubleshooting for the correction.
HTTP data requests have no preview option. Use the CLI preview to check construction before a data call.
Requests that change data or create work
Section titled “Requests that change data or create work”| Request | Effect |
|---|---|
POST /api/v1/notify | Send JSON subject and body to your account email address. |
| Build submission | Request an API for a website. |
| Extension submission | Request an improvement to an existing API. |
Use the notification guide to preview a message with the CLI. A successful build submission is separate from publication.
When to use another interface
Section titled “When to use another interface”Use the CLI for terminal workflows and request previews. Use MCP for client tools.