APISocial Media — InstagramIG — Posts

IG — Posts

Get a user's recent posts.

GET/api/v1/social/insta/postsFreeraw=trueaccount-required
Returns post media + captions, in reverse-chronological order.

Query / path parameters

username
string·queryrequired
Instagram username (no @).
Example: natgeo
limit
integer·query
Max items to fetch.
Default: 12
batch_size
integer·query
Items per scroll page. Defaults to 12 (matches IG's native page size).
Default: 12
account_id
string·query
Specific connected IG account to run from. Omit for auto-pick.
auto_rotate_accounts
boolean·query
On account cooldown, auto-pick a different connected account instead of pausing.
Default: false
proxy
string·query
Full proxy URL (http://user:pass@host:port). Mutually exclusive with proxy_id / use_logpose_*.
proxy_id
string·query
ID of a saved proxy from /api/v1/proxies. Picks one of your stored proxies.
proxy_list_id
string·query
ID of a saved proxy list. The wrapper rotates through healthy proxies in the list and marks failures.
use_logpose_datacenter
boolean·query
Route through a datacenter proxy — supply your own via `proxy` / `proxy_id`. Best for easier targets.
Default: false
use_logpose_proxy
boolean·query
Route through a residential proxy — supply your own via `proxy` / `proxy_id`. Needed for hard-blocked targets.
Default: false
raw
boolean·query
When true, the executor captures the pre-parse scraper response alongside the typed result. Each platform captures its native shape: **Amazon / eBay / Etsy / Alibaba / Walmart / Realtor (browser path) / Zillow (property page)** = HTML; **Booking / TripAdvisor / Instagram / TikTok / Realtor (search) / Zillow (search)** = GraphQL/internal-API JSON. **Facebook** is the only exception — raw is not stored. Fetch via `GET /api/v1/jobs/:id/result?raw=true` or `GET /api/v1/results/:id?raw=true`.
Default: false

Response

placeholder inline shape — run scripts/dump_doc_samples.py on the server to populate real samples.
{
  "username": "natgeo",
  "count": 12,
  "posts": [
    {
      "id": "C7…",
      "caption": "Photo by …",
      "like_count": 124234,
      "comment_count": 1832,
      "taken_at": 1714512345,
      "media_type": "image"
    }
  ]
}
API Key

Paste your full key once — cached in this browser for 7 days, then cleared.

const res = await fetch("https://api.logposervices.com/api/v1/social/insta/posts", {
  method: "GET",
  headers: {
    "X-API-Key": "<YOUR_API_KEY>",
  },
});
const data = await res.json();
Try it
Base URL
https://api.logposervices.com
Query
usernamestringrequired
limitinteger
batch_sizeinteger
account_idstring
auto_rotate_accountsboolean
proxystring
proxy_idstring
proxy_list_idstring
use_logpose_datacenterboolean
use_logpose_proxyboolean
rawboolean
Response

Click Send Request above to try this endpoint.