COSMOS API
User Posts
Retrieve user posts from Cosmos with a single API request.
GET
/api/data/v1/cosmos/user/posts1credit 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/posts?handle=design' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"items": [
{
"id": 1307496415,
"url": "https://www.cosmos.so/e/1307496415",
"created_at": "2026-04-01T15:24:45.897845Z",
"caption": null,
"text": null,
"title": null,
"description": null,
"owner": {
"id": 14413015,
"username": "esther.yang"
},
"source_url": null,
"source_author": null,
"media": [
{
"id": "34647529-5d71-4c17-83c1-876e5500317c",
"type": "StaticImage",
"url": "https://cdn.cosmos.so/34647529-5d71-4c17-83c1-876e5500317c",
"width": 1440,
"height": 1920,
"ai_generated": false,
"duration": null,
"thumbnail_url": null,
"video_url": null,
"playback_url": null
}
],
"price": null,
"brand": null
}
],
"total_count": 25,
"cursor": null,
"has_more": false
}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"
},
"url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"caption": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"text": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"title": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"description": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
}
}
},
"source_url": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"source_author": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"media": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"ai_generated": {
"type": "boolean"
},
"duration": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"thumbnail_url": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"video_url": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"playback_url": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
}
}
}
},
"price": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"brand": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
}
}
}
},
"total_count": {
"type": "integer"
},
"cursor": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"has_more": {
"type": "boolean"
}
}
}