Search APIs
Loading…
← API Store
Social

Cosmos

Cosmos

Cosmos element

GET /cosmos/v1/post
Test this endpoint

Every response includes credits_used: the credits this call cost.

Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.

Parameters

NameTypeDescription
urlrequiredstring Example: https://www.cosmos.so/e/547956585

Every endpoint also takes: raw、fields、fresh、output、records

{
  "cached": false,
  "caption": "An architectural poster created using Midjourney v7.",
  "caption_raw": "An architectural poster created using <n>Midjourney v7</n>.",
  "created_at": "2025-06-19T12:57:19.994842Z",
  "credits_used": 1,
  "gallery": [
    {
      "ai_generated": false,
      "height": 1232,
      "id": "589cdf02-9abf-4d94-88ef-809734ca5444",
      "nsfw_status": "SAFE",
      "type": "image",
      "typename": "StaticImage",
      "url": "https://cdn.cosmos.so/e00a12d4-1e19-45de-9649-b42e9c9f724a",
      "width": 928
    },
    {
      "ai_generated": false,
      "height": 1232,
      "id": "0e2ebb91-84fc-4700-b076-7c772289b9c7",
      "nsfw_status": "SAFE",
      "type": "image",
      "typename": "StaticImage",
      "url": "https://cdn.cosmos.so/4c815d2f-c297-4bee-89f3-bdc8e952440f",
      "width": 928
    },
    "… 3 more"
  ],
  "id": 547956585,
  "media": {
    "ai_generated": false,
    "height": 1232,
    "id": "589cdf02-9abf-4d94-88ef-809734ca5444",
    "nsfw_status": "SAFE",
    "type": "image",
    "typename": "StaticImage",
    "url": "https://cdn.cosmos.so/e00a12d4-1e19-45de-9649-b42e9c9f724a",
    "width": 928
  },
  "media_count": 5,
  "owner_id": 2059029120,
  "saved_by": "joris.kahl",
  "saved_by_avatar": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
  "saved_by_name": "Joris Kahl",
  "saved_to_collections": 83,
  "slate_id": null,
  "source_author": {
    "name": "AI Architecture",
    "url": "https://www.instagram.com/ai_architecture_awards",
    "username": "ai_architecture_awards"
  },
  "source_url": "https://www.instagram.com/p/DK2wZxvMsbf/?igsh=MW9ubmc3NzRucHBkNg==",
  "top_connections_meta": {
    "count": 83
  },
  "type": "media",
  "url": "https://www.cosmos.so/e/547956585"
}
Response fields (42)

Field paths and types observed in the sample response; the live response is authoritative.

$object
$.cachedboolean
$.captionstring
$.caption_rawstring
$.created_atstring
$.credits_usedinteger
$.galleryarray
$.gallery[]object | string
$.gallery[].ai_generatedboolean
$.gallery[].heightinteger
$.gallery[].idstring
$.gallery[].nsfw_statusstring
$.gallery[].typestring
$.gallery[].typenamestring
$.gallery[].urlstring
$.gallery[].widthinteger
$.idinteger
$.mediaobject
$.media.ai_generatedboolean
$.media.heightinteger
$.media.idstring
$.media.nsfw_statusstring
$.media.typestring
$.media.typenamestring
$.media.urlstring
$.media.widthinteger
$.media_countinteger
$.owner_idinteger
$.saved_bystring
$.saved_by_avatarstring
$.saved_by_namestring
$.saved_to_collectionsinteger
$.slate_idnull
$.source_authorobject
$.source_author.namestring
$.source_author.urlstring
$.source_author.usernamestring
$.source_urlstring
$.top_connections_metaobject
$.top_connections_meta.countinteger
$.typestring
$.urlstring