Instagram Posts
Get the posts of Instagram profiles or hashtags: post link, date, type, caption, likes, comments, location, image or video link, and the account behind each post with its followers. Send profiles, hashtags, or both.
$0.0015 per post
POST /api/v1/scrape/instagram-postsParameters
| Name | Type | Required | Description |
|---|---|---|---|
profiles | string[] | Optional | Instagram usernames or profile links (up to 200)Example: ["natgeo", "https://www.instagram.com/nike/"] |
hashtags | string[] | Optional | Hashtags, with or without the # (up to 200)Example: ["coffeeshop", "roofing"] |
maxResults | number | Optional | The most posts to return in all (default 100, up to 5,000)Default: 100Example: 100 |
Examples
Recent posts of a few profiles
curl -X POST https://app.scrapercity.com/api/v1/scrape/instagram-posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"profiles": [
"natgeo",
"nike"
],
"maxResults": 100
}'Posts with a hashtag
curl -X POST https://app.scrapercity.com/api/v1/scrape/instagram-posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hashtags": [
"coffeeshop"
],
"maxResults": 200
}'Check status and download
curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
-H "Authorization: Bearer YOUR_API_KEY"
# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o instagram-posts.csvUse Cases
- •See what competitors post and which posts get the most engagement
- •Find brands and creators posting with a hashtag in your market
- •Collect post links to pull their comments with Instagram Comments
Best Practices
- •Charged per post returned; a search is charged at least what it cost to run, shown as a minimum charge
- •Most searches finish in 1-5 minutes
- •Profiles that are private or not found return no posts and are not charged
- •CSV columns: source, post_url, posted_at, type, caption, likes, comments, username, full_name, followers, location, image_url, video_url
Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.
Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.