Get Post Comments

Get the list of threads of group by its category

Get post's comments

GET https://api.metaforo.io/v2/groups/{group_id}/threads/{thread_id}/posts/{post_id}/comments

Get post's comments

Request Body

Name
Type
Description

thread_id*

Int

The ID of the thread

group_id*

Int

The ID of the group

post_id*

Int

The ID of the parent post of the comments

per_page

Int

How many items to return. Default 10

api_key*

String

The API KEY that assigned to you.

{
    "status": true,
    "code": "20000",
    "description": "",
    "server": "rest",
    "data": {
        "post": {
            "id": 1935991,
            "thread_id": 35651,
            "content":"[{\"attributes\":{\"bold\":true},\"insert\":\"\难\道\我\们\永\远\不\能\在\岁\月\的\海\洋\抛\锚\,\哪\怕\只\是\一\天\?\"},{\"insert\":\"\\n\\n\"},{\"attributes\":{\"underline\":true,\"italic\":true},\"insert\":\"\真\正\的\英\雄\不\是\改\变\全\世\界\,\而\是\改\变\自\己\生\活\的\每\一\天\。\"},{\"insert\":\"\\n\\n\"},{\"attributes\":{\"link\":\"https:\\/\\/book.douban.com\\/annotation\\/84353762\\/\"},\"insert\":\"\知\道\自\己\在\做\什\么\的\人\,\应\该\一\直\坚\持\到\死\"},{\"insert\":\"\。\\n\\n\\n\"}]",
            "ipfs": "",
            "parent_id": -1,
            "user_id": 7088,
            "nsfw": "0",
            "deleted": "0",
            "sign": "",
            "deleted_by": "",
            "group_id": 4656,
            "arweave": "1I9rlL9ZKimMB5gFX3IfCWA2Qj6hDM5eFv8ElN9kBhY",
            "is_ban": "",
            "tipped": "",
            "online": true,
            "badge": [],
            "user_title": [],
            "tip_count": "0",
            "liked": "0",
            "children": {
                "posts": [
                    {
                        "id": 1936049,
                        "thread_id": 35651,
                        "content":"[{\"insert\":\"2022\年1\月12\日\,\辛\丑\年\辛\丑\月\癸\亥\日\,\宜\饕\餮\。\\n\\n\有\肉\如\丘\,\有\酒\如\泉\,\有\肴\如\林\,\有\货\如\山\。\\n\"}]",
                        "ipfs": "",
                        "parent_id": 1935991,
                        "user_id": 7088,
                        "nsfw": "0",
                        "deleted": "0",
                        "sign": "",
                        "deleted_by": "",
                        "group_id": 4656,
                        "arweave": "frl38iUCoNA9fl2efQTq13MUdzHw5OMsUItPvVju-Qg",
                        "is_ban": "",
                        "tipped": "",
                        "online": true,
                        "badge": [],
                        "user_title": [],
                        "tip_count": "0",
                        "liked": "0",
                        "children": {
                            "posts": [],
                            "count": "0"
                        },
                        "total_likes": 1,
                        "total_report": "0",
                        "user": {
                            "id": 7088,
                            "name": "6vv",
                            "photo_url": "https://cdn.everforo.com/20220601/32d10f16fd278a91aabef3cb7a7392e7.png",
                            "is_nfc": "0"
                        },
                        "likes": [
                            {
                                "id": 12614,
                                "user_id": 8974,
                                "post_id": 1936049
                            }
                        ],
                        "flags": [],
                        "attached_files": [],
                        "attachments": [],
                        "can_edit": false,
                        "can_delete": false
                    },
                    {
                        "id": 1936157,
                        "thread_id": 35651,
                        "content": "[{\"insert\":\"\"}]",
                        "ipfs": "",
                        "parent_id": 1935991,
                        "user_id": 7088,
                        "nsfw": "0",
                        "deleted": "0",
                        "sign": "",
                        "deleted_by": "",
                        "group_id": 4656,
                        "arweave": "Yo_MeSEzQs3sM7zRGdFNK6nJA3UsC0DVvKPeE5gFL9o",
                        "is_ban": "",
                        "tipped": "",
                        "online": true,
                        "badge": [],
                        "user_title": [],
                        "tip_count": "0",
                        "liked": "0",
                        "children": {
                            "posts": [],
                            "count": "0"
                        },
                        "total_likes": "0",
                        "total_report": "0",
                        "user": {
                            "id": 7088,
                            "name": "6vv",
                            "photo_url": "https://cdn.everforo.com/20220601/32d10f16fd278a91aabef3cb7a7392e7.png",
                            "is_nfc": "0"
                        },
                        "likes": [],
                        "flags": [],
                        "attached_files": [
                            {
                                "id": 886,
                                "post_id": 1936157,
                                "url": "https://cdn.everforo.com/20220113/.mp3",
                                "name": ".mp3",
                                "size": "4043882",
                                "mime_type": "audio/mpeg",
                                "old_url": ""
                            }
                        ],
                        "attachments": [],
                        "can_edit": false,
                        "can_delete": false
                    },
                    {
                        "id": 1936158,
                        "thread_id": 35651,
                        "content":"[{\"insert\":\"\同\名\文\件\覆\盖\测\试 \\n\"}]",
                        "ipfs": "",
                        "parent_id": 1935991,
                        "user_id": 7088,
                        "nsfw": "0",
                        "deleted": "0",
                        "sign": "",
                        "deleted_by": "",
                        "group_id": 4656,
                        "arweave": "a0I5NORsuufx1YZr1ptp8pRRpQLJb8WRxNWCFCcLSI0",
                        "is_ban": "",
                        "tipped": "",
                        "online": true,
                        "badge": [],
                        "user_title": [],
                        "tip_count": "0",
                        "liked": "0",
                        "children": {
                            "posts": [],
                            "count": "0"
                        },
                        "total_likes": "0",
                        "total_report": "0",
                        "user": {
                            "id": 7088,
                            "name": "6vv",
                            "photo_url": "https://cdn.everforo.com/20220601/32d10f16fd278a91aabef3cb7a7392e7.png",
                            "is_nfc": "0"
                        },
                        "likes": [],
                        "flags": [],
                        "attached_files": [
                            {
                                "id": 887,
                                "post_id": 1936158,
                                "url": "https://cdn.everforo.com/20220113/.mp3",
                                "name": ".mp3",
                                "size": "300443",
                                "mime_type": "audio/mpeg",
                                "old_url": ""
                            }
                        ],
                        "attachments": [],
                        "can_edit": false,
                        "can_delete": false
                    }
                ],
                "count": 23
            },
            "total_likes": 2,
            "total_report": "0",
            "user": {
                "id": 7088,
                "name": "6vv",
                "photo_url": "https://cdn.everforo.com/20220601/32d10f16fd278a91aabef3cb7a7392e7.png",
                "is_nfc": "0"
            },
            "likes": [
                {
                    "id": 12635,
                    "user_id": 9011,
                    "post_id": 1935991
                }
            ],
            "flags": [],
            "attached_files": [
                {
                    "id": 881,
                    "post_id": 1935991,
                    "url": "https://cdn.everforo.com/20220112/WechatIMG168.jpeg",
                    "name": "WechatIMG168.jpeg",
                    "size": "300443",
                    "mime_type": "image/jpeg",
                    "old_url": "https://cdn.everforo.com/20220112/60b521d01d019f8b48dcaea3540a5d8f.jpeg"
                }
            ],
            "attachments": [],
            "can_edit": false,
            "can_delete": false
        }
    }
}

Good to know: This API method was created using the API Method block, it's how you can build out an API method documentation from scratch. Have a play with the block and you'll see you can do some nifty things like add and reorder parameters, document responses, and give your methods detailed descriptions.

Last updated