---
title: "How to use Affiliate.com with your AI agent | ZeroClick"
url: https://zeroclick.ai/resources/how-to-use-affiliate-com-with-your-ai-agent
fetched_at: 2026-11-22T14:21:59.254Z
---

# ZeroClick API catalog and pricing

## API reference, endpoint lookup and prices

**[ZeroClick API catalog: endpoints, request parameters, prices and payment methods](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/zeroclick/agent/guide).** Tell the seller advisor what you want to accomplish. It returns the matching operation contract, known prices, authentication prerequisites and concrete next steps. It is read-only: no login, wallet, card or purchase approval is needed to look up an API. It never executes a sale.

Available API services: Agent readiness report, Demo booking.

**Suggested next request:** GET [task guide](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/zeroclick/agent/guide?goal=URL_ENCODED_TASK). Use this URL directly with your web fetch tool; no preliminary document fetch is required. Include known inputs and desired output in the goal. Optional: quantity=API_CALL_COUNT, budgetUsd=TOTAL_USD, requirements=REQUIREMENTS, payment=x402|mpp|card, auth, identity, assertion and access state. Omit unknowns. Do not equate output items with API calls or guess a call count.

For private task details or known request arguments, POST https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/zeroclick/agent/guide with Content-Type: application/json. Example: {"intent":"quote","goal":"YOUR_TASK","purchase":{"budgetUsd":"5.00"}}. Replace the task and budget with known facts; budgetUsd is a string. Include known buyerState, paymentCapabilities and arguments. For execution planning use intent=execute and the authorized constraints. Exact fields: [request schema](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/zeroclick/agent/schema). GET and POST are alternatives, not mandatory stages.

The advisor describes a recommended happy path, not the only allowed path. You may use the API reference, buyer SKILL and your own tools directly, including for catalog operations with failed probes. Missing guidance or an unverified probe is not a policy refusal. The returned requests are documented API calls; fill in the documented inputs. Check usage cost AND minimum cash required against the budget. For needs_input, supply only missing facts. Keep secrets local, and never put credentials or private payloads in URLs. Unknown does not mean absent.

For a human's credit or plan purchase, reuse an existing ZeroClick credential first. If the Link CLI is already installed and signed in for that person, you can use their Link account for identity as well as payment, sharing their email only if they agree: follow [Link identity setup](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/auth.md#link-identity-preview) through issuance, presentation, registration and token exchange. Otherwise register anonymously; no Link setup is needed, and the person can claim the identity later.

Open the checkout URL in a browser: eligible Stripe pages support Link Pay Tokens (LPT) through WebMCP or the documented DOM flow. Follow this storefront's /payment/card.md to verify the same-frame token input and merchant binding before requesting an LPT. Token submission requires payment authorization. If unavailable, privately send the checkout URL to your human to pay.

When the selected route uses hosted checkout, follow [card checkout instructions](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/payment/card.md) before requesting a token. LPT goes only to Stripe, never to the advisor or ZeroClick API. Poll the returned statusUrl before using credit or retrying delivery.

Verify delivery; a payment or HTTP 202 is not completion. For an unexpected result, POST the original input and continuation (version, stepId, outcome and sanitized error/accessId/paymentId). Reconcile uncertain payments or writes before retrying. Use raw HTTP for exact schemas and authenticated execution; do not reconstruct fields omitted by a summarizing web tool.

The human subscription prices on the requested page describe a separate channel. Use the API quote for per-unit pricing, funding minimums and commercial terms; tier names do not prove quality or licensing.

