Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaSEOAvailable now

Affiliate.com · Search products

affiliate-com/products/search

Get SEO and search ranking data with Affiliate.com · Search products from Alexandria through one Spiral API key. Search affiliate product listings by keyword, identifier, price, brand, merchant or network. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.043648 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
pagenumber
1 to …
—

Page number, starting at 1.

aftertext—

Deep-pagination cursor from the previous response's meta.after, for results past 10,000 on plans that allow it.

queryJSON—

Rule builder { rules_operator: any|all, rules: [{ conditions_operator, conditions: [{ field, operator, value }] }] }. Exclusive with keyword and search.

facetslist—

Aggregations to include: network, merchant, final_price, or dotted sub-fields such as network.name.

fieldslist—

Product fields to return, for example id, name, final_price, urls.

searchJSON—

Filter objects { field, value, operator }, ANDed together. Fields include any, name, brand, category, barcode, sku, asin, merchant.id, network.id, final_price, currency, availability, on_sale, merchant.countries. Operators: =, !=, LIKE, NOT LIKE, >, <, >=, <=, NOT NULL. || in value ORs values.

keywordtext—

Plain-text search such as JBL speaker; sent as the string form of search.

sort_byone of
relevance, id, barcode, ean, gtin, upc, isbn, asin, name, currency, regular_price, final_price, sale_discount, stock_quantity, commissionable_status, brand, category, color, gender, size, author, network.id, network.name, merchant.id, merchant.name, added_at, updated_at
—

Sort field: relevance, id, barcode, ean, gtin, upc, isbn, asin, name, currency, regular_price, final_price, sale_discount, stock_quantity, commissionable_status, brand, category, color, gender, size, author, network.id, network.name, merchant.id, merchant.name, added_at, updated_at.

per_pagenumber
1 to 50
—

Products per page, 1 to 50. Defaults to 10 here.

sort_orderone of
asc, desc
—

Sort direction.

exact_totaltrue or false—

Count meta.total past 10,000 precisely, at some extra latency.

balanced_mixJSON—

{ field, max_per_value, interleave?, weights? } to keep one merchant or brand from dominating. Not combinable with duplicate_fields_to_exclude.

duplicate_fields_to_excludetext—

Deduplicate by name, image_url, direct_url, barcode or merchant.id. Comma syntax applies each independently and accepts [N] caps (name,merchant.id[10]); a||b drops a row when either has appeared.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "affiliate-com/products/search",
    "input": {
      "keyword": "<keyword>"
    }
  }'

Frequently asked questions

How much does Affiliate.com · Search products cost?

$0.043648 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Affiliate.com · Search products through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "affiliate-com/products/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Affiliate.com · Search products?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Affiliate.com · Search products?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.