Data API / Reddit / Post
Post Comments
Returns one post and its discussion from a post URL: post with title, author, selftext, score, ups, upvote_ratio, num_comments, created_utc, permalink, archived and locked, then comments, each with author, body, score, ups, downs, created_utc, parent_id, permalink and a nested replies object holding items and more. Paging is a third shape again: the top level carries more.has_more and more.cursor rather than the after of get_reddit_search or the cursor of get_reddit_subreddit_search. To find posts worth opening, start from get_reddit_search or get_reddit_subreddit.
Параметры
запрос
urlstringОбязательныйReddit post URL
cursorstringНеобязательныйCursor to get more comments, or replies.
trimbooleanНеобязательныйSet to true for a trimmed down version of the response
Пример запроса
curl -G "https://openapi.felo.ai/v1/beta/reddit/post/comments" \
--data-urlencode "url=<string>" \
-H "Authorization: Bearer $FELO_API_KEY"Ответ
Пример ответа
{
"comments": [
{
"id": "mymupxb",
"author": "Background-Emu-2890",
"author_fullname": "t2_efdlposp6",
"body": "Black cat i have one and i love her so much !",
"name": "t1_mymupxb",
"created_utc": 1750342221,
"created_at_iso": "2025-06-19T14:10:21.000Z",
"parent_id": "t3_1lfbo7u",
"url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymupxb/",
"replies": {
"items": [
{
"url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymxwde/",
"created_utc": 1750343166,
"created_at_iso": "2025-06-19T14:26:06.000Z",
"subreddit_id": "t5_2qh1i",
"approved_at_utc": null,
"author_is_blocked": false,
"comment_type": null,
"awarders": [],
"mod_reason_by": null,
"banned_by": null,
"author_flair_type": "text",
"total_awards_received": 0,
"subreddit": "AskReddit",
"author_flair_template_id": null,
"likes": null,
"replies": {
"items": [],
"more": {
"has_more": false,
"next_cursor": null
}
},
"user_reports": [],
"saved": false,
"id": "mymxwde",
"banned_at_utc": null,
"mod_reason_title": null,
"gilded": 0,
"archived": false,
"collapsed_reason_code": null,
"no_follow": false,
"author": "doublestitch",
"can_mod_post": false,
"send_replies": true,
"parent_id": "t1_mymupxb",
"score": 19,
"author_fullname": "t2_10py0g",
"removal_reason": null,
"approved_by": null,
"mod_note": null,
"all_awardings": [],Показана часть. Полный пример — в справочнике API.
Поля ответа
successbooleanНеобязательныйcredits_remainingintegerНеобязательныйcommentsobject[]НеобязательныйcursorНеобязательный