Get comment by comment id
curl --request GET \
--url https://api.keyapi.ai/v1/facebook/comment_by_id \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/comment_by_id"
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/comment_by_id', 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/comment_by_id")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"result": {
"type": "comment",
"comment_id": "Y29tbWVudDoxMDExNzA1MjM2ODUyODU3MV8yODE1ODQ4ODM1Mjc4MDA0",
"legacy_comment_id": "2815848835278004",
"depth": 0,
"parent_comment_id": null,
"created_time": 1762672282,
"message": "Those eyes have seen things probably terrible things and never looked away once. These or sharks dressed as guppie’s.",
"author": {
"id": "pfbid02DxzCkEh3RRirizTUi3SGnKA7zUh1V46SiZ7xVDrA2DCWYK3Z6R8Dz4AHe9ZVvEvQl",
"name": "Andy Green",
"gender": "MALE",
"url": "https://www.facebook.com/andy.green.165033",
"profile_image": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-1/703065035_10174848245965623_5965657632068434044_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx1149x1150&ctp=s64x64&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=-OdzNWKSCIwQ7kNvwFxNusJ&_nc_oc=Adp-zsKlQyWvAUrhV74caw5nHSxe4G4mb0wlPxiH_b82cW9HhGVGMhkW0dvMi4Pf_OlyLIjwukYeLdSbVPMhHwfZ&_nc_zt=24&_nc_ht=scontent-phl2-1.xx&_nc_gid=e6a9C5vcRFNN-v6q2x8oQA&_nc_ss=7d289&oh=00_AQK4HAy-YoCpu6SmbDEV3KkitvRbv1KroVn6EEk2i4Cl0w&oe=6AB81A14"
},
"replies_count": 92,
"reactions_count": "1.5K",
"expansion_token": "MjoxNzkwMDY5NTc5OgF_MrRr3d98oGYdWhO72LD-1y9mQpLHBBSKE7oLiS_tGrqFeQFQTGhV50QWJjZKm-a0zbeC34dJHRYoVFABf2JWyVpb93Rr0-a-0RX9GXC4SbfP4Tzkk28SJVo24PGApISuoSvwqkscvlSaUyac9ePlD8tKllKTUDvKBh1J-OMlkJo28glJF_Ss42Em1Pqi8rQkwKL1jPnvzlSzA6harY_yOPqNILKTthPfOC914jSsLlgNQv1c6gxyWWITv0qJQpgLGNYdMsgPQfwvn9pm1Q-UpHXw0enGYq3yyzkP9a6u06yHW1pkAzOaNTqkt7v_Zazvxm_CsC3UI7VIxY7MiODINEPlO4nw4CLooFAvB1m-OfxG5J9nNrH909ci-FGzH_riEYCxiHzZzz1lqyohDZMuj9yXL72V7rJtW2suwt1GqWNpH_FjzhN3eWS_R6gYX-eWuZTELUBu4PVvMaWZgKUkOSh6mQTaPS7-O6GD_tOr8Teii9mDw3W0qGUYBKuN-x9xY26i3vfFvu6HRo2MFXrzudYU4SfjgRVlURM8Pq2ETT3OqyiFeQ1D5oLB-fhlkHJLHcC5lptABJuW1j0mCgzqQdR3Wpj7duUF01An6eRPZ3QEi8eauT-eVBA_KAtQcEVKf1Mxswy-m6b2LeG9sKCNBQqnqNiRFjvek2dQEQLv8A",
"is_sticker": false,
"sticker": null,
"is_gif": false,
"gif": null,
"image": null,
"video": null
}
},
"requestId": "58de1bd9-0c06-4616-a23d-e54b3159bec4"
}{
"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"
}Posts and comments
Get comment by comment id
GET
/
v1
/
facebook
/
comment_by_id
Get comment by comment id
curl --request GET \
--url https://api.keyapi.ai/v1/facebook/comment_by_id \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/facebook/comment_by_id"
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/comment_by_id', 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/comment_by_id")
.header("Authorization", "Bearer <token>")
.asString();{
"code": 0,
"message": "success",
"data": {
"result": {
"type": "comment",
"comment_id": "Y29tbWVudDoxMDExNzA1MjM2ODUyODU3MV8yODE1ODQ4ODM1Mjc4MDA0",
"legacy_comment_id": "2815848835278004",
"depth": 0,
"parent_comment_id": null,
"created_time": 1762672282,
"message": "Those eyes have seen things probably terrible things and never looked away once. These or sharks dressed as guppie’s.",
"author": {
"id": "pfbid02DxzCkEh3RRirizTUi3SGnKA7zUh1V46SiZ7xVDrA2DCWYK3Z6R8Dz4AHe9ZVvEvQl",
"name": "Andy Green",
"gender": "MALE",
"url": "https://www.facebook.com/andy.green.165033",
"profile_image": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-1/703065035_10174848245965623_5965657632068434044_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx1149x1150&ctp=s64x64&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=-OdzNWKSCIwQ7kNvwFxNusJ&_nc_oc=Adp-zsKlQyWvAUrhV74caw5nHSxe4G4mb0wlPxiH_b82cW9HhGVGMhkW0dvMi4Pf_OlyLIjwukYeLdSbVPMhHwfZ&_nc_zt=24&_nc_ht=scontent-phl2-1.xx&_nc_gid=e6a9C5vcRFNN-v6q2x8oQA&_nc_ss=7d289&oh=00_AQK4HAy-YoCpu6SmbDEV3KkitvRbv1KroVn6EEk2i4Cl0w&oe=6AB81A14"
},
"replies_count": 92,
"reactions_count": "1.5K",
"expansion_token": "MjoxNzkwMDY5NTc5OgF_MrRr3d98oGYdWhO72LD-1y9mQpLHBBSKE7oLiS_tGrqFeQFQTGhV50QWJjZKm-a0zbeC34dJHRYoVFABf2JWyVpb93Rr0-a-0RX9GXC4SbfP4Tzkk28SJVo24PGApISuoSvwqkscvlSaUyac9ePlD8tKllKTUDvKBh1J-OMlkJo28glJF_Ss42Em1Pqi8rQkwKL1jPnvzlSzA6harY_yOPqNILKTthPfOC914jSsLlgNQv1c6gxyWWITv0qJQpgLGNYdMsgPQfwvn9pm1Q-UpHXw0enGYq3yyzkP9a6u06yHW1pkAzOaNTqkt7v_Zazvxm_CsC3UI7VIxY7MiODINEPlO4nw4CLooFAvB1m-OfxG5J9nNrH909ci-FGzH_riEYCxiHzZzz1lqyohDZMuj9yXL72V7rJtW2suwt1GqWNpH_FjzhN3eWS_R6gYX-eWuZTELUBu4PVvMaWZgKUkOSh6mQTaPS7-O6GD_tOr8Teii9mDw3W0qGUYBKuN-x9xY26i3vfFvu6HRo2MFXrzudYU4SfjgRVlURM8Pq2ETT3OqyiFeQ1D5oLB-fhlkHJLHcC5lptABJuW1j0mCgzqQdR3Wpj7duUF01An6eRPZ3QEi8eauT-eVBA_KAtQcEVKf1Mxswy-m6b2LeG9sKCNBQqnqNiRFjvek2dQEQLv8A",
"is_sticker": false,
"sticker": null,
"is_gif": false,
"gif": null,
"image": null,
"video": null
}
},
"requestId": "58de1bd9-0c06-4616-a23d-e54b3159bec4"
}{
"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.

