Skip to main content
POST
Search deals

Request contract

  • Method and path: POST /apis/v1/uswitch-com/products/search-deals
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/uswitch-com/products/search-deals
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
connection_types
string[]

connection_types

contract_lengths
number[]

Only these contract lengths in months, e.g. [12, 24].

cursor
string

next_cursor from the previous page; keep the same filters and sort.

deal_types
string[]

deal_types

include_filters
boolean

Include available_filters facet counts (default true).

limit
number

Deals per page, 1-50 (default 20).

Provider reference: minimum 1; maximum 50.

max_monthly_cost
number

Only deals whose monthly price is at most this many pounds.

Provider reference: minimum 0.

min_download_speed_mbps
number

Only deals with at least this advertised download speed.

Provider reference: minimum 0.

postcode
string

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}$.

provider_ids
string[]

Only these providers (ids from list_providers or available_filters.providers).

sort
string

Uswitch SORT_BY (default RANK_ASC, Uswitch's own ranking).

Provider reference: allowed values ["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"].

speed_categories
string[]

speed_categories

uprn
string

UPRN of the address, from lookup_addresses. Requires postcode. Pattern: ^[0-9]{1,14}$.

Response

Broadband (and broadband+TV/phone) deals from Uswitch's deals feed: provider, package, download/upload speed, monthly price and price-rise schedule, contract length, upfront/setup fees, promotions and the clickout link. With postcode and uprn the feed is availability-checked for that premise; with a postcode alone the first residential address at the postcode is used; with no address it is the national 'widely available' feed. Filter by provider, contract length, deal type, connection type, speed and price; sort; paginate with cursor.

The response contains the tool result directly.

The provider identifies deals as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.