Back to Home

Instagram API Tools

Comprehensive Instagram API toolkit for content management and engagement analytics

Overview

The Instagram Data API v2.1.0 is an independent API designed for retrieving raw Instagram data without dependency on Telegram. Similar to BoxAPI, it provides comprehensive access to Instagram profiles, posts, stories, and highlights through simple GET requests with no authentication required.

API Configuration

Base URL: https://api.amirrezax.site/i/
Version: 2.1.0
Authentication: No authentication required
Rate Limits: No rate limits (currently disabled)

Key Features

  • No authentication required - Easy access without API keys
  • Simple GET requests with URL parameters
  • CORS enabled for all origins
  • Standard JSON responses
  • Interactive documentation available

API Endpoints

User Profile

GET /user/profile/{username}
Retrieve comprehensive user profile information including follower count, bio, and verification status.

Post Information

GET /media/info?url={instagram_url}
Get detailed post data including media URLs, captions, engagement metrics, and owner information.

User Stories

GET /user/stories/{username}
Access active user stories with media URLs and timestamps for real-time content.

Highlights

GET /user/highlights/{username}
Retrieve user highlights list and individual highlight stories with cover images.

Highlight Stories

GET /highlight/stories/{highlight_id}
Get stories from a specific highlight using the highlight ID.

Story by ID

GET /{username}/stories/{story_id}
Get specific story data by username and story ID with media URLs and timestamps.

Usage Examples

cURL

# Get user profile
curl "https://api.amirrezax.site/i/user/profile/instagram"

# Get media information
curl "https://api.amirrezax.site/i/media/info?url=https://www.instagram.com/p/ABC123/"

# Get user stories
curl "https://api.amirrezax.site/i/user/stories/instagram"

# Get user highlights
curl "https://api.amirrezax.site/i/user/highlights/instagram"

# Get highlight stories
curl "https://api.amirrezax.site/i/highlight/stories/highlight_123"

# Get story by ID
curl "https://api.amirrezax.site/i/instagram/stories/3724333373289734525"

# Parse Instagram URL
curl "https://api.amirrezax.site/i/url/https://www.instagram.com/p/ABC123/"

JavaScript

const API_BASE_URL = 'https://api.amirrezax.site/i/';

// Get media information
const response = await fetch(`${API_BASE_URL}/media/info?url=https://www.instagram.com/p/ABC123/`);
const data = await response.json();
console.log(data);

// Get user profile
const profileResponse = await fetch(`${API_BASE_URL}/user/profile/instagram`);
const profileData = await profileResponse.json();
console.log(profileData);

// Get user stories
const storiesResponse = await fetch(`${API_BASE_URL}/user/stories/instagram`);
const storiesData = await storiesResponse.json();
console.log(storiesData);

// Get highlight stories
const highlightStoriesResponse = await fetch(`${API_BASE_URL}/highlight/stories/highlight_123`);
const highlightStoriesData = await highlightStoriesResponse.json();
console.log(highlightStoriesData);

// Get story by ID
const storyResponse = await fetch(`${API_BASE_URL}/instagram/stories/3724333373289734525`);
const storyData = await storyResponse.json();
console.log(storyData);

// Parse Instagram URL
const urlResponse = await fetch(`${API_BASE_URL}/url/https://www.instagram.com/p/ABC123/`);
const urlData = await urlResponse.json();
console.log(urlData);

Python

import requests

# Configuration
API_BASE_URL = "https://api.amirrezax.site/i/"

# Get user profile
response = requests.get(f"{API_BASE_URL}/user/profile/instagram")
profile_data = response.json()
print(profile_data)

# Get media information
url = f"{API_BASE_URL}/media/info"
params = {"url": "https://www.instagram.com/p/ABC123/"}
response = requests.get(url, params=params)
media_data = response.json()
print(media_data)

# Get user stories
response = requests.get(f"{API_BASE_URL}/user/stories/instagram")
stories_data = response.json()
print(stories_data)

# Get highlight stories
response = requests.get(f"{API_BASE_URL}/highlight/stories/highlight_123")
highlight_stories_data = response.json()
print(highlight_stories_data)

# Get story by ID
response = requests.get(f"{API_BASE_URL}/instagram/stories/3724333373289734525")
story_data = response.json()
print(story_data)

# Parse Instagram URL
url = "https://www.instagram.com/p/ABC123/"
response = requests.get(f"{API_BASE_URL}/url/{url}")
url_data = response.json()
print(url_data)

Response Format

All API responses follow a standard JSON format:

{
  "success": true,
  "message": "Profile information retrieved successfully",
  "data": {
    "id": "25025320",
    "username": "instagram",
    "full_name": "Instagram",
    "biography": "Bringing you closer to the people and things you love. ❤️",
    "profile_pic_url": "https://...",
    "is_verified": true,
    "is_private": false,
    "follower_count": 500000000,
    "following_count": 7,
    "media_count": 7500
  }
}

Error Handling

Common Error Codes

  • 404 Not Found: User or media not found
  • 422 Unprocessable Entity: Invalid parameters
  • 500 Internal Server Error: Server-side error

Error Response Format

{
  "success": false,
  "message": "User not found",
  "data": null
}

Use Cases

  • Social media monitoring and analytics platforms
  • Content aggregation and curation tools
  • Brand monitoring and competitor analysis
  • Automated content backup and archiving
  • Integration with third-party marketing tools

Interactive API Tester

Test the Instagram API directly from this page. Select an endpoint and enter the required parameters: