INSTAGRAM API

Search Instagram

Retrieve search instagram from Instagram with a single API request.

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

Request parameters

Up to 1 credit

The username, hashtag, place, or keyword to search for.

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

Response

Example
{
  "success": true,
  "query": "nike",
  "users": [
    {
      "position": 0,
      "id": null,
      "username": "nike",
      "full_name": "Nike",
      "is_verified": null,
      "profile_pic_url": null,
      "url": "https://www.instagram.com/nike/"
    }
  ],
  "hashtags": [],
  "places": [
    {
      "position": 12,
      "id": "846210479",
      "name": "Nike Outlet San Leandro on Instagram • Photos and Videos",
      "title": "Nike Outlet San Leandro on Instagram • Photos and Videos",
      "subtitle": null,
      "facebook_places_id": null,
      "url": "https://www.instagram.com/explore/locations/846210479/"
    }
  ],
  "keywords": [],
  "rank_token": null,
  "source": "google",
  "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"
    },
    "query": {
      "type": "string"
    },
    "users": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "id": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "username": {
            "type": "string"
          },
          "full_name": {
            "type": "string"
          },
          "is_verified": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "profile_pic_url": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "hashtags": {
      "type": "array"
    },
    "places": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "subtitle": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "facebook_places_id": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "keywords": {
      "type": "array"
    },
    "rank_token": {
      "type": [
        "string",
        "object",
        "array",
        "number",
        "boolean",
        "null"
      ]
    },
    "source": {
      "type": "string"
    },
    "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."
    }
  }
}