X 列表推文
curl --request POST \
--url https://api.socq.ai/v1/x/list-posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
],
"callback_url": "<string>",
"results_limit": 100
}
'import requests
url = "https://api.socq.ai/v1/x/list-posts"
payload = {
"urls": ["<string>"],
"callback_url": "<string>",
"results_limit": 100
}
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({urls: ['<string>'], callback_url: '<string>', results_limit: 100})
};
fetch('https://api.socq.ai/v1/x/list-posts', 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/x/list-posts",
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([
'urls' => [
'<string>'
],
'callback_url' => '<string>',
'results_limit' => 100
]),
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/x/list-posts"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\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/x/list-posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/x/list-posts")
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 \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\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": {}
}
}X
X 列表推文
采集 X 列表时间线上的最新帖子。
POST
/
v1
/
x
/
list-posts
X 列表推文
curl --request POST \
--url https://api.socq.ai/v1/x/list-posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
],
"callback_url": "<string>",
"results_limit": 100
}
'import requests
url = "https://api.socq.ai/v1/x/list-posts"
payload = {
"urls": ["<string>"],
"callback_url": "<string>",
"results_limit": 100
}
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({urls: ['<string>'], callback_url: '<string>', results_limit: 100})
};
fetch('https://api.socq.ai/v1/x/list-posts', 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/x/list-posts",
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([
'urls' => [
'<string>'
],
'callback_url' => '<string>',
'results_limit' => 100
]),
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/x/list-posts"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\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/x/list-posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/x/list-posts")
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 \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 100\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": {}
}
}X 列表推文
采集公开 X 列表的时间线,也就是列表成员最近发布和转发的帖子,按时间从新到旧排列。一个整理得好的列表本身就是一路现成的信息流,可能是记者、分析师、创业者,也可能是竞争对手。把它当作结构化数据读取,一次请求就能盯住整个细分领域,不用逐个关注账号。转发帖会保留,并用is_repost 标记,同时带上原帖的 ID 和作者,方便你过滤掉转发,或者统计成员之间互相转发的频率。
{
"urls": [
"https://x.com/i/lists/1940592907737845989"
],
"results_limit": 20
}
标准结果字段
任务结果使用下方稳定的 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 格式。 |
text | string | 是 | 帖子正文。转发帖以 RT @username: 开头。 |
author | object | 是 | 内容的作者或发布者。 |
author.id | string | 是 | 作者的唯一标识。 |
author.username | string | 是 | 账号的公开用户名或账号标识。 |
author.name | string | 是 | 作者的显示名称。 |
author.url | string | 是 | 作者的公开访问地址(如可获得)。 |
author.avatar_url | string | 是 | 账号头像图片的地址。 |
author.is_verified | boolean | 是 | 账号是否已通过平台认证。 |
author.is_private | boolean | 是 | 账号是否为私密账号。 |
metrics | object | 是 | 结果项可获得的计数和度量数据。 |
metrics.likes_count | integer | 是 | 点赞数量。 |
metrics.comments_count | integer | 是 | 评论数量。 |
metrics.shares_count | integer | 是 | 分享或转发数量。 |
metrics.views_count | integer | 是 | 平台报告的观看数量。 |
media | array<object> | 是 | 结果附带的图片、视频或其他媒体。 |
media.type | string | 是 | 媒体类型,例如 image 或 video。 |
media.url | string | 是 | 媒体文件的地址。 |
media.thumbnail_url | string | 是 | 媒体预览图的地址。 |
media.width | integer | 是 | 媒体宽度,单位为像素。 |
media.height | integer | 是 | 媒体高度,单位为像素。 |
media.duration_seconds | number | 是 | 媒体时长,单位为秒。 |
hashtags | array<string> | 是 | 内容关联的话题标签,保留源数据中的拼写。 |
mentions | array<string> | 是 | 内容中提及的账号。 |
is_repost | boolean | 是 | 该条目是否为转发其他账号的帖子。 |
reposted_post_id | string | 是 | 转发时原帖的 ID。 |
reposted_author | object | 是 | 转发时原帖的作者。 |
reposted_author.id | string | 是 | 原帖作者的唯一标识。 |
reposted_author.username | string | 是 | 账号的公开用户名或账号标识。 |
reposted_author.name | string | 是 | 原帖作者的显示名称。 |
reposted_author.url | string | 是 | 原帖作者的公开访问地址(如可获得)。 |
reposted_author.avatar_url | string | 是 | 账号头像图片的地址。 |
reposted_author.is_verified | boolean | 是 | 账号是否已通过平台认证。 |
reposted_author.is_private | boolean | 是 | 账号是否为私密账号。 |
任务完成响应
{
"code": 200,
"data": {
"task_id": "example-x-list-posts",
"status": "succeeded",
"public_id": "x/list-posts",
"result_count": 2,
"credits_amount": 1.4,
"results": {
"limit": 50,
"next_cursor": null,
"has_more": false,
"schema_id": "list-post",
"schema_version": "1.0",
"items": [
{
"id": "1990000000000000101",
"platform": "x",
"resource": "list-posts",
"type": "post",
"url": "https://x.com/shipping_daily/status/1990000000000000101",
"published_at": "2026-11-13T10:01:48Z",
"collected_at": "2026-11-13T10:15:28Z",
"text": "Shipped dark mode today. Three evenings, one very long stylesheet and a lot of contrast checks. https://t.co/example1",
"author": {
"id": "1940000000000000101",
"username": "shipping_daily",
"name": "Shipping Daily",
"url": "https://x.com/shipping_daily",
"avatar_url": "https://pbs.twimg.com/profile_images/1940000000000000101/avatar_normal.jpg",
"is_verified": false,
"is_private": null
},
"metrics": {
"likes_count": 12,
"comments_count": 5,
"shares_count": 0,
"views_count": 485
},
"media": [
{
"type": "image",
"url": "https://pbs.twimg.com/media/example-dark-mode.jpg",
"thumbnail_url": null,
"width": 1179,
"height": 1188,
"duration_seconds": null
}
],
"hashtags": [],
"mentions": [],
"is_repost": false,
"reposted_post_id": null,
"reposted_author": null
},
{
"id": "1990000000000000102",
"platform": "x",
"resource": "list-posts",
"type": "post",
"url": "https://x.com/saas_notes/status/1990000000000000102",
"published_at": "2026-11-13T10:12:15Z",
"collected_at": "2026-11-13T10:15:28Z",
"text": "RT @founder_letters: Five things we learned launching on a Friday https://t.co/example2",
"author": {
"id": "1940000000000000102",
"username": "saas_notes",
"name": "SaaS Notes",
"url": "https://x.com/saas_notes",
"avatar_url": "https://pbs.twimg.com/profile_images/1940000000000000102/avatar_normal.jpg",
"is_verified": false,
"is_private": null
},
"metrics": {
"likes_count": 11,
"comments_count": 5,
"shares_count": 2,
"views_count": 121
},
"media": [
{
"type": "image",
"url": "https://pbs.twimg.com/media/example-launch-notes.jpg",
"thumbnail_url": null,
"width": 2048,
"height": 1152,
"duration_seconds": null
}
],
"hashtags": [],
"mentions": [
"founder_letters"
],
"is_repost": true,
"reposted_post_id": "1990000000000000103",
"reposted_author": {
"id": "1940000000000000103",
"username": "founder_letters",
"name": "Founder Letters",
"url": "https://x.com/founder_letters",
"avatar_url": "https://pbs.twimg.com/profile_images/1940000000000000103/avatar_normal.jpg",
"is_verified": false,
"is_private": null
}
}
]
}
}
}
请求体
application/json
通过 urls 提供公开 X 列表链接,路径格式为 /i/lists/{数字ID}。results_limit 分别应用于每个列表,默认 100,须为 20–2000 范围内 20 的倍数。列表成员转发的帖子也会返回,并做标记。
公开 X 列表链接,格式为 https://x.com/i/lists/{数字ID}。每个列表分别应用结果数量上限,至少提供 1 项。
Minimum array length:
1Minimum string length:
1
