公开网页研究
curl --request POST \
--url https://revor.ai/api/v2/research/public-web \
--header 'Content-Type: application/json' \
--data '
{
"queries": [
"<string>"
],
"search_limit": 123,
"category": "<string>",
"include_domains": [
"<string>"
],
"user_location": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/research/public-web"
payload = {
"queries": ["<string>"],
"search_limit": 123,
"category": "<string>",
"include_domains": ["<string>"],
"user_location": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
queries: ['<string>'],
search_limit: 123,
category: '<string>',
include_domains: ['<string>'],
user_location: '<string>'
})
};
fetch('https://revor.ai/api/v2/research/public-web', 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://revor.ai/api/v2/research/public-web",
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([
'queries' => [
'<string>'
],
'search_limit' => 123,
'category' => '<string>',
'include_domains' => [
'<string>'
],
'user_location' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://revor.ai/api/v2/research/public-web"
payload := strings.NewReader("{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://revor.ai/api/v2/research/public-web")
.header("Content-Type", "application/json")
.body("{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/research/public-web")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body公开网页与联系人
公开网页研究
根据查询词搜索公开网页资料并返回带摘要的来源列表。
POST
/
api
/
v2
/
research
/
public-web
公开网页研究
curl --request POST \
--url https://revor.ai/api/v2/research/public-web \
--header 'Content-Type: application/json' \
--data '
{
"queries": [
"<string>"
],
"search_limit": 123,
"category": "<string>",
"include_domains": [
"<string>"
],
"user_location": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/research/public-web"
payload = {
"queries": ["<string>"],
"search_limit": 123,
"category": "<string>",
"include_domains": ["<string>"],
"user_location": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
queries: ['<string>'],
search_limit: 123,
category: '<string>',
include_domains: ['<string>'],
user_location: '<string>'
})
};
fetch('https://revor.ai/api/v2/research/public-web', 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://revor.ai/api/v2/research/public-web",
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([
'queries' => [
'<string>'
],
'search_limit' => 123,
'category' => '<string>',
'include_domains' => [
'<string>'
],
'user_location' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://revor.ai/api/v2/research/public-web"
payload := strings.NewReader("{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://revor.ai/api/v2/research/public-web")
.header("Content-Type", "application/json")
.body("{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/research/public-web")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"queries\": [\n \"<string>\"\n ],\n \"search_limit\": 123,\n \"category\": \"<string>\",\n \"include_domains\": [\n \"<string>\"\n ],\n \"user_location\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body接口概览
| 方法 | POST |
| 路径 | /api/v2/research/public-web |
| 权限 | 请联系管理员确认您的产品套餐是否包含此接口。 |
| 返回 | 带来源列表的异步任务结果 |
请求
Idempotency-Key 是可选的;需要安全重试时建议发送并复用同一个值。可以发送 Prefer: wait=20。如果任务在等待窗口内结束,接口直接返回 HTTP 200;否则返回 HTTP 202,调用方继续轮询 /api/v2/jobs/{id}。
参数
限定优先返回的页面类型:
company、news、financial report、people、personal site。例如 news 用于新闻页面,people 用于人物相关页面。请求示例
cURL
curl -X POST "https://revor.ai/api/v2/research/public-web" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Content-Type: application/json" \
-H "Prefer: wait=20" \
-d '{
"queries": ["Banbros Commercial Inc company profile"],
"search_limit": 5,
"category": "company",
"include_domains": [],
"user_location": "US"
}'
响应示例
200
{
"status": "complete",
"queries": ["Banbros Commercial Inc company profile"],
"searched_queries": 1,
"results_per_query": 5,
"results": [
{
"query": "Banbros Commercial Inc company profile",
"sources": [
{
"url": "https://example.com/company",
"title": "Company Profile",
"published_date": null,
"author": null,
"image": null,
"highlights": ["..."],
"text": "..."
}
]
}
],
"errors": []
}
行为说明
- 单个 query 失败而其他 query 成功时,
status可能为partial,失败项记录在errors。 - 每个来源正文会被限制长度;
...[truncated]表示该来源的正文已按返回长度裁剪。
错误码
| HTTP | 说明 |
|---|---|
400 | 参数无效或请求格式错误 |
403 | 该产品套餐不包含此接口 |
202 | 任务仍在执行中,请轮询 /api/v2/jobs/{id} |

