curl --request GET \
--url 'https://api.keyapi.ai/v1/reddit/fetch_community_highlights?subreddit_id=t5_2qh0u&need_format=false' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"subredditInfoById": {
"__typename": "Subreddit",
"highlightedPosts": null,
"id": "t5_2qh0u",
"name": "pics",
"modPermissions": null
}
},
"requestId": "2fef0dae-a239-45ea-a9b5-163028a7b004"
}Get featured highlight content for a specified community on Reddit APP, including popular posts and important announcements
Note: The ID format for the APP API differs from the Web API — a type prefix is required Subreddit ID prefix: t5_ (e.g., t5_2qh0u)
curl --request GET \
--url 'https://api.keyapi.ai/v1/reddit/fetch_community_highlights?subreddit_id=t5_2qh0u&need_format=false' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"subredditInfoById": {
"__typename": "Subreddit",
"highlightedPosts": null,
"id": "t5_2qh0u",
"name": "pics",
"modPermissions": null
}
},
"requestId": "2fef0dae-a239-45ea-a9b5-163028a7b004"
}🤖 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.
Subreddit ID, format begins with "t5_", obtainable from the fetch_subreddit_info API
Whether to clean/sanitize the data
The response is of type object.