InsightSocial

Cosmos scraper API

The InsightSocial Cosmos API has 7 endpoints, from 20 credits a call. A search posts call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.

The Cosmos scraper API for profiles, collections and saved posts with their media and original source, plus search by meaning, as JSON, on the same key as every other platform.

7 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card

curl "https://api.insightsocial.app/v1/cosmos/search/posts?query=brutalist+architecture" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "cosmos",
"endpoint": "/v1/cosmos/search/posts",
"schema_version": "2",
"data": {
"posts": [
{
"id": "1000000001",
"url": "https://www.cosmos.so/e/1000000001",
"caption": "Concrete stairwell, late afternoon light",
"media": {
"type": "image",
"url": "https://cdn.example.com/cosmos/1000000001.jpg",
"width": 1200,
"height": 1600
},
"source": {
"url": "https://example.com/projects/stairwell",
"domain": "example.com"
},
"saved_by": {
"handle": "example_curator",
"display_name": "Example Curator"
},
"created_at": "2026-11-02T15:20:00.000Z"
}
],
"pagination": {
"next_cursor": "eyJvZmZzZXQiOjMwfQ"
}
},
"unavailable": [],
"credits_used": 0,
"charge_reason": "miss",
"free_call": true
}

What Cosmos data can you get?

Public Cosmos data only, in the same JSON envelope as every other platform. Every Cosmos endpoint is beta: inside data it returns Cosmos's own structure under our naming rules (snake_case keys, string ids, ISO times where Cosmos gives a timestamp), not the shared profile and post schema, and fields may change.

Profiles

A profile's bio, links and counts, its public collections with covers and sizes, and its latest public posts.

Collections

A collection by URL with its owner, size and followers, and its latest posts with a cursor.

Posts and search

One post with its media, caption, source and the person who saved it, and search that matches posts by meaning, not only by words.

What people build with the Cosmos API

  • Visual trend research

    Search a theme by meaning and collect the images designers are saving, with their sources, for moodboards and trend reports.

  • Source tracing

    Follow a saved image back to the page it came from, and see which curators and collections keep it.

Cosmos API endpoints

All 7 Cosmos endpoints and their price in credits. Every one has a fixed price.

EndpointCreditsWhat it returns
/collections20Get a Cosmos collection by URL with its owner, size and followers.
/collections/posts20List the latest posts in a Cosmos collection by its URL.
/posts20Get a Cosmos post by URL with its media, caption, source and saver.
/profile20Get a Cosmos profile by handle, with its bio, links and counts.
/profile/collections20List a Cosmos profile's public collections with their covers and sizes.
/profile/posts20List a Cosmos profile's latest public posts with their media and sources.
/search/posts20Search Cosmos posts by meaning, with their media and sources.

Parameters, response fields and examples for each endpoint are in the Cosmos API reference.

How much does the Cosmos API cost?

Cosmos calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 searches at 20 credits each.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Repeats and retries

    A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.

  • One balance

    API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.

Not writing code?

Connect InsightSocial to Claude or ChatGPT and ask for Cosmos data in plain English. Same account, same credits.

Use it from Claude or ChatGPT

Cosmos API: frequently asked questions

/v1/cosmos/search/posts takes up to 100 characters and searches by meaning, so related posts match even when they do not share your words. Each result carries its media and source.

The same key works for 86 more platforms

All platforms on one social media API