Cosmos profile collections
Beta GET /v1/cosmos/profile/collections
GET /v1/cosmos/profile/collections
The public collections a user owns. Keep the cursor unchanged and stop when has_more is false.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | yes | Cosmos username, without a profile URL. Also accepted as username. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl -G "https://api.socialscrape.io/v1/cosmos/profile/collections" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "handle=design"import os
import requests
params = {
"handle": "design",
}
res = requests.get(
"https://api.socialscrape.io/v1/cosmos/profile/collections",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/cosmos/profile/collections");
url.search = new URLSearchParams({
"handle": "design"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Cosmos profile collections",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/cosmos/profile/collections",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "design"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_b9f1dc9bd20e7f4c6b207dcd",
"data": {
"object": "list",
"items": [
{
"object": "collection",
"platform": "cosmos",
"id": "1444486570",
"url": "https://www.cosmos.so/design/ransom-note-lettering",
"kind": "collection",
"title": "ransom note lettering",
"description": "cut from whatever was lying around",
"owner": {
"id": "234172146",
"handle": "design",
"name": "Design",
"url": "https://www.cosmos.so/design",
"avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",
"verified": null
},
"item_count": 38,
"cover_url": "https://cdn.cosmos.so/13ab2335-6d21-4cbb-899d-ebb313170a71",
"updated_at": "2026-10-24T18:09:42.434306Z",
"extra": {
"cover_ai_generated": false,
"cover_height": 1350,
"cover_width": 1080,
"follower_count": 1008,
"is_featured": false,
"is_private": false,
"slug": "ransom-note-lettering",
"subcollections": []
}
},
{
"object": "collection",
"platform": "cosmos",
"id": "1691653994",
"url": "https://www.cosmos.so/design/kids-tv-logos",
"kind": "collection",
"title": "kids tv logos",
"description": "all i'd want to see when school was over",
"owner": {
"id": "234172146",
"handle": "design",
"name": "Design",
"url": "https://www.cosmos.so/design",
"avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",
"verified": null
},
"item_count": 48,
"cover_url": "https://cdn.cosmos.so/a3c300f7-9e89-4f3e-914e-e8d4e4afea73?rect=0,80,324,324",
"updated_at": "2026-10-24T18:09:08.280481Z",
"extra": {
"cover_ai_generated": false,
"cover_height": 324,
"cover_width": 324,
"follower_count": 1004,
"is_featured": false,
"is_private": false,
"slug": "kids-tv-logos",
"subcollections": []
}
}
],
"cursor": "eyJ2MSI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwidjIiOiIyMDI2LTA5LTIzVDIxOjE4OjIyLjQxMDY1NloiLCJ2MyI6MTUxMDg2Mzl9",
"has_more": true,
"parent": null
},
"cursor": "eyJ2MSI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwidjIiOiIyMDI2LTA5LTIzVDIxOjE4OjIyLjQxMDY1NloiLCJ2MyI6MTUxMDg2Mzl9",
"has_more": true
}Response#
A list of Collection objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Also served at#
These paths answer the same request, so code written for other APIs keeps working: /v1/cosmos/user/clusters. See Switching from ScrapeCreators.
Related endpoints#
- Cosmos profile (
GET /v1/cosmos/profile) - Cosmos profile posts (
GET /v1/cosmos/profile/posts) - Cosmos post (
GET /v1/cosmos/post) - Cosmos collection (
GET /v1/cosmos/collection) - Cosmos collection posts (
GET /v1/cosmos/collection/posts) - Cosmos search (
GET /v1/cosmos/search)