GET
https://api.cryptohopper.com/v1/social/profile/{id}
Returns a social profile with its links, tournament rank, follower totals, pinned post and badges, and whether you follow or blocked it.
OAuth scope:
read About scopes
A deleted profile returns 404. A banned profile returns the same fields with emptied values, profile_name Banned and an extra blocked field. marketplace is only present when the profile owner is a marketplace seller.
Example request
curl "https://api.cryptohopper.com/v1/social/profile/PROFILE_ID" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/social/profile/PROFILE_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/profile/PROFILE_ID",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/social/profile/PROFILE_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 social profile. Aliases are not accepted. |
Response
{
"data": {
"profile_id": "4567",
"profile_name": "Trader Jane",
"profile_alias": "trader-jane",
"location": "Amsterdam",
"biography": "Swing trader, mostly BTC and ETH.",
"profile_image": "https://cdn.example.com/images/social/uploads/avatar_4567.jpg",
"feature_image": "https://cdn.example.com/images/social/uploads/feature_4567.jpg",
"verified": "0",
"show_badges": "0",
"profile_link": "/social/profile/trader-jane",
"social_links": {
"twitter": "trader_jane",
"telegram": "trader_jane"
},
"tournaments": {
"rank": "1520",
"score": "340",
"tournaments_played": "6",
"tournaments_won": "0"
},
"following": 0,
"member_since": "2021-03-14 09:12:44",
"total_following": "25",
"total_followers": "112",
"blocked_by_user": 0,
"pinned_post": null,
"badges": null
}
}