Introducing the Instagram APIRead more →

Cosmos Post API. Send a post link or ID.

Saved element with every file, source and saves. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Post API at a glance

Returns a public Cosmos element (a saved picture, video, product, link or note) from its link or ID. It has every file, the page it came from and its creator, the exact save count and who saved it. Shop products add brand, price and stock; an element Cosmos hides is a not_found error.

GET /v1/cosmos/post

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 25 typed fields null when unknown
  • url is all it needs, e.g. https://www.cosmos.so/e/547956585
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 25 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.cosmos.so/e/547956585
GET /v1/cosmos/postTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  url: "https://www.cosmos.so/e/547956585",
});
const res = await fetch(`https://socialtap.dev/v1/cosmos/post?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/cosmos/postLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 24 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Cosmos doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    A Cosmos element's link (cosmos.so/e/<id>, its /canvas view, or a shop product's cosmos.so/product/<brand>/<id>) or its numeric ID.

  • Write one parser

    Cosmos, TikTok, Instagram and 21 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
In the example "cosmos"
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
In the example "547956585"
urlstring
Canonical post URL.
In the example "https://www.cosmos.so/e/547956585"
typestring
Normalized content shape. New values may be added; treat unknown values as other.
In the example "carousel"
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
In the example "media"
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
In the example null
textstring
Caption, description or body as plain text.
In the example null
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.
In the example "https://www.instagram.com/p/DK2wZxvMsbf/?igsh=MW9ubmc3NzRucHBkNg=="

What teams build with the Cosmos Post API.

  • Credit the creator behind a saved image

    link_url is the Instagram or Pinterest post it came from and platform_specific.cosmos.source_author names who made it there, so a moodboard can credit the original.

  • Download every file of a carousel

    media lists each picture and video in order with its file URL, width and height, and a video's length and still.

  • Measure which references people keep saving

    Read metrics.save_count for the same element links each week to see which pictures designers keep adding to their collections.

  • Price products found on Cosmos

    For a shop element, platform_specific.cosmos.product has the brand, price, original_price, currency, stock and the shop's page.

Good to know before you build.

  • author is the Cosmos account that saved the element, every field null when Cosmos records none; platform_specific.cosmos.source_author is who made it on the site it came from.
  • text is a note's text or a link's or product's description; a picture's description, which Cosmos writes itself, is in media[].alt_text.
  • metrics.save_count counts saves to collections; Cosmos shows no likes, views or comments.
  • From the page fallback, media holds only the main file, a note's text is missing, and save_count, the collection and the AI label are null.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Cosmos Post API.

More in the API reference.

Does it take a shop product's link?
Yes. cosmos.so/product/<brand>/<id> is the same element as cosmos.so/e/<id>, and the answer has the product's brand, prices and stock.
Can I get the original Instagram or Pinterest post?
Yes, when Cosmos knows it: link_url is the page the element was saved from, and source_author has its creator's username, name and profile link.
How much does the Cosmos Post API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 310 endpoints
Start for free Read the docs