# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/oxylabs/ai-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"source": "google_search"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/oxylabs/ai-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "google_ai_mode"
}
'import requests
url = "https://api.aisa.one/apis/v1/oxylabs/ai-search"
payload = { "source": "google_ai_mode" }
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({source: 'google_ai_mode'})
};
fetch('https://api.aisa.one/apis/v1/oxylabs/ai-search', 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/oxylabs/ai-search",
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([
'source' => 'google_ai_mode'
]),
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/oxylabs/ai-search"
payload := strings.NewReader("{\n \"source\": \"google_ai_mode\"\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/oxylabs/ai-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"google_ai_mode\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/oxylabs/ai-search")
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 \"source\": \"google_ai_mode\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"content": {
"results": {
"ai_overviews": [
{
"answer_text": [
{
"fragments": [
{
"references": [
"<unknown>"
]
}
]
}
],
"references": [
{
"source": "<string>",
"url": "<string>"
}
]
}
]
}
}
}
]
}Oxylabs AI-search (Realtime, passthrough)
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/oxylabs/ai-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"source": "google_search"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/oxylabs/ai-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "google_ai_mode"
}
'import requests
url = "https://api.aisa.one/apis/v1/oxylabs/ai-search"
payload = { "source": "google_ai_mode" }
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({source: 'google_ai_mode'})
};
fetch('https://api.aisa.one/apis/v1/oxylabs/ai-search', 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/oxylabs/ai-search",
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([
'source' => 'google_ai_mode'
]),
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/oxylabs/ai-search"
payload := strings.NewReader("{\n \"source\": \"google_ai_mode\"\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/oxylabs/ai-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"google_ai_mode\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/oxylabs/ai-search")
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 \"source\": \"google_ai_mode\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"content": {
"results": {
"ai_overviews": [
{
"answer_text": [
{
"fragments": [
{
"references": [
"<unknown>"
]
}
]
}
],
"references": [
{
"source": "<string>",
"url": "<string>"
}
]
}
]
}
}
}
]
}Request contract
- Method and path: POST /apis/v1/oxylabs/ai-search
- Availability: disabled
- Request URL template: https://api.aisa.one/apis/v1/oxylabs/ai-search
- Runtime facts: fd6c683d6394590130cca48f527e89502ecd64f22a5124fc376844abd882238c
{
"operationId": "post_oxylabs_ai_search",
"method": "POST",
"path": "/apis/v1/oxylabs/ai-search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"google_ai_mode": {
"summary": "Google AI Mode (google_ai_mode)",
"value": {
"geo_location": "United States",
"parse": true,
"query": "best noise cancelling headphones 2026",
"render": "html",
"source": "google_ai_mode"
}
},
"google_search": {
"summary": "Google AI Overviews (google_search)",
"value": {
"geo_location": "United States",
"parse": true,
"query": "best noise cancelling headphones 2026",
"render": "html",
"source": "google_search"
}
}
},
"schema": {
"additionalProperties": true,
"description": "Passthrough body for the Google answer engines. `source` selects the engine; `query`, `render`, `parse`, and `geo_location` are the parameters Google sources expect. Additional upstream parameters are passed through as-is.",
"properties": {
"geo_location": {
"description": "Country-level geo-location for the query, e.g. \"United States\".",
"example": "United States",
"type": "string"
},
"parse": {
"description": "Return structured, parsed results instead of raw output. Recommended for every source.",
"example": true,
"type": "boolean"
},
"query": {
"description": "The search query. Required for `google_search` and `google_ai_mode`.",
"example": "best noise cancelling headphones 2026",
"type": "string"
},
"render": {
"description": "For `google_search` and `google_ai_mode`, set to \"html\" to render the page before parsing.",
"enum": [
"html"
],
"example": "html",
"type": "string"
},
"source": {
"description": "The Google AI answer engine to query. `google_search` returns Google AI Overviews; `google_ai_mode` returns Google AI Mode. For ChatGPT/Gemini/Perplexity use the async endpoint `post_oxylabs_llm` instead.",
"enum": [
"google_search",
"google_ai_mode"
],
"example": "google_search",
"type": "string"
}
},
"required": [
"source"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "disabled",
"x-aisa-pricing": {
"cost_contract": "fixed_success",
"customer_multiplier": 1.45,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.00145,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.00145 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.00145
- Cost contract: fixed_success
- Published reference multiplier: 1.45
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Passthrough body for the Google answer engines. source selects the engine; query, render, parse, and geo_location are the parameters Google sources expect. Additional upstream parameters are passed through as-is.
The Google AI answer engine to query. google_search returns Google AI Overviews; google_ai_mode returns Google AI Mode. For ChatGPT/Gemini/Perplexity use the async endpoint post_oxylabs_llm instead.
google_search, google_ai_mode "google_search"
Country-level geo-location for the query, e.g. "United States".
"United States"
Return structured, parsed results instead of raw output. Recommended for every source.
true
The search query. Required for google_search and google_ai_mode.
"best noise cancelling headphones 2026"
For google_search and google_ai_mode, set to "html" to render the page before parsing.
html "html"
Response
Query completed successfully. results[] holds one result per query. The parsed shape inside content varies by source (see property descriptions); the example below shows the google_search (Google AI Overviews) shape.
One entry per query. A Realtime single query returns exactly one result, which is the billed unit.
Show child attributes
Show child attributes