获取Reddit APP搜索自动补全建议
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_search_typeahead \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_search_typeahead"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_search_typeahead', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_search_typeahead")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"search": {
"dynamic": {
"components": {
"__typename": "TypeaheadLayout",
"main": [
{
"__typename": "SearchTypeaheadList",
"id": "section_0_pipeline_2_query_autocomplete",
"presentation": {
"__typename": "SearchTypeaheadListDefaultPresentation",
"title": ""
},
"behaviors": {
"collapse": null,
"expand": null,
"expandCta": null
},
"children": [
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming language",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "query_suggestion",
"relativePosition": 0
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming language",
"rawQuery": "programming language"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% language"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "query_suggestion",
"relativePosition": 0
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming language",
"rawQuery": "programming language"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programminghumor",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "query_suggestion",
"relativePosition": 1
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programminghumor",
"rawQuery": "programminghumor"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query%humor"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "query_suggestion",
"relativePosition": 1
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programminghumor",
"rawQuery": "programminghumor"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming jobs",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "query_suggestion",
"relativePosition": 2
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming jobs",
"rawQuery": "programming jobs"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% jobs"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "query_suggestion",
"relativePosition": 2
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming jobs",
"rawQuery": "programming jobs"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming hungary",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "query_suggestion",
"relativePosition": 3
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming hungary",
"rawQuery": "programming hungary"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% hungary"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "query_suggestion",
"relativePosition": 3
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming hungary",
"rawQuery": "programming hungary"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
}
]
},
{
"__typename": "SearchTypeaheadList",
"id": "subreddit_typeahead_section",
"presentation": {
"__typename": "SearchTypeaheadListDefaultPresentation",
"title": "社区"
},
"behaviors": {
"collapse": null,
"expand": null,
"expandCta": null
},
"children": [
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2fwo",
"name": "programming",
"url": "/r/programming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "subreddit",
"relativePosition": 4
},
"post": null,
"subreddit": {
"id": "t5_2fwo",
"isNsfw": false,
"isQuarantined": false,
"name": "programming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 397K 个访客",
"displayTags": [],
"icon": "https://styles.redditmedia.com/t5_2fwo/styles/communityIcon_1bqa1ibfp8q11.png",
"name": "r/programming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "subreddit",
"relativePosition": 4
},
"post": null,
"subreddit": {
"id": "t5_2fwo",
"isNsfw": false,
"isQuarantined": false,
"name": "programming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2r7yd",
"name": "learnprogramming",
"url": "/r/learnprogramming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "subreddit",
"relativePosition": 5
},
"post": null,
"subreddit": {
"id": "t5_2r7yd",
"isNsfw": false,
"isQuarantined": false,
"name": "learnprogramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 664K 个访客",
"displayTags": [],
"icon": "",
"name": "r/learnprogramming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "subreddit",
"relativePosition": 5
},
"post": null,
"subreddit": {
"id": "t5_2r7yd",
"isNsfw": false,
"isQuarantined": false,
"name": "learnprogramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2seko",
"name": "AskProgramming",
"url": "/r/AskProgramming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "subreddit",
"relativePosition": 6
},
"post": null,
"subreddit": {
"id": "t5_2seko",
"isNsfw": false,
"isQuarantined": false,
"name": "AskProgramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 124K 个访客",
"displayTags": [],
"icon": "https://b.thumbs.redditmedia.com/IMuq3QpuUwXjEjXcDgIGgqOJz2j5ft1g9gEnFTFQPgQ.png",
"name": "r/AskProgramming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "subreddit",
"relativePosition": 6
},
"post": null,
"subreddit": {
"id": "t5_2seko",
"isNsfw": false,
"isQuarantined": false,
"name": "AskProgramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2qi8m",
"name": "ProgrammingLanguages",
"url": "/r/ProgrammingLanguages/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "subreddit",
"relativePosition": 7
},
"post": null,
"subreddit": {
"id": "t5_2qi8m",
"isNsfw": false,
"isQuarantined": false,
"name": "ProgrammingLanguages"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 29K 个访客",
"displayTags": [],
"icon": "https://b.thumbs.redditmedia.com/kdpwcOKjcwwPBGcNxl3B7b2Ta6_DMnmYeoo8qpvRL4U.png",
"name": "r/ProgrammingLanguages"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "subreddit",
"relativePosition": 7
},
"post": null,
"subreddit": {
"id": "t5_2qi8m",
"isNsfw": false,
"isQuarantined": false,
"name": "ProgrammingLanguages"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2tj0l",
"name": "programmingmemes",
"url": "/r/programmingmemes/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 4,
"reason": null,
"type": "subreddit",
"relativePosition": 8
},
"post": null,
"subreddit": {
"id": "t5_2tj0l",
"isNsfw": false,
"isQuarantined": false,
"name": "programmingmemes"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 105K 个访客",
"displayTags": [],
"icon": "https://styles.redditmedia.com/t5_2tj0l/styles/communityIcon_oo7drylo66351.png",
"name": "r/programmingmemes"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 4,
"reason": null,
"type": "subreddit",
"relativePosition": 8
},
"post": null,
"subreddit": {
"id": "t5_2tj0l",
"isNsfw": false,
"isQuarantined": false,
"name": "programmingmemes"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
}
]
}
]
}
}
}
},
"requestId": "d8dfc01f-41df-4ffd-bae1-e86ce5114544"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Reddit 用户与社区
获取Reddit APP搜索自动补全建议
获取搜索框的自动补全建议,包括推荐的版块、用户和搜索词。
GET
/
v1
/
reddit
/
fetch_search_typeahead
获取Reddit APP搜索自动补全建议
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_search_typeahead \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_search_typeahead"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_search_typeahead', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_search_typeahead")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"search": {
"dynamic": {
"components": {
"__typename": "TypeaheadLayout",
"main": [
{
"__typename": "SearchTypeaheadList",
"id": "section_0_pipeline_2_query_autocomplete",
"presentation": {
"__typename": "SearchTypeaheadListDefaultPresentation",
"title": ""
},
"behaviors": {
"collapse": null,
"expand": null,
"expandCta": null
},
"children": [
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming language",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "query_suggestion",
"relativePosition": 0
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming language",
"rawQuery": "programming language"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% language"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "query_suggestion",
"relativePosition": 0
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming language",
"rawQuery": "programming language"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programminghumor",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "query_suggestion",
"relativePosition": 1
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programminghumor",
"rawQuery": "programminghumor"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query%humor"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "query_suggestion",
"relativePosition": 1
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programminghumor",
"rawQuery": "programminghumor"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming jobs",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "query_suggestion",
"relativePosition": 2
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming jobs",
"rawQuery": "programming jobs"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% jobs"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "query_suggestion",
"relativePosition": 2
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming jobs",
"rawQuery": "programming jobs"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "programming hungary",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "query_suggestion",
"relativePosition": 3
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming hungary",
"rawQuery": "programming hungary"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "programming",
"suggestion": "%query% hungary"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "query_suggestion",
"relativePosition": 3
},
"post": null,
"subreddit": null,
"metaSearch": {
"displayQuery": "programming hungary",
"rawQuery": "programming hungary"
},
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
}
]
},
{
"__typename": "SearchTypeaheadList",
"id": "subreddit_typeahead_section",
"presentation": {
"__typename": "SearchTypeaheadListDefaultPresentation",
"title": "社区"
},
"behaviors": {
"collapse": null,
"expand": null,
"expandCta": null
},
"children": [
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2fwo",
"name": "programming",
"url": "/r/programming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "subreddit",
"relativePosition": 4
},
"post": null,
"subreddit": {
"id": "t5_2fwo",
"isNsfw": false,
"isQuarantined": false,
"name": "programming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 397K 个访客",
"displayTags": [],
"icon": "https://styles.redditmedia.com/t5_2fwo/styles/communityIcon_1bqa1ibfp8q11.png",
"name": "r/programming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"type": "subreddit",
"relativePosition": 4
},
"post": null,
"subreddit": {
"id": "t5_2fwo",
"isNsfw": false,
"isQuarantined": false,
"name": "programming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2r7yd",
"name": "learnprogramming",
"url": "/r/learnprogramming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "subreddit",
"relativePosition": 5
},
"post": null,
"subreddit": {
"id": "t5_2r7yd",
"isNsfw": false,
"isQuarantined": false,
"name": "learnprogramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 664K 个访客",
"displayTags": [],
"icon": "",
"name": "r/learnprogramming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"type": "subreddit",
"relativePosition": 5
},
"post": null,
"subreddit": {
"id": "t5_2r7yd",
"isNsfw": false,
"isQuarantined": false,
"name": "learnprogramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2seko",
"name": "AskProgramming",
"url": "/r/AskProgramming/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "subreddit",
"relativePosition": 6
},
"post": null,
"subreddit": {
"id": "t5_2seko",
"isNsfw": false,
"isQuarantined": false,
"name": "AskProgramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 124K 个访客",
"displayTags": [],
"icon": "https://b.thumbs.redditmedia.com/IMuq3QpuUwXjEjXcDgIGgqOJz2j5ft1g9gEnFTFQPgQ.png",
"name": "r/AskProgramming"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"type": "subreddit",
"relativePosition": 6
},
"post": null,
"subreddit": {
"id": "t5_2seko",
"isNsfw": false,
"isQuarantined": false,
"name": "AskProgramming"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2qi8m",
"name": "ProgrammingLanguages",
"url": "/r/ProgrammingLanguages/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "subreddit",
"relativePosition": 7
},
"post": null,
"subreddit": {
"id": "t5_2qi8m",
"isNsfw": false,
"isQuarantined": false,
"name": "ProgrammingLanguages"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 29K 个访客",
"displayTags": [],
"icon": "https://b.thumbs.redditmedia.com/kdpwcOKjcwwPBGcNxl3B7b2Ta6_DMnmYeoo8qpvRL4U.png",
"name": "r/ProgrammingLanguages"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 3,
"reason": null,
"type": "subreddit",
"relativePosition": 7
},
"post": null,
"subreddit": {
"id": "t5_2qi8m",
"isNsfw": false,
"isQuarantined": false,
"name": "ProgrammingLanguages"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
},
{
"__typename": "TypeaheadSuggestion",
"behaviors": {
"default": {
"__typename": "SearchCommunityNavigationBehavior",
"id": "t5_2tj0l",
"name": "programmingmemes",
"url": "/r/programmingmemes/",
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 4,
"reason": null,
"type": "subreddit",
"relativePosition": 8
},
"post": null,
"subreddit": {
"id": "t5_2tj0l",
"isNsfw": false,
"isQuarantined": false,
"name": "programmingmemes"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "click",
"noun": "typeahead",
"trigger": "CLICK",
"triggerConfiguration": null
}
]
}
}
},
"presentation": {
"__typename": "TypeaheadSuggestionDefaultPresentation",
"description": "每周 105K 个访客",
"displayTags": [],
"icon": "https://styles.redditmedia.com/t5_2tj0l/styles/communityIcon_oo7drylo66351.png",
"name": "r/programmingmemes"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"search": {
"isNsfw": false,
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null,
"query": "programming",
"queryID": "61573d51-cf44-4d4f-8113-73513216a6cc"
},
"actionInfo": {
"paneName": null,
"position": 4,
"reason": null,
"type": "subreddit",
"relativePosition": 8
},
"post": null,
"subreddit": {
"id": "t5_2tj0l",
"isNsfw": false,
"isQuarantined": false,
"name": "programmingmemes"
},
"metaSearch": null,
"profile": null,
"answers": null
},
"events": [
{
"source": "search",
"action": "view",
"noun": "typeahead",
"trigger": "VIEW",
"triggerConfiguration": null
}
]
}
}
]
}
]
}
}
}
},
"requestId": "d8dfc01f-41df-4ffd-bae1-e86ce5114544"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 credits每次请求
复制给 AI
🤖 为什么还要自己写代码?
让 AI 来处理重复工作。点击按钮即可复制一段整理好的提示词,用于 ChatGPT、Claude 或你常用的 AI 助手。
授权
接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。
可在 Dashboard 获取你的 API Key。
查询参数
响应
请求成功
The response is of type object.

