API · Cosmos
GET /cosmos/users/{handle}
A Cosmos profile with element and collection counts.
| Request | GET /v1/cosmos/users/{handle} |
| Operation id | cosmos.user.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Cosmos profile with element and collection counts.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | yes | Username, with or without @, or a profile URL. Example: cosmos. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The profile. | CosmosUser |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The user, element or collection does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Cosmos is temporarily unavailable. Retryable; nothing was charged. | Error |
CosmosUser fields
| Field | Type | Description |
|---|---|---|
id | integer | |
username | string | |
fullName | string | null | |
bio | string | null | |
avatarUrl | string | null | |
websiteUrl | string | null | |
isPremium | boolean | null | |
isVerifiedProfile | boolean | null | |
publicElementsCluster | object | null | |
socialLinks | object | null | |
clusters_count | integer | null | Public collections. |
Errors use one shape everywhere; see Errors for every code and what to do.