COSMOS API

Collection Posts

Retrieve collection posts from Cosmos with a single API request.

GET/api/data/v1/cosmos/cluster/posts
1credit base cost

Request parameters

Up to 1 credit

Public Cosmos collection 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.

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/cosmos/cluster/posts?url=https%3A%2F%2Fwww.cosmos.so%2Fdesign%2Fthe-best-band-posters' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "items": [
    {
      "id": 2107587668,
      "url": "https://www.cosmos.so/e/2107587668",
      "created_at": "2026-01-24T17:23:49.338775Z",
      "caption": "Japanese movie poster for A Hard Day's Night (1964) featuring The Beatles.",
      "text": null,
      "title": null,
      "description": null,
      "owner": {
        "id": 2074596056,
        "username": "audreyelli"
      },
      "source_url": "https://www.pinterest.com/pin/7177680652369084/",
      "source_author": {
        "username": "telliott1817",
        "full_name": "Tom Elliott",
        "profile_url": "https://www.pinterest.com/telliott1817",
        "avatar_url": null
      },
      "media": [
        {
          "id": "8d612bfd-2b7b-458c-ac99-af7c406eef97",
          "type": "StaticImage",
          "url": "https://cdn.cosmos.so/8d612bfd-2b7b-458c-ac99-af7c406eef97",
          "width": 1080,
          "height": 1671,
          "ai_generated": false,
          "duration": null,
          "thumbnail_url": null,
          "video_url": null,
          "playback_url": null
        }
      ],
      "price": null,
      "brand": null,
      "saved_at": "2026-10-03T02:00:48.395167Z"
    }
  ],
  "total_count": 46,
  "cursor": "eyJ2MSI6MTAuMCwidjIiOjE0NDU4Mzc5fQ==",
  "has_more": true,
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
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"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "url": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "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"
          },
          "source_author": {
            "type": "object",
            "properties": {
              "username": {
                "type": "string"
              },
              "full_name": {
                "type": "string"
              },
              "profile_url": {
                "type": "string"
              },
              "avatar_url": {
                "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"
            ]
          },
          "saved_at": {
            "type": "string"
          }
        }
      }
    },
    "total_count": {
      "type": "integer"
    },
    "cursor": {
      "type": "string"
    },
    "has_more": {
      "type": "boolean"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}