View User

View User

GET https://api.ocamba.com/v1/hood/users/{id}
Retrieves the details of a User if a valid identifier was provided

Rate limits:

  • Burst: 10/s
  • Steady: 150/m

Path parameters

parameters

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v1/hood/users/{id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v1/hood/users/{id}';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v1/hood/users/{id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 1,
  "items": [
    {
      "client_id": "16959755123015102980",
      "first_session_date": "2023-09-29",
      "tag_id": "1704",
      "app_type": "web",
      "app_name": "dev.ocamba.info",
      "country_code": "RS",
      "region": "7581800",
      "city": "792078",
      "asn": "203512",
      "os_id": "4",
      "os_version": "10",
      "browser_id": "12",
      "browser_version": "117",
      "user_lang": "en",
      "timezone": "Europe/Belgrade",
      "last_session_time": "2023-09-29 08:18:35",
      "total_sessions": "1",
      "total_pageviews": "1",
      "total_goals": "0",
      "traffic_source_type": "Direct",
      "last_clicked": "1970-01-01 00:00:00",
      "push_status_str": "unknown",
      "push_wokenup": "0",
      "push_clicks": "0",
      "remote_user_id": "b8373f16-0a4b-4176-9074-f395dec19857",
      "ad_served": "0",
      "ad_impressions": "0",
      "ad_spam_impressions": "0",
      "ad_clicks": "0",
      "ad_spam_clicks": "0",
      "ad_conversions": "0",
      "income": "0",
      "cost": "0",
      "conversion_score": "25"
    }
  ]
}

400 Bad Request

{
  "code": 400,
  "title": "Bad request.",
  "message": "The request body is not valid.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}

500 Internal Server Error

{
  "code": 500,
  "title": "Internal server error.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
Responses
Warning
This route is deprecated and will be removed in a future release. Please use the corresponding profiles-based route instead, which provides more consistent structure and aligns with the current data model.