Google 新闻
curl --request POST \
--url https://api.socq.ai/v1/seo/google-news \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"callback_url": "<string>",
"language": "<string>",
"language_code": "<string>",
"location_code": 2,
"location_name": "<string>",
"results_limit": 10
}
'import requests
url = "https://api.socq.ai/v1/seo/google-news"
payload = {
"query": "<string>",
"callback_url": "<string>",
"language": "<string>",
"language_code": "<string>",
"location_code": 2,
"location_name": "<string>",
"results_limit": 10
}
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({
query: '<string>',
callback_url: '<string>',
language: '<string>',
language_code: '<string>',
location_code: 2,
location_name: '<string>',
results_limit: 10
})
};
fetch('https://api.socq.ai/v1/seo/google-news', 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.socq.ai/v1/seo/google-news",
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>',
'callback_url' => '<string>',
'language' => '<string>',
'language_code' => '<string>',
'location_code' => 2,
'location_name' => '<string>',
'results_limit' => 10
]),
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.socq.ai/v1/seo/google-news"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\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.socq.ai/v1/seo/google-news")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/seo/google-news")
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 \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}SEO
Google 新闻
按关键词采集 Google 新闻文章,包含媒体名称、原文链接、摘要和发布时间。
POST
/
v1
/
seo
/
google-news
Google 新闻
curl --request POST \
--url https://api.socq.ai/v1/seo/google-news \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"callback_url": "<string>",
"language": "<string>",
"language_code": "<string>",
"location_code": 2,
"location_name": "<string>",
"results_limit": 10
}
'import requests
url = "https://api.socq.ai/v1/seo/google-news"
payload = {
"query": "<string>",
"callback_url": "<string>",
"language": "<string>",
"language_code": "<string>",
"location_code": 2,
"location_name": "<string>",
"results_limit": 10
}
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({
query: '<string>',
callback_url: '<string>',
language: '<string>',
language_code: '<string>',
location_code: 2,
location_name: '<string>',
results_limit: 10
})
};
fetch('https://api.socq.ai/v1/seo/google-news', 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.socq.ai/v1/seo/google-news",
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>',
'callback_url' => '<string>',
'language' => '<string>',
'language_code' => '<string>',
'location_code' => 2,
'location_name' => '<string>',
'results_limit' => 10
]),
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.socq.ai/v1/seo/google-news"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\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.socq.ai/v1/seo/google-news")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/seo/google-news")
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 \"query\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"language\": \"<string>\",\n \"language_code\": \"<string>\",\n \"location_code\": 2,\n \"location_name\": \"<string>\",\n \"results_limit\": 10\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}Google 新闻
在 Google 新闻覆盖的任何市场里,盯住一家公司、一个产品或一个话题的报道。结果保持 Google 的排列顺序,头条新闻在前;每篇文章都带标题、摘要、媒体名称、发布时间,以及直达媒体原文的链接,不是 Google 的跳转地址。适合接入舆情监测、竞品动态提醒或每日新闻简报。{
"query": "nvidia",
"location_code": 2840,
"language_code": "en",
"results_limit": 10
}
标准结果字段
任务结果使用下方稳定的 SocQ 字段。系统会统一来源特有的字段名和格式,但不会推断或补充来源未提供的数据。如需缩小返回字段集合,MCP 查询使用fields,Typed 工具使用 _result_fields,CLI 使用 --result-fields。声明字段的值为 null 时仍会保留。
| 字段 | 类型 | 可空 | 说明 |
|---|---|---|---|
id | string | 是 | 文章地址,作为标识。 |
platform | string | 否 | 结果所属的平台,例如 instagram 或 linkedin。 |
resource | string | 否 | 该结果对应的 SocQ 资源,例如 videos 或 comments。 |
type | string | 否 | 结果项的类别,例如 video、post 或 comment。 |
url | string | 是 | 文章在发布者网站上的地址。 |
published_at | string | 是 | 文章的发布时间,使用 ISO 8601 格式。 |
collected_at | string | 否 | SocQ 采集或处理该结果的时间,使用 ISO 8601 格式。 |
title | string | 是 | 文章标题。 |
text | string | 是 | 标题下方展示的摘要。 |
source | string | 是 | 文章发布者,例如 Reuters。 |
domain | string | 是 | 发布者网站的域名。 |
image_url | string | 是 | 文章缩略图的地址(公开可访问时)。 |
section | string | 是 | 文章所在的版块:top_stories 或 news。 |
rank | integer | 是 | 文章在结果中的位置(头条在前),从 1 开始。 |
query | string | 是 | 结果所对应的搜索词。 |
任务完成响应
{
"code": 200,
"data": {
"task_id": "example-seo-google-news",
"status": "succeeded",
"public_id": "seo/google-news",
"result_count": 1,
"credits_amount": 0.1,
"results": {
"limit": 50,
"next_cursor": null,
"has_more": false,
"schema_id": "news-article",
"schema_version": "1.0",
"items": [
{
"id": "https://finance.yahoo.com/technology/live/nvidia-earnings-live-nvidia-posts-q3-beat-board-says-it-will-not-reinstate-jensen-huang-as-ceo-221428433.html",
"platform": "seo",
"resource": "google-news",
"type": "news-article",
"url": "https://finance.yahoo.com/technology/live/nvidia-earnings-live-nvidia-posts-q3-beat-board-says-it-will-not-reinstate-jensen-huang-as-ceo-221428433.html",
"published_at": "2026-11-17T23:30:16Z",
"collected_at": "2026-11-17T23:54:18.299431Z",
"title": "Nvidia earnings live: Nvidia posts Q3 beat as revenue rose 103% YOY to $115.8B, board says it will not reinstate Jensen Huang as CEO",
"text": "Nvidia (NVDA) reported its Q3 results after the bell Tuesday, beating Wall Street's expectations on the top and bottom lines and offering a...",
"source": "finance.yahoo.com",
"domain": "finance.yahoo.com",
"image_url": null,
"section": "news",
"rank": 1,
"query": "nvidia"
}
]
}
}
}
请求体
application/json
通过 query 提供搜索词,默认美国(2840)和英语(en)。results_limit 默认 10,可填 1–200 之间的整数。每篇文章计 0.1 积分。

