Skip to main content

Instagram

Base URL: https://drain.lat/api/v1/instagram
Instagram aggressively rate limits requests. These endpoints may occasionally return a rate limit error. Results are cached for 10 minutes.
Fetch a public Instagram profile.
GET /api/v1/instagram/profile/:username
username
string
required
The Instagram username to look up.
curl "https://drain.lat/api/v1/instagram/profile/cristiano" \
  -H "x-api-key: YOUR_API_KEY"
id
string
Instagram user ID.
username
string
Instagram username.
displayName
string
Display name.
bio
string
Profile bio.
avatarUrl
string
Avatar image URL.
website
string
Website link in bio.
isVerified
boolean
Whether the account is verified.
verified
boolean
Alias for isVerified (may appear in some responses).
isPrivate
boolean
Whether the account is private.
isBusiness
boolean
Whether the account is a business account.
businessCategory
string
Business category if applicable.
followers
number
Follower count.
following
number
Following count.
posts
number
Total post count.
reels
number
Total reels count.
profileUrl
string
Link to the Instagram profile.
Response
{
  "id": "173560420",
  "username": "cristiano",
  "displayName": "Cristiano Ronaldo",
  "bio": "Siuuu",
  "avatarUrl": "https://instagram.fpac1-4.fna.fbcdn.net/...",
  "website": "https://www.cristianoronaldo.com",
  "isVerified": true,
  "isPrivate": false,
  "isBusiness": false,
  "businessCategory": "",
  "followers": 635000000,
  "following": 567,
  "posts": 3841,
  "reels": 0,
  "profileUrl": "https://www.instagram.com/cristiano/",
  "scrapedAt": "2026-05-05T12:00:00.000Z"
}
Get the last 12 posts from a public Instagram profile.
GET /api/v1/instagram/profile/:username/posts
username
string
required
The Instagram username.
curl "https://drain.lat/api/v1/instagram/profile/cristiano/posts" \
  -H "x-api-key: YOUR_API_KEY"
username
string
Instagram username.
posts
array
total
number
Total posts on the account.
isPrivate
boolean
Whether the account is private.
Response
{
  "username": "cristiano",
  "posts": [
    {
      "id": "3012345678901234567",
      "shortcode": "CxAbCdEfGhI",
      "type": "GraphImage",
      "isVideo": false,
      "thumbnailUrl": "https://instagram.fpac1-4.fna.fbcdn.net/...",
      "caption": "Siuuu! ⚽",
      "likes": 12400000,
      "comments": 43200,
      "views": null,
      "takenAt": "2026-04-01T18:00:00.000Z",
      "url": "https://www.instagram.com/p/CxAbCdEfGhI/"
    }
  ],
  "total": 3841,
  "isPrivate": false,
  "scrapedAt": "2026-05-05T12:00:00.000Z"
}
Private accounts return an empty posts array with "isPrivate": true.