100 free credits. No credit card required.Start building
Logo
Instagram logo
100 free credits. No credit card required

Instagram Location Posts API

Returns posts tagged at a place, newest first, about 60 a page, each with shortcode, URL, caption, media URLs, engagement counts, and the author.

GET /v1/instagram/location/posts

Last updated November 2026Maintained by the SocialCrawl team

When to use the Instagram Location Posts API

Use it after search/location for region-scoped posts. Page back in time with the cursor; for a time window, stop once a whole page is older than its start.

From the API reference

Returns the posts tagged at an Instagram location, newest first, about 60 per page. Each post includes shortcode, URL, caption, media URLs, engagement counts, and the author. Pass location_id as location.pk from /v1/instagram/search/location, then page back in time with cursor until has_more is false. If the source that served page 1 fails on a later page, a backup source continues the walk and the page carries continuation_rescued in data._warnings: a few posts nearest the page boundary can be missing from that page. A busy place fills a page in about a day and a quiet one covers months or years, and the grid goes back to the location's oldest posts. Instagram orders the grid by when each post was created, so a scheduled post that went live later sits among older posts while its published_at shows the real publish time (about 1 post in 75, up to 13 days apart, measured 13/09/2026). To collect a time window, keep paging until a whole page is older than the window's start and filter on published_at; do not stop at the first older post. Each page is a separate call at the listed price. A location grid mixes photos and reels, so engagement.views is a number on the video rows and null on the photo rows. This is the region-scoped Instagram route: /v1/instagram/reels/trending and /v1/instagram/music/trending take no region, because Instagram ties both to the account viewing them. Note: post.author.display_name is not available on this endpoint, because the Instagram surface behind it withholds creator display names. Join on post.author.username, or pass it to /v1/instagram/profile?handle= for the name.

Searching 69 platforms in parallel

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
Instagram API

What can you do with the Location Posts API?

The Location Posts endpoint gives you structured Instagram data with computed fields in a single request. No scraping infrastructure to build or maintain.

Example Request

# GET /v1/instagram/location/posts: Metered: holds 5 credits per page up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 21: this endpoint's measured p99 latency x 1.5.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
# Next page: send pagination.next_cursor back as cursor until pagination.has_more is false.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 21 --retry 3 -o response.json \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/instagram/location/posts?location_id=331004901" && cat response.json
# GET /v1/instagram/location/posts: Metered: holds 5 credits per page up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid

import requests

API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 21  # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/instagram/location/posts"


def backoff(attempt):
    # Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
    return 2 ** attempt * (0.5 + random.random() / 2)


def socialcrawl(params):
    # One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
    idempotency_key = str(uuid.uuid4())
    for attempt in range(MAX_RETRIES + 1):
        try:
            res = requests.get(
                URL,
                params=params,
                headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
                timeout=TIMEOUT_S,
            )
            body = res.json()
        except (requests.RequestException, ValueError):
            # A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
            if attempt == MAX_RETRIES:
                raise
            time.sleep(backoff(attempt))
            continue
        if body["success"]:
            return body
        error = body["error"]
        # Branch on error["type"], never on the message text.
        if error["type"] == "RESOURCE_NOT_FOUND":
            return None  # refunded: nothing to read
        retry_after = res.headers.get("Retry-After")
        # SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
        permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
        if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
            raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
        # Retry-After (seconds) wins; otherwise back off.
        time.sleep(float(retry_after) if retry_after else backoff(attempt))


params = {
    "location_id": "331004901",
}

# Walk the list: send pagination.next_cursor back as cursor until has_more is false.
MAX_PAGES = 10  # each page is one call
items = []
for _ in range(MAX_PAGES):
    body = socialcrawl(params)
    if body is None:
        break
    items.extend(body["data"]["items"])
    page = body.get("pagination") or {}
    if not page.get("has_more") or not page.get("next_cursor"):
        break
    params["cursor"] = page["next_cursor"]
print(f"{len(items)} items")
// GET /v1/instagram/location/posts: Metered: holds 5 credits per page up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 21_000; // this endpoint's measured p99 latency x 1.5.
const MAX_RETRIES = 3;

type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
  | { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
  | { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);

async function socialcrawl(url: URL) {
  // One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
  const idempotencyKey = crypto.randomUUID();
  for (let attempt = 0; ; attempt++) {
    let res: Response;
    let body: SocialCrawlResponse;
    try {
      res = await fetch(url, {
        headers: {
          "x-api-key": API_KEY,
          "Idempotency-Key": idempotencyKey,
        },
        signal: AbortSignal.timeout(TIMEOUT_MS),
      });
      body = (await res.json()) as SocialCrawlResponse;
    } catch (error) {
      // A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
      if (attempt >= MAX_RETRIES) throw error;
      await sleep(backoffMs(attempt));
      continue;
    }
    if (body.success) return body;
    // Branch on error.type, never on the message text.
    if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
    const retryAfter = res.headers.get("Retry-After");
    // SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
    const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
    if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
      throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
    }
    // Retry-After (seconds) wins; otherwise back off.
    await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
  }
}

