COSMOS API
User Collections
Retrieve user collections from Cosmos with a single API request.
GET
/api/data/v1/cosmos/user/clusters1credit base cost
Request parameters
Up to 1 creditCosmos username without a profile URL.
Pass the previous response cursor unchanged. Stop when it is null; sending the literal string "null" returns an empty terminal page without fetching or charging.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/cosmos/user/clusters?handle=design' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"items": [
{
"id": 957563841,
"name": "the best weather apps",
"slug": "the-best-weather-apps",
"description": "some of the smartest data design on your phone",
"url": "https://www.cosmos.so/design/the-best-weather-apps",
"cover_image_url": "https://cdn.cosmos.so/fcebb83d-f089-4e17-9550-274d11c5ebd9",
"post_count": 42,
"follower_count": null,
"owner": {
"id": 234172146,
"username": "design",
"full_name": "Design",
"avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0"
}
}
],
"total_count": 58,
"cursor": "eyJ2MSI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwidjIiOiIyMDI2LTA4LTI4VDE4OjM4OjMxLjc0NjM1OFoiLCJ2MyI6MTQyMTE1OTN9",
"has_more": true
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"description": {
"type": "string"
},
"url": {
"type": "string"
},
"cover_image_url": {
"type": "string"
},
"post_count": {
"type": "integer"
},
"follower_count": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"avatar_url": {
"type": "string"
}
}
}
}
}
},
"total_count": {
"type": "integer"
},
"cursor": {
"type": "string"
},
"has_more": {
"type": "boolean"
}
}
}