curl --request GET \
--url https://api.keyapi.ai/v1/facebook/search_global \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/search_global"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/facebook/search_global', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/facebook/search_global")
.header("Authorization", "Bearer <token>")
.asString();{}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}全局搜索
curl --request GET \
--url https://api.keyapi.ai/v1/facebook/search_global \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/search_global"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/facebook/search_global', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/facebook/search_global")
.header("Authorization", "Bearer <token>")
.asString();{}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}复制给 AI
🤖 为什么还要自己写代码?
让 AI 来处理重复工作。点击按钮即可复制一段整理好的提示词,用于 ChatGPT、Claude 或你常用的 AI 助手。
授权
查询参数
搜索关键词。
"facebook"
分页游标,用于获取下一页数据。
"{\"page_number\": 0, \"flow_cursors_serialized\": {\"INTERNAL_DEBUG_MODULE\": \"{}\", \"SEARCH_CONTROLS_INTERCEPT\": \"{}\", \"INTEGRITY\": \"{}\", \"META_AI\": \"{}\", \"SHORTCUTS\": \"{}\", \"HASHTAG_HEADER\": \"{}\", \"SHORTCUT_DEEP_DIVE\": \"{}\", \"HIGH_CONFIDENCE_TA\": \"{}\", \"HIGH_CONFIDENCE_DYNAMIC\": \"{}\", \"HIGH_CONFIDENCE_AUDIO\": \"{}\", \"SPELLER\": \"{}\", \"SOCIAL_RAG\": \"{}\", \"TA_PAGE_CACHED_CONTENT\": \"{}\", \"GROUPS_STS_CONTENT\": \"{}\", \"HIGH_CONFIDENCE_CONTENT\": \"{}\", \"ENTITIES\": \"{}\", \"ENTITY_POSTS\": \"{}\", \"PEOPLE_L2_POSTS\": \"{}\", \"SEARCH_ADS_TOP_POSITION\": \"{}\", \"CONTENT\": \"{\\\"has_more_results\\\": true, \\\"browse_cursor_serialized\\\": \\\"AbrFIXBQw4ML5S364JoIVl_3McxnJfsKRZVKLC71VkAudCevOm-0ashIkbE4xXkQZwgabcMUjx5HtF5D_aipjqtj4VKRbpJkEiuhSDirA13Xp6NuewXUcKfuuOAXPBoGm27QO35j8b2vBzSXZQvk_XWe77uKRQ6CmyowDdPk_s7cCSZCv8oKC4yPvL9x979uOd9R6b-Qsh0_iWGpRZB_22hIdaTnWaLA-8FWBYbjONorWGeODWDFmXr2tXimKPHJOFK5mC1hMfkM_Mijkoo_7UyQ6Wf2FLRVPAgvo6VOdXF0EyOBBBt2Dz0Byj533XJzgWk8fRJ6aEb6gPXF9PbbcZurIyIhOPvhLLR9hPVAx-JXmgIlCZxb1TuZ-53c1jJpJ0gQajb0pBHkOKxqPD5ohAU1HBX_wlNLBTkPEdDxeWbnCD_yz8c6ioCrmDyTxjOftEPy1kOJb4PJfsKUVjtsXKyqpus4Iac-4JDChHQqje_6XmzhqeeRQQX5ywYtdtTglaY3kLc8lL5atUY9sybB7e3_WEePbIP2UoWXtWZMF9dW73R3SYe40PYxMKGbKtKrPXtP15Y2pjzbGunvOC0jsrYqkECeOATHCnS7RWGkz8Oulw\\\", \\\"processed_unicorn_ids\\\": [], \\\"is_end_of_serp\\\": false}\", \"PARALLEL_FETCH_NOOP\": \"{}\"}, \"result_ids_shown\": [], \"unit_id_logging_fields\": {\"num_total_modules\": 5, \"num_total_results\": 5, \"num_total_vertical_results\": 5, \"processed_roles\": {\"PUBLIC_POSTS\": 5}}, \"entity_ids_shown_by_type\": {\"browse_type_group\": [], \"browse_type_page\": [], \"browse_type_search_query\": []}, \"processed_unicorn_ids\": [], \"completed_flows\": [\"INTERNAL_DEBUG_MODULE\", \"SEARCH_CONTROLS_INTERCEPT\", \"INTEGRITY\", \"META_AI\", \"SHORTCUTS\", \"SHORTCUT_DEEP_DIVE\", \"HASHTAG_HEADER\", \"HIGH_CONFIDENCE_TA\", \"HIGH_CONFIDENCE_DYNAMIC\", \"HIGH_CONFIDENCE_AUDIO\", \"SPELLER\", \"SOCIAL_RAG\", \"TA_PAGE_CACHED_CONTENT\", \"GROUPS_STS_CONTENT\", \"HIGH_CONFIDENCE_CONTENT\", \"ENTITIES\", \"ENTITY_POSTS\", \"PEOPLE_L2_POSTS\", \"SEARCH_ADS_TOP_POSITION\"]}"
是否仅返回近期帖子。
地点 UID。
开始日期,格式为 yyyy-mm-dd。
结束日期,格式为 yyyy-mm-dd。
响应
The response is of type object.

