COSMOS API

Post

Retrieve post from Cosmos with a single API request.

GET/api/data/v1/cosmos/post
1credit base cost

Request parameters

Up to 1 credit

Public Cosmos post URL.

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/post?url=https%3A%2F%2Fwww.cosmos.so%2Fe%2F2107587668' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "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,
  "save_count": 73,
  "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"
    },
    "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"
      ]
    },
    "save_count": {
      "type": "integer"
    },
    "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."
    }
  }
}