const url = new URL("https://www.socialcrawl.dev/v1/instagram/location/posts");
url.searchParams.set("location_id", "331004901");

// Walk the list: send pagination.next_cursor back as cursor until has_more is false.
const MAX_PAGES = 10; // each page is one call
const items: unknown[] = [];
for (let page = 0; page < MAX_PAGES; page++) {
  const body = await socialcrawl(url);
  if (!body) break;
  items.push(...body.data.items);
  const next = body.pagination?.next_cursor;
  if (!body.pagination?.has_more || !next) break;
  url.searchParams.set("cursor", next);
}
console.log(`${items.length} items`);

Parameters

ParameterRequiredDescription
location_idYesInstagram location id. Use location.pk from /v1/instagram/search/location.
cursorNoPagination cursor. Use the `next_cursor` from the previous response to fetch the next, older page.
safe_urlNoWhen true, returns URL-safe media links suitable for embedding.
includeNoSend `country` to add each post's creator country as `post.ext.author_country`: the country the creator declares on Instagram's About this account panel, not the place the post is tagged at, and null when the creator publishes none. Every row carries the creator's numeric id as `post.ext.author_id`, which is what it is read by. 1 extra credit per creator whose country came back; two posts by one creator cost one lookup, a creator looked up in the last 30 days is free, and a creator who publishes none or cannot be found is refunded. A typo is a free 400. (country)
sinceNoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. This list is not in date order, so the walk does not stop at the date: keep following `next_cursor`, and each page costs what a page costs even when every row on it is filtered out. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
untilNoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.
max_pagesNo1 to 50 (default 1, or 50 when `max_items` or `max_credits` is sent). Walk up to this many pages in one call and return the rows from all of them. Each page walked is billed exactly as one call to this endpoint (a cached page is free) and counts against your rate limit; its charge and any refund are recorded under the page's own request id, listed in `data.walk.request_ids`. The walk stops early at the last page, or when the request's time budget runs low; `data.walk.stopped` says why (`end`, `max_pages`, `max_items`, `max_credits`, `time_budget`, `page_error`) and `pagination.next_cursor` continues from where it stopped.
max_itemsNo1 to 5000. Get more in one call: keep walking pages until the response holds at least this many rows, then stop with `data.walk.stopped: "max_items"`. The last page is returned whole (it was billed), so `data.items` can hold up to one page more than this, and `pagination.next_cursor` resumes right after it without skipping a row. Walks up to 50 pages unless `max_pages` says fewer; each page is billed as one call (a cached page is free). Add `max_credits` to cap the spend. A long walk can stop on the time budget first (`"time_budget"`): send the returned cursor with the same params to continue.
max_creditsNo1 to 100000. The most this call may spend, across every page it walks. A page starts only while the credits already spent plus that page's price (or, when higher, the most any page of this walk has cost) still fit, so the call never goes past it; the walk then stops with `data.walk.stopped: "max_credits"` and the cursor to resume. Sent alone, it walks as far as the budget goes (up to 50 pages). A value below the price of one page is a free 400 whose `error.details.page_credits` names that price. Credits a row join (`include=`) adds are known only once a page has run, so page 1 is checked against its own price.
Example Response

What does the Instagram Location Posts API return?

Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.

