# 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)
Synchronous passthrough to the upstream Oxylabs Realtime endpoint (POST /v1/queries) for the Google answer engines — Google AI Overviews (source: google_search) and Google AI Mode (source: google_ai_mode). Send query with render: "html", parse: true, and a country-level geo_location; the request body is passed through unchanged. The response returns the AI-generated answer text and the cited source URLs. 400/429/5xx/6xx and upstream 4xx responses are not billed. Google-type sources take ~4–8s, so use a client timeout of at least 30s.
LLM sources (ChatGPT, Gemini, Perplexity) are no longer served here — Oxylabs moved them to an asynchronous Push-Pull flow. Use post_oxylabs_llm (POST /oxylabs/llm) plus get_oxylabs_llm_job for those sources; calling this endpoint with source: chatgpt|gemini|perplexity returns HTTP 422 “Realtime integration is not supported for LLM sources. Please use Push-Pull.”
透传 AI 搜索 source: chatgpt/gemini/perplexity/google_search/google_ai_mode;返回 答案+引用+来源URL。Caller 传完整 body(含 source),原样转发 POST /v1/queries。
# 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
{
"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",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Historical archive: disabled, cannot be called, and no price is published.Authorizations
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.
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.