Instagram API referenceمرجع Instagram API

Every public endpoint with its parameters, response schema, examples and error codes, rendered from the OpenAPI 3.1 specification. Send your key in the X-API-Key header; plans, limits and what to do on each error are in the guide.همهٔ سرویس‌های عمومی با پارامترها، ساختار پاسخ، نمونه‌ها و کدهای خطا، ساخته‌شده از مشخصات OpenAPI 3.1. کلیدتان را در هدر X-API-Key بفرستید؛ پلن‌ها، محدودیت‌ها و راه‌حل هر خطا در راهنما است.

Endpointsسرویس‌ها

  • GET /api/userinfo/{username} — profile information: counts, bio, verification, contact fields, whether posts and stories are served.اطلاعات پروفایل: شمارش‌ها، بیو، تأیید، اطلاعات تماس، و این‌که پست و استوری داده می‌شود یا نه.
  • GET /api/feed/{username} — posts of a profile, about 12 a page; max_id pages forward.پست‌های پروفایل، حدود ۱۲ تا در هر صفحه؛ max_id صفحهٔ بعد را می‌دهد.
  • GET /api/media — one post or reel by url, shortcode or id, with its audio for videos.یک پست یا ریل با url، shortcode یا id، با صدای ویدیو.
  • GET /api/stories/{username} — the stories live right now.استوری‌های فعال همین حالا.
  • GET /api/highlights/{username} — the highlight tray of a profile.سینی هایلایت‌های پروفایل.
  • GET /api/highlight/{id} — the items of one highlight.آیتم‌های یک هایلایت.
  • GET /api/health — service health, and a free check of your key.وضعیت سرویس، و بررسی رایگان کلید.

Errors are JSON — { "error": "<code>", "message": "…" }; the full table is in the guide.خطاها JSON هستند — { "error": "<code>", "message": "…" }؛ جدول کامل در راهنما است.