Uswitch broadband · Search deals
uswitch-com/products/search_dealsGet product, price and seller data with Uswitch broadband · Search deals from Alexandria through one Spiral API key. Compare home broadband deals for a UK address (postcode + uprn from lookup_addresses) or nationally. One page per call (limit, default 20, max 50); pass next_cursor back as cursor with the same filters for the next page. Fails with not_found when Uswitch does not recognise the postcode/uprn pair. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 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
| Field | Kind | Default | Description |
|---|---|---|---|
sort | one of RANK_ASC, COST_ASC, COST_DESC, EFFECTIVE_COST_ASC, SPEED_ASC, SPEED_DESC, CONTRACT_LENGTH_ASC, CALLS_ASC, CALLS_DESC, BAND_SPEED_ASC, BAND_SPEED_DESC, REAL_SPEED_MIN_ASC, REAL_SPEED_MIN_DESC, REAL_SPEED_MAX_ASC, REAL_SPEED_MAX_DESC | — | Uswitch SORT_BY (default RANK_ASC, Uswitch's own ranking). |
uprn | text | — | UPRN of the address, from lookup_addresses. Requires postcode. Pattern: ^[0-9]{1,14}$. |
limit | number 1 to 50 | — | Deals per page, 1-50 (default 20). |
cursor | text | — | next_cursor from the previous page; keep the same filters and sort. |
postcode | text | — | Full UK postcode, e.g. 'E17 4LN' (case and inner space are normalised). Pattern: ^[A-Za-z]{1,2}[0-9][0-9A-Za-z]?\s*[0-9][A-Za-z]{2}$. |
deal_types | list | — | deal_types |
provider_ids | list | — | Only these providers (ids from list_providers or available_filters.providers). |
include_filters | true or false | — | Include available_filters facet counts (default true). |
connection_types | list | — | connection_types |
contract_lengths | list | — | Only these contract lengths in months, e.g. [12, 24]. |
max_monthly_cost | number 0 to … | — | Only deals whose monthly price is at most this many pounds. |
speed_categories | list | — | speed_categories |
min_download_speed_mbps | number 0 to … | — | Only deals with at least this advertised download speed. |
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": "uswitch-com/products/search_deals",
"input": {
"sort": "RANK_ASC"
}
}'Frequently asked questions
How much does Uswitch broadband · Search deals cost?
$0.00873 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 Uswitch broadband · Search deals through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "uswitch-com/products/search_deals"` 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 Uswitch broadband · Search deals?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Uswitch broadband · Search deals?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.