COSMOS API
Collection
Retrieve collection from Cosmos with a single API request.
GET
/api/data/v1/cosmos/cluster1credit base cost
Request parameters
Up to 1 creditPublic Cosmos collection URL.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/cosmos/cluster?url=https%3A%2F%2Fwww.cosmos.so%2Fdesign%2Fthe-best-band-posters' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"id": 1632840802,
"name": "the best band posters",
"slug": "the-best-band-posters",
"description": "have you seen one of these in a room before?",
"url": "https://www.cosmos.so/design/the-best-band-posters",
"cover_image_url": "https://cdn.cosmos.so/images/b3964bde-a6d7-418d-91a6-09b1b7b6b9aa?rect=0,0,736,736",
"post_count": 46,
"follower_count": 746,
"owner": {
"id": 234172146,
"username": "design",
"full_name": "Design",
"avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0"
},
"subcollections": []
}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"
},
"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": "integer"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"avatar_url": {
"type": "string"
}
}
},
"subcollections": {
"type": "array"
}
}
}