YepAPI
Instagram API

User Tagged Posts

Get posts in which an Instagram user has been tagged.

POST/v1/instagram/user-tagged
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/instagram/user-tagged', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ username: 'natgeo' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/instagram/user-tagged \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "natgeo"}'

Request Body

ParameterTypeRequiredDescriptionDefault
usernamestringYesInstagram username
end_cursorstringNoPagination cursor from previous response

Response

{
  "ok": true,
  "data": {
    "has_next_page": true,
    "end_cursor": "QVFDcE...",
    "posts": [
      {
        "id": "3456789012345678901",
        "shortcode": "C5xAbCdEfGh",
        "type": "GraphImage",
        "caption": "Amazing shot featured by @natgeo",
        "like_count": 125000,
        "comment_count": 340,
        "taken_at": 1712345678,
        "display_url": "https://scontent.cdninstagram.com/...",
        "owner": {
          "username": "photographer_name",
          "profile_pic_url": "https://scontent.cdninstagram.com/..."
        }
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.has_next_pagebooleanWhether more posts are available
data.end_cursorstringCursor for fetching the next page
data.postsobject[]Array of tagged post objects
data.posts[].idstringUnique post identifier
data.posts[].shortcodestringPost shortcode (used in URLs)
data.posts[].typestringPost type: GraphImage, GraphVideo, or GraphSidecar
data.posts[].captionstringPost caption text
data.posts[].like_countnumberNumber of likes
data.posts[].comment_countnumberNumber of comments
data.posts[].taken_atnumberUnix timestamp of when the post was published
data.posts[].display_urlstringFull-size image URL
data.posts[].ownerobjectPost author information

Use the end_cursor value from the response to paginate through tagged posts.

On this page