Example response
{
  "success": true,
  "platform": "instagram",
  "endpoint": "/v1/instagram/location/posts",
  "data": {
    "items": [
      {
        "post": {
          "id": "3998800860666248959",
          "url": "https://www.instagram.com/p/Dd-mDI7ib7_/",
          "content": {
            "text": "Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted).",
            "media_urls": [
              "https://instagram.fkiv3-1.fna.fbcdn.net/v/t51.82787-15/834222590_18637899742038111_8408779761228572461_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_cat=111&_nc_map=urlgen_bucketless&ig_cache_key=Mzk5ODgwMDYwNzMwNzAxMjEwMQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMzQ2NC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=pFuMt6i-gscQ7kNvwGWJnAD&_nc_oc=AdqeQsO5_AcZtzAe-XWeftqZQoIjXbVctswb3YVSk_pLD9a_uPmr7o79d0YN3Nh5Qkw&_nc_ad=z-m&_nc_cid=1490&_nc_zt=23&_nc_ht=instagram.fkiv3-1.fna&_nc_gid=L6l3Z7XzIWQu_NVuUqGzAA&_nc_ss=7a3ba&oh=00_AQOQLZv8CWZIYBYWYIj2oP8Ie9MDx2x2uXBlkMEZaVaqgg&oe=6AC52A4B",
              "https://instagram.fkiv3-1.fna.fbcdn.net/v/t51.82787-15/831400907_18637899763038111_422115493201431996_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_cat=111&_nc_map=urlgen_bucketless&ig_cache_key=Mzk5ODgwMDYxNzYxNjUwMjY3NA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMzQ2NC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=148TtqMFqUsQ7kNvwG1j76k&_nc_oc=AdrMhlwqhrR41okT_xSYVYqwR7B3bKOVl-wGdrvKkfZg0ZqGcAHJAhR3n7h5k4gm2S8&_nc_ad=z-m&_nc_cid=1490&_nc_zt=23&_nc_ht=instagram.fkiv3-1.fna&_nc_gid=L6l3Z7XzIWQu_NVuUqGzAA&_nc_ss=7a3ba&oh=00_AQObWVhpOYzaoYPMybW2IaICX2FS8fveCYtPAC3XikY__A&oe=6AC52D15"
            ],
            "thumbnail_url": null,
            "duration_seconds": null
          },
          "author": {
            "username": "user_a221c7",
            "display_name": null,
            "avatar_url": "https://example.com/avatars/user_e2a444.png",
            "verified": false
          },
          "engagement": {
            "views": null,
            "likes": 378,
            "comments": 7,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": false,
            "deleted": false
          },
          "published_at": "2026-10-02T04:10:31.000Z",
          "ext": {
            "media_type": "carousel",
            "carousel_count": 3,
            "published_at_epoch": 1790914231,
            "coauthors": []
          }
        },
        "computed": {
          "engagement_rate": null,
          "language": "en",
          "content_category": "other",
          "estimated_reach": null
        }
      },
      {
        "post": {
          "id": "3998702974086269080",
          "url": "https://www.instagram.com/reel/Dd-Pys8tciY/",
          "content": {
            "text": "Sample comment text (redacted).",
            "media_urls": "https://instagram.fkiv3-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQPk-aHW2d3DMcgoey291av60JbV6YSUEpyE8VQXu8JBzelRQQvXpVWKLUBIadInlbo4BlIOTtgrc0FtHx1ejJDoN7FAc8shfWrb1Kg.mp4?_nc_cat=105&_nc_oc=AdqUatdWF50GJQxCBWhmp-zH9JAna21q0zagbg0kH2dfpqD0Vxx99hK8F3ygY5D9ols&_nc_sid=5e9851&_nc_ht=instagram.fkiv3-1.fna.fbcdn.net&_nc_ohc=0f4NMaoA9wUQ7kNvwE8jXf1&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTA4NDk1MjcwMTE3OTAzMSwiYXNzZXRfYWdlX2RheXMiOjAsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjozMSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=b0ddd2026b445a13&_nc_vs=HBkcFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9CRjcwNjZCQTVDRjI0Q0Y5QkQ3QUM2NUU2QjEwRTcwNF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAKAAYABsCiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATEVAAAmrtLQxcew7QMVAigCQzMsF0A_wo9cKPXDGBJkYXNoX2Jhc2VsaW5lXzFfdjERAHX-B2XmnQEA&_nc_gid=L6l3Z7XzIWQu_NVuUqGzAA&_nc_ss=7a3ba&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQOAfKwpcuO8cnAHCUcnW7sbFyXv-q0SgcNAwPpmL1CJ4w&oe=6AC12586",
            "thumbnail_url": "https://instagram.fkiv3-1.fna.fbcdn.net/v/t51.71878-15/830197508_1125505283483118_3903127523939470317_n.jpg?stp=dst-jpg_e15_p360x360_tt6&_nc_cat=109&_nc_map=urlgen_bucketless&ig_cache_key=Mzk5ODcwMjk3NDA4NjI2OTA4MDEwODQ5NTUzMDExNzg3NzE%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjY0MC5zZHIudmlkZW9fdXNlcl9zZWxlY3RlZF90aHVtYm5haWwuQzMifQ%3D%3D&_nc_ohc=HM_UUiNEWLcQ7kNvwFtZqrg&_nc_oc=AdqLo0JTWVynTbBYwtVRgnvw0pf2AloIRGPysir32O_CJ3l435kLceLfcC2-3x1Q8sk&_nc_ad=z-m&_nc_cid=1490&_nc_zt=23&_nc_ht=instagram.fkiv3-1.fna&_nc_gid=L6l3Z7XzIWQu_NVuUqGzAA&_nc_ss=7a3ba&oh=00_AQPbXAxzSHy8kz2hF22ffVZTeq47DO4f3XuqBNyhhWwoCA&oe=6AC532D7",
            "duration_seconds": 31.76
          },
          "author": {
            "username": "user_aa80d8",
            "display_name": null,
            "avatar_url": "https://example.com/avatars/user_3aa77c.png",
            "verified": true
          },
          "engagement": {
            "views": 150,
            "likes": 2,
            "comments": 0,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": false,
            "deleted": false
          },
          "published_at": "2026-10-02T00:59:31.000Z",
          "ext": {
            "media_type": "video",
            "published_at_epoch": 1790902771,
            "coauthors": []
          }
        },
        "computed": {
          "engagement_rate": 0.013333,
          "language": null,
          "content_category": "other",
          "estimated_reach": 180
        }
      }
    ],
    "next_cursor": "sc2.eyJzIjoibCIsImMiOiJsZzEuZXlKdElqb2lVVlpHUkdFd2RIbE9WR1JhVTBaak5WVnRXbGRYUkU1UlUxUlZNMlJYYkZGUlZYUkRVa2RrYms1c2JIbFNSbWQ0VjI1d1VrNVdUbmRqYlRRd1VYcENjRll3ZEhOa01qVXlVa2hzVkdKc09WaFVNMFphWTFWa1JWbDZTbkpTVkZaWldsaEdNMUZVWkdoWmJYUldZbTFLYkU1cWFEWlhVVDA5SWl3aWNDSTZNU3dpYVNJNlcxMTkifQ",
    "total": null,
    "dropped": 0
  },
  "credits_used": 5,
  "request_id": "req_example000000",
  "cached": false,
  "pagination": {
    "next_cursor": "sc.eyJ2IjoyLCJjIjoic2MyLmV5SnpJam9pYkNJc0ltTWlPaUpzWnpFdVpYbEtkRWxxYjJsVlZscEhVa2RGZDJSSWJFOVdSMUpoVlRCYWFrNVdWblJYYkdSWVVrVTFVbFV4VWxaTk1sSllZa1pHVWxaWVVrUlZhMlJyWW1zMWMySkliRk5TYldRMFZqSTFkMVZyTlZkVWJtUnFZbFJSZDFWWWNFTmpSbGwzWkVoT2EwMXFWWGxWYTJoelZrZEtjMDlXYUZWTk1GcGhXVEZXYTFKV2JEWlRia3BUVmtaYVdsZHNhRWROTVVaVldrZG9XbUpZVWxkWmJURkxZa1UxY1dGRVdsaFZWREE1U1dsM2FXTkRTVFpOVTNkcFlWTkpObGN4TVRraWZRIiwiZSI6Imluc3RhZ3JhbS9sb2NhdGlvbi9wb3N0cyIsInAiOiJjdXJzb3IifQ",
    "has_more": true,
    "page_size": 63
  },
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-10-02T07:29:04.798Z",
  "redacted": true
}

