How to use Affiliate.com with your AI agent

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, pays for that single call from a USDC wallet over x402 or MPP, and receives structured product data in reply, with no signup and no API key. For steady volume, it can buy prepaid Credits from $0.50 and draw them down.
In short
- Send product searches to
POST /v1/productsonhttps://zeroclick.affiliate.com, then pay the $0.02 402 that comes back. - To compare one product across stores, search with a
barcodefilter and sort byfinal_price, using a conversion call to find the barcode first, though 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.
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, which Affiliate.com puts at 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. We tell the story of the partnership in Affiliate.com × ZeroClick: commerce data any agent can buy.
Affiliate.com serves the catalog to agents from a storefront on its own domain: a machine-readable store that acts as a transparent proxy in front of its API and handles payment, identity and forwarding, so 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?
What agents use Affiliate.com for
The storefront sells Product Search, Merchants and Tool Convert, each matched below to the jobs it handles.
| 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, and numeric fields add >, <, >= and <=. The API reference 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, and 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 two cents. An errand of five searches, one merchant lookup and one conversion costs $0.14. The smallest Credits purchase, $0.50, covers 25 calls, and $25 covers 1,250.
Prices come from the live price list. Every 402 states the exact amount before your agent pays, so read the price at call time instead of caching it.
How to buy and call Affiliate.com from your agent
- 01Point your agent at
https://zeroclick.affiliate.com, whose agent guide links the services, prices and payment instructions. - 02Match 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, which needs no wallet and never buys anything. - 03Send the request to the storefront with its path and JSON body and no payment header, and the storefront answers with a priced 402.
- 04Check the 402's
payment.amountUsdagainst your budget before you pay. - 05Pay the challenge from your wallet, with x402 for USDC on Base or MPP for USDC on Tempo.
- 06Retry the identical request, byte for byte, with the payment proof attached, because the payment is bound to the body it priced.
- 07Read
datafrom the response, and usemetafor paging:pagefor the next page, or themeta.aftercursor beyond 10,000 results.
Example requests
Send the search unpaid first. This one asks for three matches on a product name:
POST https://zeroclick.affiliate.com/v1/products
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/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
Sign the challenge and resend the same request with the proof. On x402, the payload goes in x-payment. On MPP, send Authorization: Payment <credential> instead:
POST https://zeroclick.affiliate.com/v1/products
Content-Type: application/json
x-payment: <signed x402 payload>
{"search": "JBL Charge 5", "per_page": 3}
We sent this search on 13 October 2026 at 06:46 UTC, paid through Zero, ZeroClick's own payment layer for agents, and it 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:
{
"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:
POST https://zeroclick.affiliate.com/v1/tools/convert/url-to-barcode
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:
{
"data": {"<submitted URL>": "<array of barcodes, empty when nothing matched>"},
"meta": {"from": "url", "to": "barcode", "from_total": "<number>", "to_total": "<number>", "trace_id": "<string>"}
}
We converted that page for the same speaker, and 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, and the delivered call was still paid. Check to_total before your agent relies on a conversion.
If your agent has no wallet
Your agent still has these options:
Create a wallet. Your agent can set one up itself, at no cost and with no signup, then follow the steps above.
Buy Credits by card. Card pays 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. Register a free agent credential with the identity guide. Then buy at the Credits plan's
purchase.url, whose plan id is in the price list, with anamountUsdof at least $0.50 and"checkout": truefor a hosted card page.Use a shared payment token. A card-eligible 402 carries a
method="stripe"challenge. Answer it with yourspt_credential inAuthorization, and on purchases send your bearer inZC-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
statusUrluntil the payment completes. The card checkout instructions 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 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, so use the storefront's quote for agent pricing.
Request limits. In a search, search and the rule-based query builder are mutually exclusive, and 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, and 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 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) |
Buying Credits needs a registered agent credential. Register one and retry with the bearer. |
Frequently asked questions
Does Affiliate.com need an API key for AI agents?
No. Through the ZeroClick storefront, your agent pays each request with a signed payment, which also identifies it, so it needs no signup and no API key.
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.