> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Hashtags

> Search TikTok hashtags by keyword, returning matching tags with video counts and usage statistics.

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">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.</p>
  </div>

  <div className="mt-4">
    <button
      type="button"
      className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50"
      onClick={() => navigator.clipboard.writeText(`I want to make an API call to https://api.keyapi.ai/v1/tiktok/hashtag/search.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/tiktok/hashtag/search

Description: Search TikTok hashtags by keyword, returning matching tags with video counts and usage statistics.

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- keyword (Required): Search keyword. Example: fpy
- region (Required): Country/region code (e.g. US, GB, DE). Example: US
- offset (Optional): When has_more=1, use the cursor for the next pagination. Example: 0
- count (Optional). Example: 20

Example Response:
{
"code": 0,
"message": "success",
"data": {
"ad_info": {},
"challenge_list": [
  {
    "challenge_info": {
      "banner_list": null,
      "cha_attrs": null,
      "cha_name": "fpy",
      "cid": "37644733",
      "collect_stat": 0,
      "connect_music": [],
      "desc": "",
      "extra_attr": {
        "is_live": false
      },
      "hashtag_profile": "",
      "is_challenge": 0,
      "is_commerce": false,
      "is_pgcshow": false,
      "schema": "aweme://aweme/challenge/detail?cid=37644733",
      "search_cha_name": "fpy",
      "search_highlight": null,
      "share_info": {
        "bool_persist": 0,
        "now_invitation_card_image_urls": null,
        "share_desc": "Check out #fpy on TikTok!",
        "share_desc_info": "Check out #fpy on TikTok!",
        "share_quote": "",
        "share_signature_desc": "",
        "share_signature_url": "",
        "share_title": "It is a becoming a big trend on TikTok now! Click here: fpy",
        "share_title_myself": "",
        "share_title_other": "",
        "share_url": "https://www.tiktok.com/tag/fpy?_r=1&name=fpy&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=37644733&sharer_language=en&source=h5_m"
      },
      "show_items": null,
      "sub_type": 0,
      "type": 1,
      "use_count": 60230354,
      "user_count": 60230354,
      "view_count": 6
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/tiktok.openapi.json GET /v1/tiktok/hashtag/search
openapi: 3.0.1
info:
  title: Tiktok API english documentation
  description: >-
    The english reference documentation of the Tiktok API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security: []
tags:
  - name: TikTok Influencer
  - name: TikTok Shop
  - name: TikTok Content
  - name: TikTok Intelligence
paths:
  /v1/tiktok/hashtag/search:
    get:
      tags:
        - TikTok Content
      summary: Search Hashtags
      description: >-
        Search TikTok hashtags by keyword, returning matching tags with video
        counts and usage statistics.
      operationId: get_api_v3_realtime_hashtag_search
      parameters:
        - name: keyword
          in: query
          required: true
          schema:
            type: string
            example: fpy
            default: fpy
          example: fpy
          description: Search keyword
        - name: region
          in: query
          required: true
          schema:
            type: string
            example: US
            default: US
          example: US
          description: Country/region code (e.g. US, GB, DE)
        - name: offset
          in: query
          description: When has_more=1, use the cursor for the next pagination
          required: false
          schema:
            type: string
            example: '0'
            default: '0'
          example: '0'
        - name: count
          in: query
          required: false
          schema:
            type: string
            example: '20'
            default: '20'
          example: '20'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties: {}
                example:
                  code: 0
                  message: success
                  data:
                    ad_info: {}
                    challenge_list:
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy
                          cid: '37644733'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=37644733
                          search_cha_name: fpy
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy on TikTok!'
                            share_desc_info: 'Check out #fpy on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy?_r=1&name=fpy&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=37644733&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 60230354
                          user_count: 60230354
                          view_count: 689794358822
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy_
                          cid: '1642410922401798'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1642410922401798
                          search_cha_name: fpy_
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy_ on TikTok!'
                            share_desc_info: 'Check out #fpy_ on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy_
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy_?_r=1&name=fpy_&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1642410922401798&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 448391
                          user_count: 448391
                          view_count: 1758915430
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🥰
                          cid: '1647884973690881'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1647884973690881
                          search_cha_name: fpy🥰
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🥰 on TikTok!'
                            share_desc_info: 'Check out #fpy🥰 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🥰
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%A5%B0?_r=1&name=fpy%F0%9F%A5%B0&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1647884973690881&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 9904
                          user_count: 9904
                          view_count: 23028381
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy❤️
                          cid: '1642054089261061'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1642054089261061
                          search_cha_name: fpy❤️
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy❤️ on TikTok!'
                            share_desc_info: 'Check out #fpy❤️ on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy❤️
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%E2%9D%A4%EF%B8%8F?_r=1&name=fpy%E2%9D%A4%EF%B8%8F&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1642054089261061&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 28643
                          user_count: 28643
                          view_count: 78191406
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy💖
                          cid: '1660178775938053'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1660178775938053
                          search_cha_name: fpy💖
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy💖 on TikTok!'
                            share_desc_info: 'Check out #fpy💖 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy💖
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%92%96?_r=1&name=fpy%F0%9F%92%96&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1660178775938053&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 1821
                          user_count: 1821
                          view_count: 9923281
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy😍😍
                          cid: '1663046271886337'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1663046271886337
                          search_cha_name: fpy😍😍
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy😍😍 on TikTok!'
                            share_desc_info: 'Check out #fpy😍😍 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy😍😍
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%98%8D%F0%9F%98%8D?_r=1&name=fpy%F0%9F%98%8D%F0%9F%98%8D&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1663046271886337&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 4304
                          user_count: 4304
                          view_count: 17100625
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy😘
                          cid: '1643658188824577'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1643658188824577
                          search_cha_name: fpy😘
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy😘 on TikTok!'
                            share_desc_info: 'Check out #fpy😘 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy😘
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%98%98?_r=1&name=fpy%F0%9F%98%98&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1643658188824577&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 6045
                          user_count: 6045
                          view_count: 9182052
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🖤
                          cid: '1649926995041285'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1649926995041285
                          search_cha_name: fpy🖤
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🖤 on TikTok!'
                            share_desc_info: 'Check out #fpy🖤 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🖤
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%96%A4?_r=1&name=fpy%F0%9F%96%A4&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1649926995041285&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 5475
                          user_count: 5475
                          view_count: 24732016
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy😎
                          cid: '1660653962520593'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1660653962520593
                          search_cha_name: fpy😎
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy😎 on TikTok!'
                            share_desc_info: 'Check out #fpy😎 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy😎
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%98%8E?_r=1&name=fpy%F0%9F%98%8E&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1660653962520593&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 1578
                          user_count: 1578
                          view_count: 2831079
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🙈😍
                          cid: '1688870796677121'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1688870796677121
                          search_cha_name: fpy🙈😍
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🙈😍 on TikTok!'
                            share_desc_info: 'Check out #fpy🙈😍 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🙈😍
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%99%88%F0%9F%98%8D?_r=1&name=fpy%F0%9F%99%88%F0%9F%98%8D&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1688870796677121&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 740
                          user_count: 740
                          view_count: 3816156
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy😂
                          cid: '1653050221629442'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1653050221629442
                          search_cha_name: fpy😂
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy😂 on TikTok!'
                            share_desc_info: 'Check out #fpy😂 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy😂
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%98%82?_r=1&name=fpy%F0%9F%98%82&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1653050221629442&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 1166
                          user_count: 1166
                          view_count: 15906304
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🥰🥰🥰🥰
                          cid: '1683804158648322'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1683804158648322
                          search_cha_name: fpy🥰🥰🥰🥰
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🥰🥰🥰🥰 on TikTok!'
                            share_desc_info: 'Check out #fpy🥰🥰🥰🥰 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🥰🥰🥰🥰
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0?_r=1&name=fpy%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1683804158648322&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 4177
                          user_count: 4177
                          view_count: 28246330
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: _fpy
                          cid: '1650454010382337'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1650454010382337
                          search_cha_name: _fpy
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #_fpy on TikTok!'
                            share_desc_info: 'Check out #_fpy on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: _fpy
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/_fpy?_r=1&name=_fpy&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1650454010382337&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 4459
                          user_count: 4459
                          view_count: 11846744
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy💋
                          cid: '1655917416441862'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1655917416441862
                          search_cha_name: fpy💋
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy💋 on TikTok!'
                            share_desc_info: 'Check out #fpy💋 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy💋
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%92%8B?_r=1&name=fpy%F0%9F%92%8B&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1655917416441862&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 676
                          user_count: 676
                          view_count: 4625203
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy💜
                          cid: '1654459048543237'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1654459048543237
                          search_cha_name: fpy💜
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy💜 on TikTok!'
                            share_desc_info: 'Check out #fpy💜 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy💜
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%92%9C?_r=1&name=fpy%F0%9F%92%9C&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1654459048543237&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 1565
                          user_count: 1565
                          view_count: 1448286
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🔥
                          cid: '1645002060900353'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1645002060900353
                          search_cha_name: fpy🔥
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🔥 on TikTok!'
                            share_desc_info: 'Check out #fpy🔥 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🔥
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%94%A5?_r=1&name=fpy%F0%9F%94%A5&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1645002060900353&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 4971
                          user_count: 4971
                          view_count: 46953958
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🥰🥰🥰
                          cid: '1650865443069953'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1650865443069953
                          search_cha_name: fpy🥰🥰🥰
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🥰🥰🥰 on TikTok!'
                            share_desc_info: 'Check out #fpy🥰🥰🥰 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🥰🥰🥰
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0?_r=1&name=fpy%F0%9F%A5%B0%F0%9F%A5%B0%F0%9F%A5%B0&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1650865443069953&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 4225
                          user_count: 4225
                          view_count: 7717588
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy🌈
                          cid: '1663613169652741'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1663613169652741
                          search_cha_name: fpy🌈
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy🌈 on TikTok!'
                            share_desc_info: 'Check out #fpy🌈 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy🌈
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%8C%88?_r=1&name=fpy%F0%9F%8C%88&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1663613169652741&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 2185
                          user_count: 2185
                          view_count: 5134101
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpy💘
                          cid: '1663642657122310'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1663642657122310
                          search_cha_name: fpy💘
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpy💘 on TikTok!'
                            share_desc_info: 'Check out #fpy💘 on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpy💘
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpy%F0%9F%92%98?_r=1&name=fpy%F0%9F%92%98&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1663642657122310&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 492
                          user_count: 492
                          view_count: 1645602
                        items: null
                        position: null
                      - challenge_info:
                          banner_list: null
                          cha_attrs: null
                          cha_name: fpychallenge
                          cid: '1643694549501957'
                          collect_stat: 0
                          connect_music: []
                          desc: ''
                          extra_attr:
                            is_live: false
                          hashtag_profile: ''
                          is_challenge: 0
                          is_commerce: false
                          is_pgcshow: false
                          schema: aweme://aweme/challenge/detail?cid=1643694549501957
                          search_cha_name: fpychallenge
                          search_highlight: null
                          share_info:
                            bool_persist: 0
                            now_invitation_card_image_urls: null
                            share_desc: 'Check out #fpychallenge on TikTok!'
                            share_desc_info: 'Check out #fpychallenge on TikTok!'
                            share_quote: ''
                            share_signature_desc: ''
                            share_signature_url: ''
                            share_title: >-
                              It is a becoming a big trend on TikTok now! Click
                              here: fpychallenge
                            share_title_myself: ''
                            share_title_other: ''
                            share_url: >-
                              https://www.tiktok.com/tag/fpychallenge?_r=1&name=fpychallenge&u_code=0&_d=f0b57299a1l5ac&share_challenge_id=1643694549501957&sharer_language=en&source=h5_m
                          show_items: null
                          sub_type: 0
                          type: 1
                          use_count: 44637
                          user_count: 44637
                          view_count: 97508993
                        items: null
                        position: null
                    cursor: 20
                    extra:
                      api_debug_info: null
                      fatal_item_ids: []
                      logid: 2025111202513377DEC84D90406B1B6F30
                      now: 1762915894000
                      search_request_id: ''
                      server_stream_time: 1001
                    feedback_type: challenge
                    global_doodle_config:
                      feedback_survey:
                        - feedback_type: challenge
                          long_stress_info: null
                          multiple_choices:
                            - key: Dislike
                              value: Dislike
                            - key: Unrelated result
                              value: Unrelated result
                            - key: Outdated content
                              value: Outdated content
                            - key: Inappropriate content
                              value: Inappropriate content
                            - key: Others
                              value: Others
                          send_us_multiple_choices: null
                      hashtag_vertical_style_type: 1
                      hide_results: false
                      hit_dolphin: false
                      hit_shark: false
                      keyword: fpy
                      new_source: normal_search
                      search_channel: musically_challenge
                      tns_search_result: Pass
                    has_more: 1
                    is_match: false
                    keyword_disabled: 0
                    log_pb:
                      impr_id: 2025111202513377DEC84D90406B1B6F30
                    qc: ''
                    status_code: 0
                  requestId: 2708f385-a89a-47f5-99fc-060e1b6eb877
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/tiktok/hashtag/search?keyword=fpy&region=US&offset=0&count=20' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/tiktok/hashtag/search',
                params={"keyword": "fpy", "region": "US", "offset": "0", "count": "20"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"keyword": "fpy", "region":
            "US", "offset": "0", "count": "20"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/tiktok/hashtag/search?${params}`, {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````