INSTAGRAM API

User Tagged Posts

Retrieve user tagged posts from Instagram with a single API request.

GET/api/data/v1/instagram/user/tagged-posts
1credit base cost

Request parameters

Up to 1 credit

Numeric Instagram user ID.

Cursor returned by the previous response.

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/user/tagged-posts?user_id=325734299' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "posts": [
    {
      "pk": "3953402310668919030",
      "code": "DbdTnSdoSD2",
      "media_type": 1,
      "caption": {
        "pk": "18139631029604360",
        "text": "You get the best of both worlds ig"
      },
      "comment_count": 0,
      "like_count": 3,
      "view_count": null,
      "user": {
        "pk": "13320148665",
        "id": "13320148665",
        "username": "oceanecosplay"
      },
      "url": "https://www.instagram.com/p/DbdTnSdoSD2/"
    }
  ],
  "cursor": "3953374600788032611",
  "has_more": true
}
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"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pk": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "media_type": {
            "type": "integer"
          },
          "caption": {
            "type": "object",
            "properties": {
              "pk": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            }
          },
          "comment_count": {
            "type": "integer"
          },
          "like_count": {
            "type": "integer"
          },
          "view_count": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "user": {
            "type": "object",
            "properties": {
              "pk": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            }
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "cursor": {
      "type": "string"
    },
    "has_more": {
      "type": "boolean"
    }
  }
}