搜索Reddit搜索联想 · 联想
Reddit 搜索联想
输入关键词,返回当前公开搜索联想词与相关社区候选。
POST
/v1/reddit/search/suggestions英文名称: Reddit search suggestions · Search Suggestion · Suggest Return current public query suggestions and related community candidates.reddit.search.suggestions@v1
在线试用
这个接口即将上线
我们正在做上线前的检查。上线后可以在这里直接试用,并按上方价格计费;在此之前不会产生任何费用。你可以先阅读参数和返回示例。
登录后用真实参数调用一次,结果和扣费会显示在这里。
安全验证
正在加载安全验证…
正在确认实时执行状态…
执行结果
// Result
请求参数
querystring必填minLength: 1 · maxLength: 256
示例:
"local AI"
请求 JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"query"
],
"additionalProperties": false
}代码示例
安装 SDK:npm i @dataxapi/sdk 或 pip install dataxapi;把 API Key 放进环境变量 DATAXAPI_API_KEY。
curl -X POST https://api.dataxapi.com/v1/reddit/search/suggestions \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"query":"local AI"}'import { ExactApiClient } from "@dataxapi/sdk";
const client = new ExactApiClient({
baseUrl: "https://api.dataxapi.com",
apiKey: process.env.DATAXAPI_API_KEY,
});
const result = await client.call("reddit_search_suggestions_v1", {
"query": "local AI"
});
console.log(result.data);import os
from dataxapi import ExactApiClient
client = ExactApiClient("https://api.dataxapi.com", os.environ["DATAXAPI_API_KEY"])
result = client.call("reddit_search_suggestions_v1", {
"query": "local AI",
})
print(result["data"])[mcp_servers.dataxapi]
url = "https://api.dataxapi.com/mcp"
bearer_token_env_var = "DATAXAPI_API_KEY"返回示例
200 · application/json
{
"code": 200,
"request_id": "req_example_reddit_batch5",
"message": "success",
"data": {
"items": [
{
"type": "query",
"text": "local ai setup",
"query": "local ai setup",
"community": null
},
{
"type": "community",
"text": "r/LocalLLaMA",
"query": null,
"community": {
"id": "t5_localllama",
"name": "LocalLLaMA",
"prefixed_name": "r/LocalLLaMA",
"description": "Local models and open source AI",
"icon_url": "https://styles.redditmedia.com/community-icon.png",
"reddit_url": "https://www.reddit.com/r/LocalLLaMA/",
"is_nsfw": false
}
}
]
},
"page": {
"next_cursor": null
},
"warnings": [],
"meta": {
"listing_id": "reddit.search.suggestions",
"version": "v1",
"catalog_release_id": "catalog-production-2026-09-19.b069be57",
"price_book_version": "pricebook-production-2026-09-19.4487e352",
"result_status": "complete",
"charged_amount": "0.02",
"balance_after": "49.98",
"currency": "CNY"
}
}返回字段说明
codenumber- const: 200
request_idstringmessagestring- const: "success"
dataobjectpageobjectwarningsarraymetaobject
返回 JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"code": {
"type": "number",
"const": 200
},
"request_id": {
"type": "string"
},
"message": {
"type": "string",
"const": "success"
},
"data": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"query",
"community"
]
},
"text": {
"type": "string"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"community": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
},
"prefixed_name": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"icon_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"reddit_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"is_nsfw": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"prefixed_name",
"description",
"icon_url",
"reddit_url",
"is_nsfw"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"text",
"query",
"community"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
},
"page": {
"type": "object",
"properties": {
"next_cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"next_cursor"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"meta": {
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"const": "reddit.search.suggestions"
},
"version": {
"type": "string",
"const": "v1"
},
"catalog_release_id": {
"type": "string",
"minLength": 1
},
"price_book_version": {
"type": "string",
"minLength": 1
},
"result_status": {
"type": "string",
"enum": [
"complete",
"empty",
"partial"
]
},
"charged_amount": {
"type": "string"
},
"balance_after": {
"type": "string"
},
"currency": {
"type": "string",
"const": "CNY"
}
},
"required": [
"listing_id",
"version",
"catalog_release_id",
"price_book_version",
"result_status",
"charged_amount",
"balance_after",
"currency"
],
"additionalProperties": false
}
},
"required": [
"code",
"request_id",
"message",
"data",
"page",
"warnings",
"meta"
],
"additionalProperties": false
}使用说明
适合
- 需要扩展 Reddit 检索词或发现可能相关的公开社区。
不适合
- 不用于证明需求规模、话题热度、代表性或排名原因。
已知限制
- 结果是当前搜索表面的联想候选,不是关键词热度或搜索量。
- V1 固定 strict safe search 且不返回 NSFW 候选。
- 结果随 Reddit 当前搜索表面变化,不承诺稳定排序。
计费规则
¥0.02 / 次。完整或确认空结果收费;部分结果和失败不收费。
查看全部价格 →