The toloka.yandex.com
domain will be disabled starting July 1, 2023. Please use the toloka.dev
domain for API requests.
Gets user data by user_id
.
Try our new API reference: more parameter details, request/response examples, and code samples in various programming languages, including the Toloka-Kit usage samples.
GET https://toloka.dev/api/v1/user-metadata/<user_id>Authorization: OAuth <OAuth token>
Parameter | Overview |
---|---|
user_id | User ID. |
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Contains user metadata in JSON format.
{ "id": "123cdfggh", "country": "EN", "languages": [ "EN", "FR" ], "adult_allowed": true, "attributes": { "country_by_phone": "EN", "country_by_ip": "EN", "client_type": "TOLOKA_APP", "user_agent_type": "OTHER", "device_category": "SMARTPHONE", "os_family": "IOS", "os_version": 15, "os_version_major": 15, "os_version_minor": 0, "os_version_bugfix": 0 }}