Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Location Search

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/app-v3/location-search

Searches for locations on TikTok using a text query. Returns matching place results with pagination support via offset and count parameters.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
Keyword
Number
Offset
Đầu raVí dụ
Phản hồioutputs · 2.0 KB · 79 dòng
[
  {
    "data": {
      "cursor": 20,
      "extra": {
        "api_debug_info": [
          "152"
        ],
        "fatal_item_ids": [],
        "logid": "20261006123934EA6A28B6271A556D5899",
        "now": 1791290375114,
        "search_request_id": "",
        "server_stream_time": 202
      },
      "feedback_type": "poi",
      "global_doodle_config": {
        "display_filter_bar": 1,
        "feedback_survey": [
          {
            "feedback_type": "poi",
            "long_stress_info": null,
            "multiple_choices": [
              {
                "key": "Unrelated location",
                "value": "Unrelated location"
              },
              {
                "key": "Location not found",
                "value": "Location not found"
              },
              {
                "key": "Repetitive location",
                "value": "Repetitive location"
              },
              "… 4 more items in the full response"
            ],
            "send_us_multiple_choices": null
          }
        ],
        "hide_results": false,
        "hit_dolphin": false,
        "hit_shark": false,
        "keyword": "OpenAI",
        "new_source": "switch_tab",
        "search_channel": "tiktok_places",
        "tns_search_result": "Pass"
      },
      "has_more": 0,
      "log_pb": {
        "impr_id": "20261006123934EA6A28B6271A556D5899"
      },
      "poi_info": {
        "dynamic_patch": {
          "aweme_list": null,
          "aweme_multi_tab_list": null,
          "related_word_list": null,
          "tab_map": null
        },
        "local_service_info": {},
        "nearby_auth": {
          "aweme_list": null,
          "aweme_multi_tab_list": null,
          "nearby_auth": {},
          "related_word_list": null,
          "tab_map": null
        },
        "poi_info": []
      },
      "search_nil_info": {
        "is_load_more": "first_flush",
        "search_nil_item": "federation_empty",
        "search_nil_type": "",
        "text_type": 0
      },
      "status_code": 0,
      "version": "v2"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

TikTok Location Search API

Searches TikTok places by a text query and returns matching points of interest. Each result has a name, address, coordinates, place type and video count. The only required input is keyword.

Use cases

  • Find the TikTok place ID for a venue, landmark or town by searching its name.
  • Compare how many videos are tagged at different places with similar names.
  • Map search results by lat and lng to see where matching places are located.
  • Filter results by poi_type or country_code to narrow a broad name search.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/location-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword
countintegerNoNumber
offsetintegerNoOffset

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "cursor": 20,
  "extra": {
    "api_debug_info": [
      "1269"
    ],
    "fatal_item_ids": [],
    "logid": "20261103074355B12B42E16EC2A4CB89F7",
    "now": 1793691837158,
    "search_request_id": "",
    "server_stream_time": 1333
  },
  "feedback_type": "poi",
  "global_doodle_config": {
    "display_filter_bar": 1,
    "feedback_survey": [
      {
        "feedback_type": "poi",
        "long_stress_info": null,
        "multiple_choices": [
          {
            "key": "Unrelated location",
            "value": "Unrelated location"
          }
        ],
        "send_us_multiple_choices": null
      }
    ],
    "hide_results": false,
    "hit_dolphin": false,
    "hit_shark": false,
    "keyword": "OpenAI",
    "new_source": "switch_tab",
    "search_channel": "tiktok_places",
    "tns_search_result": "Pass"
  },
  "has_more": 1,
  "log_pb": {
    "impr_id": "20261103074355B12B42E16EC2A4CB89F7"
  },
  "poi_info": {
    "dynamic_patch": {
      "aweme_list": null,
      "aweme_multi_tab_list": null,
      "related_word_list": null,
      "tab_map": null
    },
    "local_service_info": {
      "anchor_poi_index": "",
      "ttd_poi_id": "0",
      "vertical_filter_pass_through": ""
    },
    "nearby_auth": {
      "aweme_list": null,
      "aweme_multi_tab_list": null,
      "nearby_auth": {},
      "related_word_list": null,
      "tab_map": null
    },
    "poi_info": [
      {
        "collect_info": "{\"tt_type_code\":\"08a1b4\",\"is_tt_key_category\":1,\"tt_poi_type_name_level0\":\"Trave…",
        "country_code": "FR",
        "extra": "",
        "is_collected": 0,
        "is_fallback_header_icon": 0,
        "lat": "43.711900",
        "lng": "4.982780",
        "local_service_key_category": "Travel",
        "local_service_key_category_enum": 5,
        "local_service_todo_model": "Other",
        "opening_time": "",
        "parent_poi": "Bouches-du-Rhone"
      }
    ]
  },
  "status_code": 0,
  "version": "v2"
}

Response fields

FieldMeaning
poi_info.poi_info[].poi_id_strThe place ID as a string. Use this string form to avoid rounding of the long number in poi_id.
poi_info.poi_info[].poi_nameThe name of the place.
poi_info.poi_info[].poi_locationThe full address of the place as a single line of text.
poi_info.poi_info[].poi_typeThe place type, such as Mountain, Golf Course or District.
poi_info.poi_info[].lat / poi_info.poi_info[].lngLatitude and longitude of the place. Both are strings.
poi_info.poi_info[].country_codeTwo-letter country code of the place, such as FR.
poi_info.poi_info[].parent_poiThe larger area that contains the place, such as a department or region.
poi_info.poi_info[].video_countNumber of TikTok videos linked to the place.
poi_info.poi_info[].total_count_of_reviewsNumber of reviews recorded for the place.
has_more / cursorhas_more is 1 when more results are available. cursor holds the next position value, 20 in this response.

Notes

  • Page through results with count (default 20) and offset (default 0). The response had cursor set to 20 and has_more set to 1.
  • Use poi_id_str rather than poi_id when you store or pass IDs on.
  • Some places include operating_hours, with a day number and an opening_show_time text. Many fields, such as poi_rating and opening_time, can be empty strings.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.01 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Location Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/app-v3/location-search với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Location Search có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Location Search chấp nhận những tham số nào?

Bắt buộc: keyword (string). Tùy chọn: count (integer) và offset (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Location Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Location Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.