Instagram Data API

Instagram Scraping API for Developers

Extract public Instagram data — profiles, posts, reels, hashtags, and comments — with simple REST API calls. No browser automation, no maintenance, no headaches.

Get Free API Key →

How It Works

GramScraper is an Instagram-specific extraction API. Sign up, get your API key, and start making requests. Every response returns clean JSON with the data you need.

Code Examples

# Get Instagram profile data
curl -H 'Authorization: Bearer gs_your_api_key' \
  'https://gramscraper.com/api/instagram/v1/user/by/username?username=instagram'
import requests

url = "https://gramscraper.com/api/instagram/v1/user/by/username"
headers = {"Authorization": "Bearer gs_your_api_key"}
params = {"username": "instagram"}

response = requests.get(url, headers=headers, params=params)
data = response.json()

print(f"Followers: {data['follower_count']}")
print(f"Posts: {data['media_count']}")
const response = await fetch(
  'https://gramscraper.com/api/instagram/v1/user/by/username?username=instagram',
  { headers: { 'Authorization': 'Bearer gs_your_api_key' } }
);

const data = await response.json();
console.log(`Followers: ${data.follower_count}`);
console.log(`Posts: ${data.media_count}`);

Available Endpoints

GramScraper covers the Instagram data points developers need most:

Profile Data

GET /v1/user/by/username

Bio, follower count, post count, profile picture, verification status, and more.

User Posts

GET /v1/user/medias/by/username

Recent posts with captions, likes, comments, media URLs, and timestamps.

Reels

GET /v1/user/reels/by/username

User's reels with view counts, likes, and video URLs.

Comments

GET /v2/media/comments

Post comments with usernames, timestamps, and like counts.

Hashtag Search

GET /v1/search/hashtags

Search hashtags and get top posts for any hashtag.

Media Info

GET /v2/media/info/by/url

Get detailed info for any Instagram post, reel, or story by URL.

Why Use an API Instead of Building a Scraper?

Simple, Credit-Based Pricing

No subscriptions. Credits never expire. Start free.

Free
100 credits
$29
15,400 credits
$300
320,000 credits

Frequently Asked Questions

What is an Instagram scraping API?

An Instagram scraping API lets you programmatically extract public Instagram data — profiles, posts, reels, hashtags, and comments — via simple HTTP requests, without building or maintaining your own scraper.

Do I need to build my own scraper?

No. GramScraper handles the infrastructure. You make API calls and get structured JSON back. No proxies, no browsers, no maintenance.

What data can I extract?

Public profiles, posts, reels, stories, highlights, tagged posts, hashtag data, comments, and location-based content. Only publicly available information is accessible.

How much does it cost?

Start with 100 free credits (no credit card required). Paid packs start at $29 for 15,400 credits. Credits never expire — use them whenever you need.

Start Scraping Instagram Data Today

100 free credits. No credit card required. Get your API key in 30 seconds.

Get Free API Key →