Search events
curl --request GET \
--url https://api.keyapi.ai/v1/facebook/search_events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/search_events"
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_events', 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_events")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"results": [
{
"type": "search_event",
"event_id": "490113270645875",
"title": "The FACEBOOK Team || Like, Comment, Share & Follower Support",
"url": "https://www.facebook.com/events/490113270645875/"
},
{
"type": "search_event",
"event_id": "1163376062227840",
"title": "2026",
"url": "https://www.facebook.com/events/1163376062227840/"
},
{
"type": "search_event",
"event_id": "1886634488612811",
"title": "Facebook ",
"url": "https://www.facebook.com/events/1886634488612811/"
},
{
"type": "search_event",
"event_id": "4557262567890380",
"title": "Facebook viral photo challenge",
"url": "https://www.facebook.com/events/4557262567890380/"
},
{
"type": "search_event",
"event_id": "1058335573671103",
"title": "happy ଜନ୍ମାଷ୍ଟମୀ #facebook #reels",
"url": "https://www.facebook.com/events/1058335573671103/"
},
{
"type": "search_event",
"event_id": "980320284704948",
"title": "jyoti Vishwakarma ",
"url": "https://www.facebook.com/events/980320284704948/"
},
{
"type": "search_event",
"event_id": "1473878351119059",
"title": "Vikash ",
"url": "https://www.facebook.com/events/1473878351119059/"
},
{
"type": "search_event",
"event_id": "1387965729847863",
"title": "live",
"url": "https://www.facebook.com/events/1387965729847863/"
}
],
"cursor": "{\"page_number\": 0, \"flow_cursors_serialized\": {\"INTERNAL_DEBUG_MODULE\": \"{}\", \"SEARCH_CONTROLS_INTERCEPT\": \"{}\", \"INTEGRITY\": \"{\\\"has_more_results\\\":false,\\\"processed_unicorn_ids\\\":[],\\\"is_end_of_serp\\\":false}\", \"SPELLER\": \"{}\", \"EVENTS_TAB\": \"{\\\"has_more_results\\\": true, \\\"browse_cursor_serialized\\\": \\\"AbpAmcXQNrmbgdol9PtRSLWeNf-m4VA6TbANr1YufuH-D5Th1CbmddU_S3yuP7YX8k1D62oOop9kWuNArHxHwKeViZ1KPgqXIAA2K1k-AGayFHtcByB2q8YLkF-wsggvKU4hdcxjqXT1ExNHu0iAKzah1rawzrp8nXbB_qEZGKzZ40QT16TlDYIzwSM9_G1D7r1jiHu6EfyENOmuxKySgphyq9auk5iuR2RL6c4XfFrdK9xJRhBOcf6l2KKvM3A2A6GAy8LDbb-4hNSGzg-0P-KX5yE12azb-XiYG1hTmGsInHZQXvFHJsKh3ZOkhgVnXrVKqVKMyIZyE_PYZNY8O4jiRQiWAsbf30-DvgvW2_uzif_zlRHeZVtVy1V5Xy-4iIloZnDs2_hSBJLyFgAtLq_yt6KYagKic1r97ATtvD9oJc_Qvu8flFpQF0m2jjZ7sp0C-ieyXWj_BQrTi4_k-UXSqSYpk0VqQ_C9pXc1J85dy2jA-YNqVlAxm9ccgfNSWfvvgtp1rX37jT2wbUAIC638nQbh4ZDRxcqo-8fBz4wyFPox7NTxVx9n-drqWEnaAKw\\\", \\\"processed_unicorn_ids\\\": [], \\\"is_end_of_serp\\\": false}\"}, \"result_ids_shown\": [], \"unit_id_logging_fields\": {\"num_total_modules\": 1, \"num_total_results\": 8, \"num_total_vertical_results\": 8}, \"entity_ids_shown_by_type\": {}, \"processed_unicorn_ids\": [], \"completed_flows\": [\"INTERNAL_DEBUG_MODULE\", \"SEARCH_CONTROLS_INTERCEPT\", \"INTEGRITY\", \"SPELLER\"]}"
},
"requestId": "381414fa-25cc-4882-bef1-7a6cd15a1917"
}{
"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"
}Search
Search events
GET
/
v1
/
facebook
/
search_events
Search events
curl --request GET \
--url https://api.keyapi.ai/v1/facebook/search_events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/search_events"
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_events', 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_events")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"results": [
{
"type": "search_event",
"event_id": "490113270645875",
"title": "The FACEBOOK Team || Like, Comment, Share & Follower Support",
"url": "https://www.facebook.com/events/490113270645875/"
},
{
"type": "search_event",
"event_id": "1163376062227840",
"title": "2026",
"url": "https://www.facebook.com/events/1163376062227840/"
},
{
"type": "search_event",
"event_id": "1886634488612811",
"title": "Facebook ",
"url": "https://www.facebook.com/events/1886634488612811/"
},
{
"type": "search_event",
"event_id": "4557262567890380",
"title": "Facebook viral photo challenge",
"url": "https://www.facebook.com/events/4557262567890380/"
},
{
"type": "search_event",
"event_id": "1058335573671103",
"title": "happy ଜନ୍ମାଷ୍ଟମୀ #facebook #reels",
"url": "https://www.facebook.com/events/1058335573671103/"
},
{
"type": "search_event",
"event_id": "980320284704948",
"title": "jyoti Vishwakarma ",
"url": "https://www.facebook.com/events/980320284704948/"
},
{
"type": "search_event",
"event_id": "1473878351119059",
"title": "Vikash ",
"url": "https://www.facebook.com/events/1473878351119059/"
},
{
"type": "search_event",
"event_id": "1387965729847863",
"title": "live",
"url": "https://www.facebook.com/events/1387965729847863/"
}
],
"cursor": "{\"page_number\": 0, \"flow_cursors_serialized\": {\"INTERNAL_DEBUG_MODULE\": \"{}\", \"SEARCH_CONTROLS_INTERCEPT\": \"{}\", \"INTEGRITY\": \"{\\\"has_more_results\\\":false,\\\"processed_unicorn_ids\\\":[],\\\"is_end_of_serp\\\":false}\", \"SPELLER\": \"{}\", \"EVENTS_TAB\": \"{\\\"has_more_results\\\": true, \\\"browse_cursor_serialized\\\": \\\"AbpAmcXQNrmbgdol9PtRSLWeNf-m4VA6TbANr1YufuH-D5Th1CbmddU_S3yuP7YX8k1D62oOop9kWuNArHxHwKeViZ1KPgqXIAA2K1k-AGayFHtcByB2q8YLkF-wsggvKU4hdcxjqXT1ExNHu0iAKzah1rawzrp8nXbB_qEZGKzZ40QT16TlDYIzwSM9_G1D7r1jiHu6EfyENOmuxKySgphyq9auk5iuR2RL6c4XfFrdK9xJRhBOcf6l2KKvM3A2A6GAy8LDbb-4hNSGzg-0P-KX5yE12azb-XiYG1hTmGsInHZQXvFHJsKh3ZOkhgVnXrVKqVKMyIZyE_PYZNY8O4jiRQiWAsbf30-DvgvW2_uzif_zlRHeZVtVy1V5Xy-4iIloZnDs2_hSBJLyFgAtLq_yt6KYagKic1r97ATtvD9oJc_Qvu8flFpQF0m2jjZ7sp0C-ieyXWj_BQrTi4_k-UXSqSYpk0VqQ_C9pXc1J85dy2jA-YNqVlAxm9ccgfNSWfvvgtp1rX37jT2wbUAIC638nQbh4ZDRxcqo-8fBz4wyFPox7NTxVx9n-drqWEnaAKw\\\", \\\"processed_unicorn_ids\\\": [], \\\"is_end_of_serp\\\": false}\"}, \"result_ids_shown\": [], \"unit_id_logging_fields\": {\"num_total_modules\": 1, \"num_total_results\": 8, \"num_total_vertical_results\": 8}, \"entity_ids_shown_by_type\": {}, \"processed_unicorn_ids\": [], \"completed_flows\": [\"INTERNAL_DEBUG_MODULE\", \"SEARCH_CONTROLS_INTERCEPT\", \"INTEGRITY\", \"SPELLER\"]}"
},
"requestId": "381414fa-25cc-4882-bef1-7a6cd15a1917"
}{
"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"
}🪙4 creditsper request
Copy for AI
🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Authorizations
Query Parameters
Example:
"beer"
Date (yyyy-mm-dd).
Date (yyyy-mm-dd).
Response
The response is of type object.

