GET
https://api.cryptohopper.com/v1/social/post/{id}/comment
Returns up to 30 comments on a post, oldest first. Comments of profiles you blocked are left out.
OAuth scope:
read About scopes
Example request
curl "https://api.cryptohopper.com/v1/social/post/POST_ID/comment" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/social/post/POST_ID/comment', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/social/post/POST_ID/comment",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/social/post/POST_ID/comment');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Numeric ID of the post. |
Response
{
"data": [
{
"id": "778899",
"profile_id": "5678",
"location": "",
"message": "Same here, waiting for a breakout",
"media_url": "",
"created": 1790317800,
"updated": 1790317800,
"private_message": "0",
"profile_alias": "hodl-henk",
"profile_image": "https://cdn.example.com/images/social/uploads/avatar_4567.jpg",
"profile_name": "Hodl Henk",
"verified": "0",
"total_likes": "2",
"total_comments": "0",
"total_reposts": "0",
"liked": 0,
"following": 0,
"profile_link": "/social/profile/hodl-henk",
"reposted": 0,
"commented": 0
}
]
}