Get deal
curl --request POST \
--url https://api.aisa.one/apis/v1/uswitch-com/products/get-deal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deal_id": "476473-2457247537"
}
'import requests
url = "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal"
payload = { "deal_id": "476473-2457247537" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({deal_id: '476473-2457247537'})
};
fetch('https://api.aisa.one/apis/v1/uswitch-com/products/get-deal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'deal_id' => '476473-2457247537'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal"
payload := strings.NewReader("{\n \"deal_id\": \"476473-2457247537\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/uswitch-com/products/get-deal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deal_id\": \"476473-2457247537\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uswitch-com/products/get-deal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deal_id\": \"476473-2457247537\"\n}"
response = http.request(request)
puts response.read_body{
"availability": null,
"broadband": {
"connection_type": null,
"download_limit_gb": 0,
"download_speed_mbps": 1000,
"estimated_download_time_seconds": 33,
"fibre": true,
"network_name": null,
"real_speeds": null,
"title": "Virgin Media Gig1 Fibre broadband ",
"unlimited_downloads": true,
"upload_speed_mbps": 104
},
"clickout_target_url": "https://www.awin1.com/cread.php?clickref={{click_ref}}&awinaffid=100908&awinmid=6399&p=https%3A%2F%2Fwww.virginmedia.com%2Fbuy%2Fquick-checkout%3FbundleId%3D1015",
"clickout_url": "https://www.uswitch.com/clk/476473/uswitch/broadband?r=https%3A%2F%2Fwww.awin1.com%2Fcread.php%3Fclickref%3D%7B%7Bclick_ref%7D%7D%26awinaffid%3D100908%26awinmid%3D6399%26p%3Dhttps%253A%252F%252Fwww.virginmedia.com%252Fbuy%252Fquick-checkout%253FbundleId%253D1015&sig=7d528cd0ffdc08f5ad3de21e6aa80f4260cf7a3c22d7022c8626ee59f4d14bfc",
"comparison_id": "5e99a8c5-8e47-4e15-8a0d-5ab4dbf7a000",
"contract_length_months": 24,
"currency": "GBP",
"customer_availability": "NEW",
"deal_id": "476473-2457247537",
"end_date": null,
"features": [],
"observed_at_ms": 1791923135470,
"pricing": {
"average_monthly_cost": 28.32,
"average_monthly_cost_purchase": 28.32,
"intro_promotion": null,
"monthly_breakdown": [
{
"end_month": 4,
"monthly_price": 23.99,
"price_rise_date": null,
"reasons": [
"initial-price"
],
"start_date": "2026-11-01",
"start_month": 0
},
{
"end_month": 16,
"monthly_price": 27.99,
"price_rise_date": "2027-04-01",
"reasons": [
"price-rise"
],
"start_date": "2027-04-01",
"start_month": 5
},
{
"end_month": 23,
"monthly_price": 31.99,
"price_rise_date": "2028-04-01",
"reasons": [
"price-rise"
],
"start_date": "2028-04-01",
"start_month": 17
}
],
"monthly_price": 23.99,
"monthly_price_after_intro": null,
"price_rise": {
"amount_broadband": 4,
"amount_telephone": 0,
"amount_total": 4,
"amount_tv": 0,
"first_rise_year": 2027,
"freeze_months": null,
"from_contract_month": null,
"frozen": false,
"is_fixed_contract": false,
"month": 4,
"no_price_rise": false,
"type": "fixed"
},
"refunded_cost": 0,
"setup_cost": 0,
"total_contract_cost": 679.76,
"upfront_components": [],
"upfront_cost": 0
},
"product_id": "12466091",
"product_version_id": "476473",
"promotions": [
{
"duration_months": null,
"id": "23376",
"title": "£23.99 base price for the duration of the contract",
"type": "base-price-override",
"uswitch_exclusive": null,
"value": 23.99,
"worth": 23.99
}
],
"provider": {
"id": "12179",
"logo_url": "https://img.uswitch.com/s3/uswitch-assets-eu/broadband/images/providers/virgin-media.png",
"name": "Virgin Media",
"phone": "03300 296 397"
},
"source_url": "https://www.uswitch.com/broadband/graphql",
"telephone": null,
"terms": [],
"title": "Virgin Media Gig1 Fibre broadband",
"trust_score": {
"review_count": 107756,
"score": 2,
"trustpilot_url": "https://uk.trustpilot.com/review/virginmedia.com"
},
"tv": null,
"uswitch_exclusive": false
}Uswitch broadband
Get deal
You have a deal_id from search_deals and want the complete record. Fails with not_found for an unknown or expired deal_id.
POST
https://api.aisa.one
/
apis
/
v1
/
uswitch-com
/
products
/
get-deal
Get deal
curl --request POST \
--url https://api.aisa.one/apis/v1/uswitch-com/products/get-deal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deal_id": "476473-2457247537"
}
'import requests
url = "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal"
payload = { "deal_id": "476473-2457247537" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({deal_id: '476473-2457247537'})
};
fetch('https://api.aisa.one/apis/v1/uswitch-com/products/get-deal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'deal_id' => '476473-2457247537'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/uswitch-com/products/get-deal"
payload := strings.NewReader("{\n \"deal_id\": \"476473-2457247537\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/uswitch-com/products/get-deal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deal_id\": \"476473-2457247537\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/uswitch-com/products/get-deal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deal_id\": \"476473-2457247537\"\n}"
response = http.request(request)
puts response.read_body{
"availability": null,
"broadband": {
"connection_type": null,
"download_limit_gb": 0,
"download_speed_mbps": 1000,
"estimated_download_time_seconds": 33,
"fibre": true,
"network_name": null,
"real_speeds": null,
"title": "Virgin Media Gig1 Fibre broadband ",
"unlimited_downloads": true,
"upload_speed_mbps": 104
},
"clickout_target_url": "https://www.awin1.com/cread.php?clickref={{click_ref}}&awinaffid=100908&awinmid=6399&p=https%3A%2F%2Fwww.virginmedia.com%2Fbuy%2Fquick-checkout%3FbundleId%3D1015",
"clickout_url": "https://www.uswitch.com/clk/476473/uswitch/broadband?r=https%3A%2F%2Fwww.awin1.com%2Fcread.php%3Fclickref%3D%7B%7Bclick_ref%7D%7D%26awinaffid%3D100908%26awinmid%3D6399%26p%3Dhttps%253A%252F%252Fwww.virginmedia.com%252Fbuy%252Fquick-checkout%253FbundleId%253D1015&sig=7d528cd0ffdc08f5ad3de21e6aa80f4260cf7a3c22d7022c8626ee59f4d14bfc",
"comparison_id": "5e99a8c5-8e47-4e15-8a0d-5ab4dbf7a000",
"contract_length_months": 24,
"currency": "GBP",
"customer_availability": "NEW",
"deal_id": "476473-2457247537",
"end_date": null,
"features": [],
"observed_at_ms": 1791923135470,
"pricing": {
"average_monthly_cost": 28.32,
"average_monthly_cost_purchase": 28.32,
"intro_promotion": null,
"monthly_breakdown": [
{
"end_month": 4,
"monthly_price": 23.99,
"price_rise_date": null,
"reasons": [
"initial-price"
],
"start_date": "2026-11-01",
"start_month": 0
},
{
"end_month": 16,
"monthly_price": 27.99,
"price_rise_date": "2027-04-01",
"reasons": [
"price-rise"
],
"start_date": "2027-04-01",
"start_month": 5
},
{
"end_month": 23,
"monthly_price": 31.99,
"price_rise_date": "2028-04-01",
"reasons": [
"price-rise"
],
"start_date": "2028-04-01",
"start_month": 17
}
],
"monthly_price": 23.99,
"monthly_price_after_intro": null,
"price_rise": {
"amount_broadband": 4,
"amount_telephone": 0,
"amount_total": 4,
"amount_tv": 0,
"first_rise_year": 2027,
"freeze_months": null,
"from_contract_month": null,
"frozen": false,
"is_fixed_contract": false,
"month": 4,
"no_price_rise": false,
"type": "fixed"
},
"refunded_cost": 0,
"setup_cost": 0,
"total_contract_cost": 679.76,
"upfront_components": [],
"upfront_cost": 0
},
"product_id": "12466091",
"product_version_id": "476473",
"promotions": [
{
"duration_months": null,
"id": "23376",
"title": "£23.99 base price for the duration of the contract",
"type": "base-price-override",
"uswitch_exclusive": null,
"value": 23.99,
"worth": 23.99
}
],
"provider": {
"id": "12179",
"logo_url": "https://img.uswitch.com/s3/uswitch-assets-eu/broadband/images/providers/virgin-media.png",
"name": "Virgin Media",
"phone": "03300 296 397"
},
"source_url": "https://www.uswitch.com/broadband/graphql",
"telephone": null,
"terms": [],
"title": "Virgin Media Gig1 Fibre broadband",
"trust_score": {
"review_count": 107756,
"score": 2,
"trustpilot_url": "https://uk.trustpilot.com/review/virginmedia.com"
},
"tv": null,
"uswitch_exclusive": false
}Request contract
- Method and path: POST /apis/v1/uswitch-com/products/get-deal
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/uswitch-com/products/get-deal
{
"operationId": "uswitch-com.products.get-deal",
"method": "POST",
"path": "/apis/v1/uswitch-com/products/get-deal",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"deal_id": "476473-2457247537"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"deal_id": {
"description": "Uswitch deal id, e.g. '476473-2457247537'. Pattern: ^[0-9]{1,12}-[0-9]{1,16}$.",
"type": "string"
}
},
"required": [
"deal_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
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
Body
application/json
Response
One Uswitch broadband deal by deal_id: full pricing (monthly, average, total, upfront and setup fees, price-rise schedule), speeds, contract, promotions, terms, provider contact and Trustpilot score, plus the clickout link.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
availability | string | 'premise' when Uswitch confirmed availability at the searched address; null when not checked. |
broadband | object | |
clickout_target_url | string | The URL inside the clickout's r= parameter (provider or affiliate network landing page). |
clickout_url | string | Uswitch tracked redirect to the provider's offer; the only per-deal URL Uswitch publishes. |
comparison_id | string | |
contract_length_months | number | |
currency | string | |
customer_availability | string | Who may take the deal, e.g. 'NEW'. |
deal_id | string | Uswitch deal id (productVersionId-hash); input to get_deal. |
end_date | string | Offer end date when stated. |
features | object[] | |
observed_at_ms | number | Unix epoch milliseconds when the program read the upstream response. |
pricing | object | |
product_id | string | Uswitch product id. |
product_version_id | string | |
promotions | object[] | |
provider | object | |
source_url | string | |
telephone | object | |
terms | object[] | |
title | string | |
trust_score | object | |
tv | object | |
uswitch_exclusive | boolean |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.