curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/web_research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"query": "<string>",
"url": "<string>",
"formats": [],
"timeout_ms": 60500,
"max_charge_usd": "<string>",
"cache_max_age_seconds": 1296000,
"country": "<string>",
"language": "<string>",
"limit": 50,
"task_id": "<string>",
"metadata": {}
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/web_research"
payload = {
"query": "<string>",
"url": "<string>",
"formats": [],
"timeout_ms": 60500,
"max_charge_usd": "<string>",
"cache_max_age_seconds": 1296000,
"country": "<string>",
"language": "<string>",
"limit": 50,
"task_id": "<string>",
"metadata": {}
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: '<string>',
url: '<string>',
formats: [],
timeout_ms: 60500,
max_charge_usd: '<string>',
cache_max_age_seconds: 1296000,
country: '<string>',
language: '<string>',
limit: 50,
task_id: '<string>',
metadata: {}
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/web_research', 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.glasser.ai/v1/solutions/gtm/web_research",
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([
'query' => '<string>',
'url' => '<string>',
'formats' => [
],
'timeout_ms' => 60500,
'max_charge_usd' => '<string>',
'cache_max_age_seconds' => 1296000,
'country' => '<string>',
'language' => '<string>',
'limit' => 50,
'task_id' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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.glasser.ai/v1/solutions/gtm/web_research"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
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.glasser.ai/v1/solutions/gtm/web_research")
.header("idempotency-key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/web_research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"url": "<string>",
"final_url": "<string>",
"title": "<string>",
"text": "<string>",
"markdown": "<string>",
"html": "<string>",
"raw_html": "<string>",
"text_character_limit": 123,
"cached": true,
"fetched_at": "<string>",
"quality": "unverified"
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"missing_formats": [
"text"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {}
}
],
"result_url": "<string>"
}{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"url": "<string>",
"final_url": "<string>",
"title": "<string>",
"text": "<string>",
"markdown": "<string>",
"html": "<string>",
"raw_html": "<string>",
"text_character_limit": 123,
"cached": true,
"fetched_at": "<string>",
"quality": "unverified"
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"missing_formats": [
"text"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {}
}
],
"result_url": "<string>"
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "insufficient_balance",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "endpoint_not_permitted",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "idempotency_conflict",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "service_unavailable",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}网页研究
搜索网页和新闻,获取地点、购物结果和页面内容,并以统一结构返回。
curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/web_research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"query": "<string>",
"url": "<string>",
"formats": [],
"timeout_ms": 60500,
"max_charge_usd": "<string>",
"cache_max_age_seconds": 1296000,
"country": "<string>",
"language": "<string>",
"limit": 50,
"task_id": "<string>",
"metadata": {}
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/web_research"
payload = {
"query": "<string>",
"url": "<string>",
"formats": [],
"timeout_ms": 60500,
"max_charge_usd": "<string>",
"cache_max_age_seconds": 1296000,
"country": "<string>",
"language": "<string>",
"limit": 50,
"task_id": "<string>",
"metadata": {}
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: '<string>',
url: '<string>',
formats: [],
timeout_ms: 60500,
max_charge_usd: '<string>',
cache_max_age_seconds: 1296000,
country: '<string>',
language: '<string>',
limit: 50,
task_id: '<string>',
metadata: {}
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/web_research', 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.glasser.ai/v1/solutions/gtm/web_research",
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([
'query' => '<string>',
'url' => '<string>',
'formats' => [
],
'timeout_ms' => 60500,
'max_charge_usd' => '<string>',
'cache_max_age_seconds' => 1296000,
'country' => '<string>',
'language' => '<string>',
'limit' => 50,
'task_id' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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.glasser.ai/v1/solutions/gtm/web_research"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
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.glasser.ai/v1/solutions/gtm/web_research")
.header("idempotency-key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/web_research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"url\": \"<string>\",\n \"formats\": [],\n \"timeout_ms\": 60500,\n \"max_charge_usd\": \"<string>\",\n \"cache_max_age_seconds\": 1296000,\n \"country\": \"<string>\",\n \"language\": \"<string>\",\n \"limit\": 50,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"url": "<string>",
"final_url": "<string>",
"title": "<string>",
"text": "<string>",
"markdown": "<string>",
"html": "<string>",
"raw_html": "<string>",
"text_character_limit": 123,
"cached": true,
"fetched_at": "<string>",
"quality": "unverified"
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"missing_formats": [
"text"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {}
}
],
"result_url": "<string>"
}{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"url": "<string>",
"final_url": "<string>",
"title": "<string>",
"text": "<string>",
"markdown": "<string>",
"html": "<string>",
"raw_html": "<string>",
"text_character_limit": 123,
"cached": true,
"fetched_at": "<string>",
"quality": "unverified"
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"missing_formats": [
"text"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {}
}
],
"result_url": "<string>"
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "insufficient_balance",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "endpoint_not_permitted",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "idempotency_conflict",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "service_unavailable",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}各操作输出
各操作的规范化字段。数据提供商原生输出不在此重复,保留在 Run 中,可通过 GET /v1/runs/:id 读取。未报告的值为 null。- search: results[]: url, title, snippet ,Google 摘要;Exa 为提取片段, position, published_at, date_text, date ,已弃用
- news: items[]: title, url, source, published_at, date_text, snippet
- places: items[]: name, address ,数据提供商原生文本,可能仅含街道, category, rating ,1–5, reviews, phone, website, latitude, longitude, google_cid
- scholar: items[]: title, url, snippet, publication, year, cited_by, pdf_url
- shopping: items[]: title, url ,Google Shopping 页面, merchant_url, google_product_id, price_text, seller, rating ,1–5, reviews, image_url
- images: items[]: title, image_url, thumbnail_url, source_url, source, width, height
- videos: items[]: title, url, channel, source, date_text, duration_text, snippet, thumbnail_url
- answer: answer, citations[]: url, title, published_at
- scrape: url, final_url, title, text, markdown, html, raw_html, text_character_limit, cached, fetched_at, quality ,已弃用
- similar: items[]: url, title, exa_similarity_score, published_at, author
{
"action": "news",
"provider": "serper",
"status": "COMPLETED",
"result_status": "success",
"output": {
"items": [
{ "title": "Ripple, Stripe-owned Privy partner to bring embedded wallets to XRP Ledger", "url": "https://www.theblock.co/news/business/2026-10-13-stripe-privy-ripple-xrp-ledger-wallets-418463", "source": "The Block", "published_at": null, "date_text": "18 hours ago", "snippet": "The integration will allow developers to add XRP Ledger wallets to their apps using Privy's infrastructure." }
]
},
"charge_usd": "0.0011",
"runs": [{ "provider": "serper", "status": "COMPLETED", "charge_usd": "0.0011" }],
"result_url": "/v1/solutions/gtm/web_research/result?token=…"
}
请求头
为每次预期执行生成唯一值,推荐使用 UUID。使用同一个键和执行参数重试,可读取原 Run,避免再次扣费。使用同一个键但修改执行参数会返回 409;修改 task_id 或 metadata 不会更新原 Run。
1请求体
默认为 search。
- search、news、places、scholar、shopping、images、videos、answer 提供 query。
- scrape 或 similar 提供 url。
search, news, places, scholar, shopping, images, videos, answer, scrape, similar 默认为 auto,按 Glasser 偏好顺序选择第一家符合条件的数据提供商。指定的数据提供商必须支持请求且获得当前 API Key 的允许,不会切换到其他家。可用值见下方。
auto, serper, serpapi, exa, dataforseo, firecrawl 1 - 5001 - 2048仅用于 scrape。省略时使用所选数据提供商的原生默认格式:Serper/Exa 为 text,Firecrawl/DataForSEO 为 markdown。请求格式用于路由和切换;输出提供固定的 text/markdown/html/raw_html 字段。html 为清理后的 HTML,raw_html 为原始 HTML。自动模式先用 Serper,再用 Firecrawl;HTML 请求直接使用 Firecrawl。通过 result_status 和 missing_formats 判断交付情况;未请求字段为 null 不代表 partial。Firecrawl 不提供 text,Glasser 不将 HTML 转成文本。X/Twitter 和信息补全路径排除 Firecrawl。
1 - 4 elementstext, markdown, html, raw_html 仅用于 scrape,默认为 90000。本次 API 请求的执行预算,包括串行切换。每次数据提供商调用都以所属 Endpoint 的自身窗口开启,而不是分享剩余时间;当该窗口连同结算时间装进剩余预算时,这一跳保留完整窗口。完整窗口会超出请求预算时,Serper、Firecrawl 与 Exa 仍按实际剩余时间运行至所属 Endpoint 窗口,并预留结算与响应时间;只有剩余调用时间少于一秒时才跳过这一跳。重试会开始新的请求窗口,并通过 Run 幂等机制复用已有 Run。
1000 <= x <= 120000精确的美元十进制字符串,小数位数为 2–6,采用唯一规范格式。求和时使用十进制运算或乘以 10^6 转为整数,不使用浮点数。
^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$仅用于 scrape。数据提供商缓存的最大年龄;0 表示必须实时抓取。不支持此控制的路径将被排除。自动模式选择 Firecrawl,单位转换为毫秒;显式选择 Exa 时向下取整为小时。未知缓存和抓取元数据保留为 null。
0 <= x <= 2592000仅用于 search:通过 Google 时间过滤,将结果限制为最近一天、一周、一个月或一年;省略则不限时间。自动模式只使用支持该过滤的数据提供商,即 Serper 和 SerpApi。提供此字段时拒绝 Exa。这是搜索引擎过滤,不是已验证的发布日期。
day, week, month, year 搜索类操作的国家,使用两位 ISO 代码或国家名称,默认为 us。不用于 scrape 或 similar。指定的数据提供商无法应用时,返回 400。
2 - 60搜索类操作的语言,使用 en、de 等两位代码。不用于 scrape 或 similar。
^[A-Za-z]{2}$返回条数。请从较少条数开始:路由到的接口可能据此计费。各能力还会进一步限制上限。
1 <= x <= 100将相关 Run,包括自动切换产生的 Run,归入同一个 Task。复用稳定字符串,并通过 Task 筛选 Run 列表。
可选追踪字段,随 Run 返回,也可用于筛选。不会发送给数据提供商,也不影响路由、价格或幂等。
- 最多 20 个键:小写字母、数字和下划线,以字母开头,最长 40 个字符。
- 值:长度为 1–500 的字符串。
- user_id:终端用户的不透明 ID,不得使用邮箱或姓名。
无效条目整体丢弃,不截断。请求继续执行,Run 返回实际保存的字段。
Show child attributes
Show child attributes
响应
成功
在控制台打开 Run,需要工作空间成员权限。
^[a-z0-9][a-z0-9-]*$^\/.+$QUEUED 或 RUNNING 表示仍在执行。COMPLETED 表示已有数据提供商响应,包括非 2xx 响应。FAILED 请读取 failure。STOPPED 表示分派前停止。charge_usd 与状态分别检查。
QUEUED, RUNNING, COMPLETED, FAILED, STOPPED Run 失败原因,仅在 status 为 FAILED 时非 null。
Show child attributes
Show child attributes
各操作的规范化字段。数据提供商原生输出不在此重复,保留在 Run 中,可通过 GET /v1/runs/:id 读取。未报告的值为 null。
- search: results[]: url, title, snippet ,Google 摘要;Exa 为提取片段, position, published_at, date_text, date ,已弃用
- news: items[]: title, url, source, published_at, date_text, snippet
- places: items[]: name, address ,数据提供商原生文本,可能仅含街道, category, rating ,1–5, reviews, phone, website, latitude, longitude, google_cid
- scholar: items[]: title, url, snippet, publication, year, cited_by, pdf_url
- shopping: items[]: title, url ,Google Shopping 页面, merchant_url, google_product_id, price_text, seller, rating ,1–5, reviews, image_url
- images: items[]: title, image_url, thumbnail_url, source_url, source, width, height
- videos: items[]: title, url, channel, source, date_text, duration_text, snippet, thumbnail_url
- answer: answer, citations[]: url, title, published_at
- scrape: url, final_url, title, text, markdown, html, raw_html, text_character_limit, cached, fetched_at, quality ,已弃用
- similar: items[]: url, title, exa_similarity_score, published_at, author
published_at 为 ISO 8601 UTC,仅根据数据提供商机器时间戳填写。date_text 为 Google 原样日期文本,可能相对于 Run 的 completed_at,不解析。rating 为 Google 1–5 平均星级;reviews 为数量。source 为出版方或网站名称。exa_similarity_score 为 Exa 自身分数,只宜在同一响应内比较。
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
Show child attributes
Show child attributes
仅在 status 为 COMPLETED 时非 null。
- 2xx 响应:output 为任意结构的数据提供商原生 JSON;正文为空时为 null。
- 非 2xx 响应:error 包含数据提供商错误正文,output 为 null。
两种正文均会移除敏感字段。
Show child attributes
Show child attributes
此 Solution 响应所含 runs 的总费用,全部 Run 结算前为 null。每个 Run 保留各自费用;失败也可能收费。
^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$单个 Run 的计费依据;多个 Run 汇总时为 null。各项费用请查看 runs[].charge_basis。
Show child attributes
Show child attributes
当前是否可接受停止请求。不保证能在分派前停止 Run。
请求停止的时间。如果已开始分派,Run 仍可能继续。
ISO 8601 UTC 时间戳。
ISO 8601 UTC 时间戳。
ISO 8601 UTC 时间戳。
已保存的追踪字段,可用于筛选 Run,不发送给数据提供商,不影响路由、价格或幂等。
- 最多 20 个键:小写字母、数字和下划线,以字母开头,最长 40 个字符。
- 值:长度为 1–500 的字符串。
- user_id:终端用户的不透明 ID,不得使用邮箱或姓名。
Show child attributes
Show child attributes
search, news, places, scholar, shopping, images, videos, answer, scrape, similar 业务交付状态,与 status 中的最终 Run 生命周期独立。success 不代表内容语义质量已验证。
success, partial, no_result, error, pending text, markdown, html, raw_html Show child attributes
Show child attributes
Show child attributes
Show child attributes
通过认证读取规范化结果和总费用的只读 URL 路径,配合 API 服务地址使用。不创建 Run,也不恢复切换。GET /v1/runs/:id 仍返回原生单个 Run。