For an alternative documented path, use the [buyer SKILL](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/SKILL.md) or [full direct workflow reference](https://agents.zeroclick.ai/zcj/p2fsw28p9cpb/llms-full.txt). Confirm missing request details from seller documentation, stay within the existing catalog and what your user asked for, and respect actual access and payment requirements.
Terms: by completing a purchase through this endpoint, whether directly or through an AI agent acting on your behalf, you agree to be bound by the platform's buyer terms of service (https://www.zeroclick.ai/legal/buyer-terms-of-service). If the purchase is made by an agent, you represent and warrant that the agent is acting with your authorization, and you agree that the agent's actions, including its acceptance of these terms, are attributed to you and bind you as if you had taken them yourself. Paying a 402 challenge completes the purchase and constitutes your affirmative acceptance of the terms linked above. The link travels in every payment challenge and receipt as `terms`.

# How to use Affiliate.com with your AI agent

*October 14, 2026 · 11 min read · [Resources](https://zeroclick.ai/resources)*

Affiliate.com, which sells through ZeroClick, gives your AI agent product search across its merchants, merchant lookup, and conversion between barcodes, merchant SKUs, Amazon ASINs and retailer product URLs, at $0.02 a request. Your agent sends its call to the [Affiliate.com storefront](https://zeroclick.affiliate.com) with a free agent credential, pays for that single call from a USDC wallet over x402 or MPP, and receives structured product data in reply. For steady volume, it can buy prepaid Credits from $0.50 and draw them down.

**In short:**

- Send product searches to `POST /v1/products` on `https://zeroclick.affiliate.com`, then pay the $0.02 402 that comes back.
- To compare one product across stores, search with a `barcode` filter and sort by `final_price`, using a conversion call to find the barcode first. A conversion can return no match.
- Every service costs $0.02 per request, so a ten-call shopping errand costs $0.20.
- An agent without a wallet can create one at no cost, buy Credits by card from $0.50, or hand the purchase to a person.

## Contents

- [What Affiliate.com is](#what-affiliate-com-is)
- [What agents use Affiliate.com for](#what-agents-use-affiliate-com-for)
- [Prices](#prices)
- [How to buy and call Affiliate.com from your agent](#how-to-buy-and-call-affiliate-com-from-your-agent)
- [Example requests](#example-requests)
- [If your agent has no wallet](#if-your-agent-has-no-wallet)
- [What to know](#what-to-know)
- [Frequently asked questions](#frequently-asked-questions)

## What Affiliate.com is

Affiliate.com delivers structured, real-time product data to publishers, networks and brands, for AI-powered and traditional shopping alike. It gathers product data from affiliate networks around the world and normalizes it into one searchable catalog of more than a billion products from merchant programs around the world. Every product carries the same structured fields for brand, price, currency and availability. It also carries the identifiers that let one item be recognized in many stores: barcode, SKU, MPN and ASIN.

That normalization is what an agent needs when it shops. Ask an agent for the best price on a particular speaker, and it finds the same item under a different name, price and identifier in every store. Lining those listings up is an identifier problem, and Affiliate.com's catalog was built to solve it. The full story of the partnership is in [Affiliate.com × ZeroClick: commerce data any agent can buy](https://zeroclick.ai/blog/affiliate-com-commerce-data-any-agent-can-buy).

Affiliate.com serves the catalog to agents from a storefront on its own domain. The storefront is a machine-readable store that acts as a transparent proxy in front of its API and handles payment, identity and forwarding. Your agent sends the same method, path and body it would send the API itself. For how storefronts work, see [What is an agent storefront?](https://zeroclick.ai/resources/what-is-an-agent-storefront)

## What agents use Affiliate.com for

The storefront sells Product Search, Merchants and Tool Convert.

| Job your agent is given | Service | Path | What to send |
|---|---|---|---|
| Find a product across online stores by name or keyword | Product Search | `POST /v1/products` | `search` as a string, optional `per_page` |
| Compare one product's price across stores | Product Search | `POST /v1/products` | `search` filter on `barcode`, `sort_by: final_price`, `sort_order: asc` |
| Shortlist products under a price, or on sale | Product Search | `POST /v1/products` | `search` filters on `final_price` or `on_sale` |
| Look up a store by name or domain | Merchants | `GET /v1/merchants?search=` | query `search`, optional `country_ids` |
| Get one merchant's details | Merchants | `GET /v1/merchants/{id}` | a numeric id, `nmer_` ULID or slug |
| Find the barcode for a retailer product page | Tool Convert | `POST /v1/tools/convert/url-to-barcode` | `data`: full URLs |
| Turn a barcode into an Amazon ASIN | Tool Convert | `POST /v1/tools/convert/barcode-to-asin` | `data`: barcodes |
| Turn an ASIN into a barcode | Tool Convert | `POST /v1/tools/convert/asin-to-barcode` | `data`: up to 10 ASINs, `config.asin.locale` |
| Map a barcode to a store's SKU, or back | Tool Convert | `POST /v1/tools/convert/barcode-to-sku`, `/sku-to-barcode` | `data`, plus `config.merchant.name` or `.url` |

A search returns product records with name, brand, barcode, prices, currency, availability and merchant. Merchant lookups return each store's domains, countries and product count. Conversions map each identifier you sent to its matches.

A search filter is an object with `field`, `operator` and `value`. Text fields take `=`, `!=`, `LIKE` and `NOT LIKE`. Numeric fields also take `>`, `<`, `>=` and `<=`. The [API reference](https://zeroclick.affiliate.com/openapi.json) lists every field.

The services work together: convert a product page to a barcode, then search with a `barcode` filter and `sort_by: final_price`. That is two requests at $0.02 each. A conversion can find no match, so check it before the search.

## Prices

| Service | Paths | Price |
|---|---|---|
| Product Search | `POST /v1/products` | $0.02 per request |
| Merchants | `GET /v1/merchants`, `GET /v1/merchants/{id}` | $0.02 per request |
| Tool Convert | the five conversion paths | $0.02 per request |
| Credits plan | prepaid balance at the same rates | $0.50 minimum purchase |

The meter counts requests, not results. Converting 10 ASINs in one `asin-to-barcode` call costs $0.02. An errand of five searches, one merchant lookup and one conversion costs $0.14. The smallest Credits purchase, $0.50, covers 25 calls. $25 covers 1,250.

Prices come from the live [price list](https://zeroclick.affiliate.com/manifest.json). Every 402 states the exact amount before your agent pays. Read the price at call time instead of caching it.

## How to buy and call Affiliate.com from your agent

1. Point your agent at `https://zeroclick.affiliate.com`. Its [agent guide](https://zeroclick.affiliate.com/llms.txt) links the services, prices and payment instructions.

2. Match the task to a service and path from the table above. You can also ask the free task guide at `https://zeroclick.affiliate.com/zeroclick/agent/guide?goal=URL_ENCODED_TASK`. This endpoint needs no wallet and never buys anything.

3. Send the request to the storefront with its path and JSON body. Include your agent's credential as `Authorization: Bearer <token>` and no payment header. The storefront answers with a priced 402. Register the credential free once through the [identity guide](https://zeroclick.affiliate.com/auth.md). One registration works at every ZeroClick storefront, so reuse one your agent already holds.

4. Check the 402's `payment.amountUsd` against your budget before you pay.

5. Pay the challenge from your wallet: x402 for USDC on Base, or MPP for USDC on Tempo.

6. Retry the identical request, byte for byte, with the payment proof attached and the same bearer. The payment is bound to the body it priced.

7. Read `data` from the response. Use `meta` for paging: `page` for the next page, or the `meta.after` cursor beyond 10,000 results.

## Example requests

Send the search unpaid first. This one asks for three matches on a product name:

```http
POST https://zeroclick.affiliate.com/v1/products
Authorization: Bearer <access token>
Content-Type: application/json

{"search": "JBL Charge 5", "per_page": 3}
```

The reply is a 402. Its body carries `payment.amountUsd`, the `plan` and a `protocols` block with a challenge for each rail. The signable challenges also arrive as headers, so a standard x402 or MPP client can settle them without reading the body:

```http
HTTP/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
```

Sign the challenge and resend the same request with the proof and the same bearer. On x402, the payload goes in `x-payment`. On MPP, send `Authorization: Payment <credential>` and move the bearer to `ZC-Agent-Authorization`:

```http
POST https://zeroclick.affiliate.com/v1/products
Authorization: Bearer <access token>
Content-Type: application/json
x-payment: <signed x402 payload>

{"search": "JBL Charge 5", "per_page": 3}
```

This search was sent on 13 October 2026 at 06:46 UTC, paid through Zero (ZeroClick's own payment layer for agents), and returned 200 in 4,307 milliseconds for $0.02. The response held three product records under `data`, along with `meta` paging fields and `links` to the next page. Its shape, with fields trimmed:

```json
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "brand": "<string>",
      "category": "<string>",
      "barcode": "<string>",
      "identifiers": {"gtin": "<string>", "upc": "<string or null>", "asin": "<string or null>"},
      "currency": "<string>",
      "regular_price": "<number>",
      "final_price": "<number>",
      "availability": "<string>",
      "merchant": {"id": "<number>", "name": "<string>", "canonical_id": "<string>"},
      "updated_at": "<string>"
    }
  ],
  "meta": {"total": "<number>", "current_page": "<number>", "last_page": "<number>", "after": "<string or null>", "trace_id": "<string>"},
  "links": {"self": "<string>", "next": "<string>"}
}
```

A conversion follows the same 402 and paid retry. This one asks for the barcode behind a retailer's product page:

```http
POST https://zeroclick.affiliate.com/v1/tools/convert/url-to-barcode
Authorization: Bearer <access token>
Content-Type: application/json

{"data": ["https://www.abt.com/JBL-Charge-5-Black-Portable-Waterproof-Speaker-With-Powerbank-JBLCHARGE5BLKAM/p/159497.html"]}
```

The response maps each submitted URL to an array of barcodes, with `meta` counting what you sent and what resolved:

```json
{
  "data": {"<submitted URL>": "<array of barcodes, empty when nothing matched>"},
  "meta": {"from": "url", "to": "barcode", "from_total": "<number>", "to_total": "<number>", "trace_id": "<string>"}
}
```

That page was converted for the same speaker. The call returned 200 in 4,496 milliseconds for $0.02. For that URL, `data` held an empty array, which means no match was found. The call was still charged. Check `to_total` before your agent relies on a conversion result.

## If your agent has no wallet

Your agent still has these options:

- **Create a wallet.** Your agent can set one up at no cost, then follow the steps above.
- **Buy Credits by card.** Card payment works for buying a plan, and for a pay-as-you-go call only when it costs $0.50 or more. A single $0.02 call is below that floor, so prepaid Credits are the card route. With the same agent credential, buy at the Credits plan's `purchase.url` (the plan id is in the price list), with an `amountUsd` of at least $0.50 and `"checkout": true` for a hosted card page.
- **Use a shared payment token.** A card-eligible 402 carries a `method="stripe"` challenge. Answer it with your `spt_` credential in `Authorization`. On purchases, send your bearer in `ZC-Agent-Authorization`.
- **Hand the checkout to a person.** The hosted checkout URL needs no funds to create. Send it privately to whoever approves the purchase, then poll its `statusUrl` until the payment completes. The [card checkout instructions](https://zeroclick.affiliate.com/payment/card.md) cover browser agents paying with Link Pay Tokens.

Credits also work from a wallet. Calls draw down the balance, and `POST /extend` with an `amountUsd` tops it up. The [payment guide](https://zeroclick.affiliate.com/payment.md) covers each rail.

## What to know

**What the storefront covers.** The subscription prices on Affiliate.com's own pages are a separate channel for people. Use the storefront's quote for agent pricing.

**Request limits.** In a search, `search` and the rule-based `query` builder are mutually exclusive. `facets` takes up to 20 aggregations. `asin-to-barcode` takes up to 10 ASINs per request and needs an Amazon locale such as `US`. The SKU conversions need the source merchant's name or domain.

**What is charged, and when.** Each pay-as-you-go call is one 402 and one charge. Paying it completes the purchase under ZeroClick's buyer terms. A failed delivery debits nothing. A delivered response with no `zc-billing` header billed nothing. Once a paid call reaches Affiliate.com, your agent receives Affiliate.com's own status code and body, including its errors.

**Errors worth handling.** The [error reference](https://zeroclick.affiliate.com/errors.md) lists every code. These are the ones your agent is most likely to meet:

| Error | What to do |
|---|---|
| `payment_request_mismatch` (409) | The payment was spent on a different request. Get a fresh 402 for this one and pay it. |
| `settlement_failed` | Fix the wallet (for example, `insufficient_funds`), then start over for a fresh challenge. |
| `payment_consumed` | The payment already settled. Check the original request's delivery before paying again. |
| `bearer_required` (401) | The call carried no agent credential. Register at the [identity guide](https://zeroclick.affiliate.com/auth.md) and retry with the bearer. |

## Frequently asked questions

### Does Affiliate.com need an API key for AI agents?

No Affiliate.com account or API key is needed. Every call carries a free agent credential from the [identity guide](https://zeroclick.affiliate.com/auth.md), registered once and anonymously if you like. Each request is then paid with a signed payment from your agent's wallet.

### How much does the Affiliate.com API cost per request?

Product search, merchant lookup and identifier conversion each cost $0.02 per request. Prepaid Credits start at $0.50, which covers 25 calls.

### Can my agent pay Affiliate.com with x402?

Yes. The x402 challenge arrives in the 402's `payment-required` header for USDC on Base. Your agent then retries the same request with the signed payload in `x-payment`.

### How do I convert a barcode to an ASIN with an AI agent?

Send the barcodes as a `data` array to `POST /v1/tools/convert/barcode-to-asin` on the Affiliate.com storefront and pay the $0.02 challenge. The response maps each barcode to its ASIN and marketplace locale.

### Can my agent use Affiliate.com without a crypto wallet?

Yes. It can create a wallet at no cost, buy Credits by card from $0.50, or hand a hosted checkout or tracked link to a person.

### Do I have to use an AI agent to use Affiliate.com?

No. People and teams can use Affiliate.com's own REST API with a bearer token generated at Settings > API Keys, or connect through its hosted MCP server. You can also schedule a demo at [affiliate.com](https://www.affiliate.com/).

---

*More guides in this series: [How to use Firmable with your AI agent](https://zeroclick.ai/resources/how-to-use-firmable-with-your-ai-agent) · [How to use Scalelist with your AI agent](https://zeroclick.ai/resources/how-to-use-scalelist-with-your-ai-agent) · [How to use TickerLayer with your AI agent](https://zeroclick.ai/resources/how-to-use-tickerlayer-with-your-ai-agent) · [All resources](https://zeroclick.ai/resources#get-more-done)*
