跳转到主要内容
GET
/
v1
/
reddit
/
fetch_search_typeahead
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/reddit/fetch_search_typeahead?query=programming&safe_search=unset&allow_nsfw=0&need_format=false' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "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"
}
🪙1 credit每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

query
string
必填

搜索关键词,输入的搜索文本

示例:

"programming"

安全搜索设置,可选值:unset(未设置), strict(严格模式)

allow_nsfw
string
默认值:0

是否允许显示NSFW(成人)内容,可选值:0(表示不允许), 1(表示不允许)

need_format
boolean
默认值:false

是否需要清洗数据

响应

请求成功

The response is of type object.