GET
https://api.cryptohopper.com/v1/social/post/{id}
Returns one post with its like, comment and repost totals and whether you liked, commented on or reposted it.
OAuth scope:
read About scopes
Posts of profiles you blocked and deleted posts return 404 Post not found.
Example request
curl "https://api.cryptohopper.com/v1/social/post/POST_ID" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/social/post/POST_ID', {
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",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/social/post/POST_ID');
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": "123456",
"profile_id": "4567",
"location": "NL",
"message": "Watching BTC closely today #bitcoin",
"media_url": "",
"created": 1790316000,
"updated": 1790316000,
"private_message": "0",
"profile_alias": "trader-jane",
"profile_image": "https://cdn.example.com/images/social/uploads/avatar_4567.jpg",
"profile_name": "Trader Jane",
"verified": "0",
"total_likes": "12",
"total_comments": "3",
"total_reposts": "1",
"liked": 0,
"commented": 0,
"reposted": 0,
"profile_link": "/social/profile/trader-jane",
"following": 0
}
}