Live sample illustrating the unified response shape. Field values reflect the record you query.

API Details

How does the Instagram Location Posts API work?

Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.

Method

GET

Response

JSON

Why SocialCrawl

Why use SocialCrawl for Instagram Location Posts data?

We handle the complexity of Instagram data extraction so you can focus on building. Unified schema, AI enrichment, and zero platform logic in your code.

Developer First

How do you scrape social media data in seconds?

The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.

One schema, every platform

Query 69 platforms with identical response structures. Write your integration once.

Computed fields, not just scraped

When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.

See your data before you code

Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.

import requests

response = requests.get(
    'https://www.socialcrawl.dev/v1/tiktok/profile',
    params={'handle': 'charlidamelio'},
    headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 69 platforms
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
How do I get Instagram posts by location with an API?
Send a GET request to /v1/instagram/location/posts with the location_id parameter. SocialCrawl returns a JSON array of recent posts tagged at that location including shortcode, url, caption, media URLs, engagement counts, and author.
Where do I get the location_id to pass in?
Call /v1/instagram/search/location first with a place name. Pass that result's location.pk as location_id. The search response has no location.id.
How do I page through more location posts?
Each response includes a cursor. Pass it back as the cursor parameter to fetch the next, older page of posts for the same location, until has_more is false. Pages run newest first, so to collect a time window keep paging until a whole page is older than the window's start.
Can I get CDN-safe media URLs?
Yes. Add the optional safe_url parameter and the response returns proxied media URLs that stay reachable, which is useful when you cache or re-host thumbnails.
How much does the Instagram Location Posts API cost?
This is an advanced endpoint at 5 credits per page returned. New accounts get 100 free credits, so you can pull around 20 pages before topping up.

Ask AI about SocialCrawl

Ready to scrape Instagram Location Posts data?

Get your API key and start pulling Instagram data in under 60 seconds.

Start for free

🤖 AI agent or LLM? Read this page as markdown