> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram

> Instagram data via Apify.

Instagram data via Apify. Search hashtags, profiles, and places, or scrape posts, comments, and reels from Instagram URLs, with engagement metrics and media URLs.

1 endpoint available through Lava's AI Gateway. See the [Instagram API docs](https://docs.apify.com/api/v2) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Search Instagram for hashtags, profiles, or places by keyword, or scrape posts, comments, reels, and details from Instagram URLs. Returns post captions, engagement metrics (likes, comments), media URLs, author info, hashtags, and location data. 219K users, 4.7 stars. \$2.30 per 1,000 results.

**POST** `https://api.apify.com/v2/acts/apify~instagram-scraper/run-sync-get-dataset-items` — \$0.0575 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.apify.com/v2/acts/apify~instagram-scraper/run-sync-get-dataset-items', {
      body: {
    "directUrls": [
      "https://www.instagram.com/explore/tags/motivation/"
    ],
    "resultsType": "posts",
    "resultsLimit": 25
    },
    });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.apify.com%2Fv2%2Facts%2Fapify~instagram-scraper%2Frun-sync-get-dataset-items" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"directUrls":["https://www.instagram.com/explore/tags/motivation/"],"resultsType":"posts","resultsLimit":25}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
