# Affiliate.com · Search products

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.

- Provider: Alexandria
- Category: SEO
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `affiliate-com/products/search`
- Page: https://spiral.ai/tools/alexandria/affiliate-com/products/search

## Pricing

$0.043648 per call.

## Limits

- 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

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `page` | number | 1 to … | — | Page number, starting at 1. |
| `after` | text |  | — | Deep-pagination cursor from the previous response's meta.after, for results past 10,000 on plans that allow it. |
| `query` | JSON |  | — | Rule builder `{ rules_operator: any\|all, rules: [{ conditions_operator, conditions: [{ field, operator, value }] }] }`. Exclusive with keyword and search. |
| `facets` | list |  | — | Aggregations to include: network, merchant, final_price, or dotted sub-fields such as network.name. |
| `fields` | list |  | — | Product fields to return, for example `id`, `name`, `final_price`, `urls`. |
| `search` | JSON |  | — | 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. |
| `keyword` | text |  | — | Plain-text search such as `JBL speaker`; sent as the string form of `search`. |
| `sort_by` | one 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_page` | number | 1 to 50 | — | Products per page, 1 to 50. Defaults to 10 here. |
| `sort_order` | one of | asc, desc | — | Sort direction. |
| `exact_total` | true or false |  | — | Count meta.total past 10,000 precisely, at some extra latency. |
| `balanced_mix` | JSON |  | — | `{ field, max_per_value, interleave?, weights? }` to keep one merchant or brand from dominating. Not combinable with duplicate_fields_to_exclude. |
| `duplicate_fields_to_exclude` | text |  | — | 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. |

## Example

```bash
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>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=affiliate-com%2Fproducts%2Fsearch

## Common questions

### Affiliate.com · Search products

**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.

