Skip to main content
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 creditper request

Copy for AI

🤖 Why Code When AI Can Do It For You?

Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

query
string
required

Search keyword

Safe search setting, default is unset Options: unset, strict

allow_nsfw
string
default:0

Whether to allow NSFW (adult) content, default is 0 Options: "0" = not allowed, "1" = allowed

need_format
boolean
default:false

Whether to clean/sanitize the data

Response

The response is of type object.