COSMOS API

Search

Retrieve search from Cosmos with a single API request.

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

Request parameters

Up to 1 credit

Search text.

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/search?query=architecture' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "items": [
    {
      "id": 547956585,
      "url": "https://www.cosmos.so/e/547956585",
      "created_at": "2025-06-19T12:57:19.994842Z",
      "caption": "An architectural poster created using Midjourney v7.",
      "text": null,
      "title": null,
      "description": null,
      "owner": {
        "id": 2059029120,
        "username": "joris.kahl"
      },
      "source_url": "https://www.instagram.com/p/DK2wZxvMsbf/?igsh=MW9ubmc3NzRucHBkNg==",
      "source_author": {
        "username": "ai_architecture_awards",
        "full_name": "AI Architecture",
        "profile_url": "https://www.instagram.com/ai_architecture_awards",
        "avatar_url": null
      },
      "media": [
        {
          "id": "589cdf02-9abf-4d94-88ef-809734ca5444",
          "type": "StaticImage",
          "url": "https://cdn.cosmos.so/e00a12d4-1e19-45de-9649-b42e9c9f724a",
          "width": 928,
          "height": 1232,
          "ai_generated": false,
          "duration": null,
          "thumbnail_url": null,
          "video_url": null,
          "playback_url": null
        }
      ],
      "price": null,
      "brand": null
    }
  ],
  "cursor": "cursor://recsys/search?user_id=0&profile=search__match_jina_dual70_recql&query=architecture&last=39&count=500",
  "has_more": true,
  "result_count": 500,
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Illustrative response with example values adapted for FetchGoblin. Run a request to retrieve current platform 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"
            ]
          }
        }
      }
    },
    "cursor": {
      "type": "string"
    },
    "has_more": {
      "type": "boolean"
    },
    "result_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."
    }
  }
}