Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.drain.lat/llms.txt

Use this file to discover all available pages before exploring further.

Instagram

Base URL: https://drain.lat/api/v1/instagram All endpoints require the x-api-key header.
Instagram aggressively rate limits server-side requests from datacenter IPs. These endpoints may occasionally return a rate limit error. Results are cached for 5 minutes to reduce the impact.

GET /profile/:username

Fetch a public Instagram profile. Endpoint
GET /api/v1/instagram/profile/:username
curl "https://drain.lat/api/v1/instagram/profile/cristiano" \
  -H "x-api-key: YOUR_API_KEY"
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 /profile/:username/posts

Get the last 12 posts from a public Instagram profile. Endpoint
GET /api/v1/instagram/profile/:username/posts
curl "https://drain.lat/api/v1/instagram/profile/cristiano/posts" \
  -H "x-api-key: YOUR_API_KEY"
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. The views field is only populated for video posts.