> ## 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.

# Keyword Inspiration Insights

> Get inspiration content related to a keyword and region. This endpoint is designed for creative expansion and content ideation rather than exact entity search.

<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/inspiration/keyword.\n\nPlease help me write code to make this API call and handle the response appropriately. Include error handling and best practices.\n\nHere are the details:\n\nEndpoint: GET https://api.keyapi.ai/v1/tiktok/inspiration/keyword\n\nDescription: Get inspiration content related to a keyword and region. This endpoint is designed for creative expansion and content ideation rather than exact entity search.\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- keyword (Required): Keyword.. Example: pretty\n- region (Required): Region or market code, such as US.. Example: US\n- offset (Optional): Pagination offset. If has_more is 1, use the returned cursor to fetch the next page.. Example: 0\n- count (Optional): Number of items to return.. Example: 10\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"banners\": {\n      \"conversion_bar_list\": [\n        {\n          \"item_link\": \"https://activity.tiktokw.us/magic/eco/runtime/release/66581e19df4daf02866b5cc9?appType=muse&magic_page_no=1&lang=en&region=Default&use_spark=1\",\n          \"item_text\": \"Learn more\"\n        }\n      ],\n      \"event_banners\": {\n        \"ecommerce_education\": {\n          \"eligible\": {\n            \"image_url\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/6cjd5rh91716193010532\",\n            \"link\": \"https://activity.tiktokw.us/magic/eco/runtime/release/664c4298f65e08d77319049b?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1 \",\n            \"text\": \"Promote products people want to buy. Start earning now!\"\n          },\n          \"enrolled\": {\n            \"image_url\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/b0fmjabl1716192964040\",\n            \"link\": \"https://activity.tiktokw.us/magic/eco/runtime/release/6645db2e6f3a610291d0b0ac?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1\",\n            \"text\": \"Create shoppable videos with products people want to buy!\"\n          },\n          \"non_eligible\": {\n            \"image_url\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/hdskk6yq1716193026366\",\n            \"link\": \"https://activity.tiktokw.us/magic/eco/runtime/release/664c4c03f33586028244e7fb?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1\",\n            \"text\": \"Explore opportunities to earn with shopping insights\"\n          }\n        }\n      },\n      \"home_page_banner\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/q8hl7ump1713411026852\",\n      \"image_url\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/r8z2ni6s1708410808360\",\n      \"image_url_dark\": \"https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/a1av24511708410895413\",\n      \"loading_page_banner\": \"https://p16-search-fe-static.tiktokcdn-us.com/tos-alisg-i-baf7wf9fmw-sg/e06d4221d05a4859be4def9f58c37540~tplv-baf7wf9fmw-image.image\"\n    },\n    \"cost_tracker\": {\n      \"es_cost\": 112,\n      \"fetch_cache_cost\": 0,\n      \"model_cost\": 119,\n      \"post_process_cost\": 10,\n      \"recall_cost\": 189,\n      \"total_cost\": 339\n    },\n    \"cursor\": 10,\n    \"extra\": {\n      \"latency\": 339,\n      \"logid\": \"20260715121327F354541200F23A116483\",\n      \"now\": 1784117608133,\n      \"vgeo\": \"VGeo-US\"\n    },\n    \"has_more\": true,\n    \"inspiration_list\": [\n      {\n        \"business_types\": [\n          \"basic\",\n          \"llm_query_multi_\n  ... truncated ...")}>
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/tiktok.openapi.json GET /v1/tiktok/inspiration/keyword
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/inspiration/keyword:
    get:
      tags:
        - TikTok Intelligence
      summary: Keyword Inspiration Insights
      description: >-
        Get inspiration content related to a keyword and region. This endpoint
        is designed for creative expansion and content ideation rather than
        exact entity search.
      parameters:
        - name: keyword
          in: query
          description: Keyword.
          required: true
          example: pretty
          schema:
            type: string
            example: pretty
        - name: region
          in: query
          description: Region or market code, such as US.
          required: true
          example: US
          schema:
            type: string
            example: US
        - name: offset
          in: query
          description: >-
            Pagination offset. If has_more is 1, use the returned cursor to
            fetch the next page.
          required: false
          example: 0
          schema:
            type: integer
            example: 0
        - name: count
          in: query
          description: Number of items to return.
          required: false
          example: 10
          schema:
            type: integer
            example: 10
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  banners:
                    conversion_bar_list:
                      - item_link: >-
                          https://activity.tiktokw.us/magic/eco/runtime/release/66581e19df4daf02866b5cc9?appType=muse&magic_page_no=1&lang=en&region=Default&use_spark=1
                        item_text: Learn more
                    event_banners:
                      ecommerce_education:
                        eligible:
                          image_url: >-
                            https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/6cjd5rh91716193010532
                          link: >-
                            https://activity.tiktokw.us/magic/eco/runtime/release/664c4298f65e08d77319049b?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1 
                          text: >-
                            Promote products people want to buy. Start earning
                            now!
                        enrolled:
                          image_url: >-
                            https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/b0fmjabl1716192964040
                          link: >-
                            https://activity.tiktokw.us/magic/eco/runtime/release/6645db2e6f3a610291d0b0ac?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1
                          text: >-
                            Create shoppable videos with products people want to
                            buy!
                        non_eligible:
                          image_url: >-
                            https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/hdskk6yq1716193026366
                          link: >-
                            https://activity.tiktokw.us/magic/eco/runtime/release/664c4c03f33586028244e7fb?appType=muse&magic_page_no=1&lang=en-US&region=US&use_spark=1
                          text: Explore opportunities to earn with shopping insights
                    home_page_banner: >-
                      https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/q8hl7ump1713411026852
                    image_url: >-
                      https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/r8z2ni6s1708410808360
                    image_url_dark: >-
                      https://sf16-muse-va.ibytedtos.com/obj/search-static-maliva/maliva/a1av24511708410895413
                    loading_page_banner: >-
                      https://p16-search-fe-static.tiktokcdn-us.com/tos-alisg-i-baf7wf9fmw-sg/e06d4221d05a4859be4def9f58c37540~tplv-baf7wf9fmw-image.image
                  cost_tracker:
                    es_cost: 112
                    fetch_cache_cost: 0
                    model_cost: 119
                    post_process_cost: 10
                    recall_cost: 189
                    total_cost: 339
                  cursor: 10
                  extra:
                    latency: 339
                    logid: 20260715121327F354541200F23A116483
                    now: 1784117608133
                    vgeo: VGeo-US
                  has_more: true
                  inspiration_list:
                    - business_types:
                        - basic
                        - llm_query_multi_lang
                        - demand_points
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 90.538574
                          - 0
                        recall_source:
                          - FromEsQueryAndLang
                          - FromMultiLangQueryText
                        rough_score: 0
                        score: 0.1910027265548706
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.17363885045051575
                          multitasks_click_score: 0.9890459775924683
                          multitasks_collection_score: 0.0016165673732757568
                          multitasks_info_collection_score: 0.004887521266937256
                          multitasks_info_shoot_score: 0.10377770662307739
                          multitasks_shoot_score: 0.01049843430519104
                          multitasks_strict_publish_score: 0.949004054069519
                          rank_relevance_score: 0.09450048208236694
                          recall_relevance_score: 0.5320677757263184
                          video_quality_publish_score: 0.000774085521697998
                          video_quality_strict_search_vv_score: 0.12304830551147461
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 85
                      popularity_updated_at: 1784114322
                      popularity_v2: 1046495
                      query_id: '7592621076425736248'
                      query_id_str: '7592621076425736248'
                      query_labels: []
                      query_text: you are you are very pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Stories/Posting Captions
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 76
                        - 81
                        - 76
                        - 77
                        - 77
                        - 82
                        - 85
                      trending_seq_v2:
                        - 372062
                        - 664133
                        - 349565
                        - 397360
                        - 397760
                        - 768423
                        - 1046495
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 798
                    - cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 0
                        recall_source:
                          - FromAnalyticsSimilarQuery
                        rough_score: 0
                        score: 0.21694011986255646
                        target_score:
                          all_boost: 1
                          before_boost: 0.21694011986255646
                          multitasks_click_score: 0.9642069339752197
                          multitasks_collection_score: 0.0022492408752441406
                          multitasks_info_collection_score: 0.01232948899269104
                          multitasks_info_shoot_score: 0.1569022536277771
                          multitasks_shoot_score: 0.011453628540039062
                          multitasks_strict_publish_score: 0.8778594732284546
                          rank_relevance_score: 0.16771379113197327
                          recall_relevance_score: 0.5214754939079285
                          video_quality_publish_score: 0.0032362937927246094
                          video_quality_strict_search_vv_score: 0.15568071603775024
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 73
                      popularity_updated_at: 1784115430
                      popularity_v2: 246526
                      query_id: '7545930297733283896'
                      query_id_str: '7545930297733283896'
                      query_labels: []
                      query_text: You pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Stories/Posting Captions
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 71
                        - 73
                        - 73
                        - 72
                        - 74
                        - 71
                        - 73
                      trending_seq_v2:
                        - 173647
                        - 224732
                        - 256423
                        - 185444
                        - 283714
                        - 174547
                        - 246526
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 934
                    - business_types:
                        - basic
                        - hot_event_v2
                        - llm_query_multi_lang
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 67.23966
                          - 0
                        recall_source:
                          - FromEsQueryAndLang
                          - FromMultiLangQueryText
                        rough_score: 0
                        score: 0.17381234467029572
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.15801122784614563
                          multitasks_click_score: 0.9682525396347046
                          multitasks_collection_score: 0.0019173622131347656
                          multitasks_info_collection_score: 0.004904717206954956
                          multitasks_info_shoot_score: 0.10360100865364075
                          multitasks_shoot_score: 0.011635154485702515
                          multitasks_strict_publish_score: 0.81313157081604
                          rank_relevance_score: 0.0000011622905731201172
                          recall_relevance_score: 0.5183622241020203
                          video_quality_publish_score: 0.0007006525993347168
                          video_quality_strict_search_vv_score: 0.11052610725164413
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 79
                      popularity_updated_at: 1784117553
                      popularity_v2: 475742
                      query_id: 106881115
                      query_id_str: '106881115'
                      query_labels:
                        - content_gap
                      query_text: you're so pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Stories/Posting Captions
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 76
                        - 73
                        - 77
                        - 73
                        - 76
                        - 74
                        - 79
                      trending_seq_v2:
                        - 349304
                        - 248674
                        - 396318
                        - 255076
                        - 376712
                        - 286385
                        - 475742
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 877
                    - business_types:
                        - basic
                        - content_gap
                        - llm_query_multi_lang
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 61.28282
                          - 0
                          - 0
                        recall_source:
                          - FromEsQueryAndLang
                          - FromAnalyticsSimilarQuery
                          - FromMultiLangQueryText
                        rough_score: 0
                        score: 0.20497570931911469
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.1863415539264679
                          multitasks_click_score: 0.9746178984642029
                          multitasks_collection_score: 0.002422034740447998
                          multitasks_info_collection_score: 0.009629815816879272
                          multitasks_info_shoot_score: 0.1107279360294342
                          multitasks_shoot_score: 0.010321766138076782
                          multitasks_strict_publish_score: 0.8738880157470703
                          rank_relevance_score: 0.20090964436531067
                          recall_relevance_score: 0.5272818207740784
                          video_quality_publish_score: 0.001753091812133789
                          video_quality_strict_search_vv_score: 0.1292988806962967
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 75
                      popularity_updated_at: 1784114914
                      popularity_v2: 316005
                      query_id: '7483711140795514885'
                      query_id_str: '7483711140795514885'
                      query_labels:
                        - content_gap
                      query_text: hi pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '4712128962695736020'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Others TikTok and Video Contents
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 65
                        - 71
                        - 73
                        - 71
                        - 73
                        - 74
                        - 75
                      trending_seq_v2:
                        - 57482
                        - 157752
                        - 250924
                        - 172948
                        - 257122
                        - 296810
                        - 316005
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 815
                    - business_types:
                        - basic
                        - poi
                        - local service old
                        - experience
                        - llm_query_multi_lang
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 46.70494
                        recall_source:
                          - FromEsQueryAndLang
                        rough_score: 0
                        score: 0.22187648713588715
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.2017059028148651
                          multitasks_click_score: 0.9889488816261292
                          multitasks_collection_score: 0.0031197071075439453
                          multitasks_info_collection_score: 0.007113009691238403
                          multitasks_info_shoot_score: 0.11637881398200989
                          multitasks_shoot_score: 0.01914149522781372
                          multitasks_strict_publish_score: 0.953736424446106
                          rank_relevance_score: 0.5273492336273193
                          recall_relevance_score: 0.5186769962310791
                          video_quality_publish_score: 0.0017417669296264648
                          video_quality_strict_search_vv_score: 0.117794930934906
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 72
                      popularity_updated_at: 1784114807
                      popularity_v2: 183618
                      query_id: '7392262702573289478'
                      query_id_str: '7392262702573289478'
                      query_labels: []
                      query_text: Pretty Up
                      rewrite_version: ''
                      show_ai_canvas_entry: true
                      sug_id_str: '5377759762019963229'
                      textnet:
                        layer1: Local Life
                        layer2: Shopping
                        layer3: E-commerce Site Searches
                        layer4: ''
                      trending_seq:
                        - 25
                        - 26
                        - 30
                        - 73
                        - 70
                        - 62
                        - 72
                      trending_seq_v2:
                        - 1400
                        - 1500
                        - 1800
                        - 234123
                        - 101210
                        - 41704
                        - 183618
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 1122
                    - business_types:
                        - basic
                        - experience
                        - midlong_tail
                        - llm_query_multi_lang
                        - demand_points
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 0
                          - 54.139107
                        recall_source:
                          - FromAnalyticsSimilarQuery
                          - FromEsQueryAndLang
                        rough_score: 0
                        score: 0.2084493786096573
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.18949943780899048
                          multitasks_click_score: 0.9675225019454956
                          multitasks_collection_score: 0.0029050707817077637
                          multitasks_info_collection_score: 0.01290854811668396
                          multitasks_info_shoot_score: 0.15159040689468384
                          multitasks_shoot_score: 0.013083308935165405
                          multitasks_strict_publish_score: 0.8291692137718201
                          rank_relevance_score: 0.3919084072113037
                          recall_relevance_score: 0.49956148862838745
                          video_quality_publish_score: 0.001291513442993164
                          video_quality_strict_search_vv_score: 0.14527462422847748
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 73
                      popularity_updated_at: 1784117025
                      popularity_v2: 246724
                      query_id: '7446863050235183110'
                      query_id_str: '7446863050235183110'
                      query_labels: []
                      query_text: getting pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: true
                      sug_id_str: '7476215040671417663'
                      textnet:
                        layer1: Fashion
                        layer2: Fashion Tutorials
                        layer3: Beauty and Skin Care Tutorials
                        layer4: Beauty Tutorials
                      trending_seq:
                        - 74
                        - 73
                        - 73
                        - 73
                        - 74
                        - 70
                        - 73
                      trending_seq_v2:
                        - 279727
                        - 223222
                        - 258725
                        - 226622
                        - 299329
                        - 129312
                        - 246724
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 736
                    - cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 0
                        recall_source:
                          - FromAnalyticsSimilarQuery
                        rough_score: 0
                        score: 0.15068183839321136
                        target_score:
                          all_boost: 1
                          before_boost: 0.15068183839321136
                          multitasks_click_score: 0.9995705485343933
                          multitasks_collection_score: 0.003449806710705161
                          multitasks_info_collection_score: 0.006281145848333836
                          multitasks_info_shoot_score: 0.052734922617673874
                          multitasks_shoot_score: 0.025917816907167435
                          multitasks_strict_publish_score: 0.9938515424728394
                          rank_relevance_score: 0.027926690876483917
                          recall_relevance_score: 0.520869791507721
                          video_quality_publish_score: 0.0004294812388252467
                          video_quality_strict_search_vv_score: 0.10005513578653336
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 74
                      popularity_updated_at: 1784115417
                      popularity_v2: 288613
                      query_id: '7554243154807881740'
                      query_id_str: '7554243154807881740'
                      query_labels: []
                      query_text: my hg pretty
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Others TikTok and Video Contents
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 70
                        - 72
                        - 74
                        - 68
                        - 74
                        - 70
                        - 74
                      trending_seq_v2:
                        - 120763
                        - 198940
                        - 273517
                        - 83874
                        - 270618
                        - 116764
                        - 288613
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 156
                    - business_types:
                        - basic
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 12.376089
                          - 48.323074
                        recall_source:
                          - FromEsExactMatchInspiration
                          - FromEsQueryAndLang
                        rough_score: 0
                        score: 0.2037092000246048
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.18519017100334167
                          multitasks_click_score: 0.9913990497589111
                          multitasks_collection_score: 0.002067357301712036
                          multitasks_info_collection_score: 0.009120345115661621
                          multitasks_info_shoot_score: 0.08757525682449341
                          multitasks_shoot_score: 0.012170791625976562
                          multitasks_strict_publish_score: 0.9695303440093994
                          rank_relevance_score: 0.07181796431541443
                          recall_relevance_score: 0.5234761238098145
                          video_quality_publish_score: 0.0015008151531219482
                          video_quality_strict_search_vv_score: 0.1256563514471054
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 71
                      popularity_updated_at: 1784115308
                      popularity_v2: 153023
                      query_id: '7631102434894430220'
                      query_id_str: '7631102434894430220'
                      query_labels:
                        - content_gap
                      query_text: '#Pretty'
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Others TikTok and Video Contents
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 0
                        - 0
                        - 2
                        - 2
                        - 0
                        - 6
                        - 71
                      trending_seq_v2:
                        - 0
                        - 0
                        - 99
                        - 99
                        - 0
                        - 299
                        - 153023
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 749
                    - cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 0
                        recall_source:
                          - FromAnalyticsSimilarQuery
                        rough_score: 0
                        score: 0.1791945993900299
                        target_score:
                          all_boost: 1
                          before_boost: 0.1791945993900299
                          multitasks_click_score: 0.9977903366088867
                          multitasks_collection_score: 0.0020926594734191895
                          multitasks_info_collection_score: 0.00844070315361023
                          multitasks_info_shoot_score: 0.07871145009994507
                          multitasks_shoot_score: 0.01257413625717163
                          multitasks_strict_publish_score: 0.9901610612869263
                          rank_relevance_score: 0.27376705408096313
                          recall_relevance_score: 0.5106004476547241
                          video_quality_publish_score: 0.0011584162712097168
                          video_quality_strict_search_vv_score: 0.13520658016204834
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 71
                      popularity_updated_at: 1784115801
                      popularity_v2: 153553
                      query_id: '7547161919442911288'
                      query_id_str: '7547161919442911288'
                      query_labels: []
                      query_text: Pretty gf
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '0'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Attractive Men and Women
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 70
                        - 74
                        - 71
                        - 70
                        - 72
                        - 73
                        - 71
                      trending_seq_v2:
                        - 120763
                        - 297910
                        - 170648
                        - 133260
                        - 211136
                        - 225532
                        - 153553
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 493
                    - business_types:
                        - basic
                        - hashtag
                        - llm_query_multi_lang
                      cover_image: ''
                      debug_info:
                        creator_category:
                          - reason: byFollowerCnt
                            type: new_creator
                          - type: csi_new_user
                        creator_lang:
                          infer_languages:
                            - en
                          use_mul_lang: false
                        experiment:
                          csi_csi_dynamic_tab: csi_dynamic_tab_v4
                          csi_csi_exp_base_trending: csi_exp_base_trending
                          csi_csi_exp_group_ai_canvas: csi_exp_group_ai_canvas
                          csi_csi_exp_group_boost: csi_exp_group_boost_v1
                          csi_csi_exp_group_multitasks_optimization_1: csi_v41_DCN_compress_ffm_r1381443_0-v2
                          csi_csi_exp_group_name_es_fusion_score: es_fusion_score_rt_v2
                          csi_csi_photomode_multi_model: photomode_add_feature_ttp_0602_v2
                          csi_csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0: >-
                            csi_v1_video_quality_multitask_dcn_compress128_v99864_c918020_r1415463_0_v1
                          csi_csi_v39_r1416848_0: csi_v39_r1416848_0_v4
                          csi_useful_exp_video: useful_exp_video_v0
                        language: en
                        recall_scores:
                          - 12.845802
                        recall_source:
                          - FromEsExactMatchInspiration
                        rough_score: 0
                        score: 0.18406328558921814
                        target_score:
                          all_boost: 1.100000023841858
                          before_boost: 0.16733026504516602
                          multitasks_click_score: 0.95123291015625
                          multitasks_collection_score: 0.0023643970489501953
                          multitasks_info_collection_score: 0.0049276649951934814
                          multitasks_info_shoot_score: 0.09737613797187805
                          multitasks_shoot_score: 0.01746109127998352
                          multitasks_strict_publish_score: 0.8422398567199707
                          rank_relevance_score: 0.07450234889984131
                          recall_relevance_score: 0.5085607171058655
                          video_quality_publish_score: 0.0010110139846801758
                          video_quality_strict_search_vv_score: 0.11983747035264969
                      dislike_option_enabled: false
                      entity_id: 0
                      favorited_updated_at: 0
                      inspiration_types:
                        - search
                      is_favorited: false
                      order_popularity_seq: []
                      popularity: 70
                      popularity_updated_at: 1784111510
                      popularity_v2: 131734
                      query_id: '7449963772657025029'
                      query_id_str: '7449963772657025029'
                      query_labels: []
                      query_text: 'pretty isn''t pretty '
                      rewrite_version: ''
                      show_ai_canvas_entry: false
                      sug_id_str: '5841239232467872478'
                      textnet:
                        layer1: TikTok's Featured Content
                        layer2: Trends/Challenges
                        layer3: ''
                        layer4: ''
                      trending_seq:
                        - 73
                        - 71
                        - 74
                        - 66
                        - 74
                        - 73
                        - 70
                      trending_seq_v2:
                        - 241679
                        - 153223
                        - 288055
                        - 68365
                        - 283858
                        - 241779
                        - 131734
                      use_csi_api_for_related_videos: false
                      user_avatars: []
                      video_num: 1036
                  session_refresh_index: 0
                  status_code: 0
                  status_msg: ''
                requestId: 971c42c6-11c1-4e70-b63f-31c8732afafe
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: Missing required parameter
        '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/inspiration/keyword?keyword=pretty&region=US&offset=0&count=10' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

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


            const response = await
            fetch(`https://api.keyapi.ai/v1/tiktok/inspiration/keyword?${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).

````