{"id":31980108,"url":"https://github.com/instagram-automations/instagram-scraper-api","last_synced_at":"2025-10-14T23:27:15.621Z","repository":{"id":318739650,"uuid":"1075532322","full_name":"Instagram-Automations/instagram-scraper-api","owner":"Instagram-Automations","description":"instagram scraper api toolkit","archived":false,"fork":false,"pushed_at":"2025-10-13T16:26:45.000Z","size":1166,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-14T19:04:41.812Z","etag":null,"topics":["anti-detect","api","automation","captcha","cli","docker","graphql","http","httpx","instagram","instagram-scraper-api","nodejs","playwright","proxy","puppeteer","python","rest","scraper"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Instagram-Automations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-13T16:19:35.000Z","updated_at":"2025-10-13T16:26:48.000Z","dependencies_parsed_at":"2025-10-14T19:04:44.452Z","dependency_job_id":"9a930dcc-fb31-4ea5-a729-783b9fc9c4e9","html_url":"https://github.com/Instagram-Automations/instagram-scraper-api","commit_stats":null,"previous_names":["instagram-automations/instagram-scraper-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Instagram-Automations/instagram-scraper-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instagram-Automations%2Finstagram-scraper-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instagram-Automations%2Finstagram-scraper-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instagram-Automations%2Finstagram-scraper-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instagram-Automations%2Finstagram-scraper-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Instagram-Automations","download_url":"https://codeload.github.com/Instagram-Automations/instagram-scraper-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instagram-Automations%2Finstagram-scraper-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279024785,"owners_count":26087833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anti-detect","api","automation","captcha","cli","docker","graphql","http","httpx","instagram","instagram-scraper-api","nodejs","playwright","proxy","puppeteer","python","rest","scraper"],"created_at":"2025-10-14T23:27:14.503Z","updated_at":"2025-10-14T23:27:15.616Z","avatar_url":"https://github.com/Instagram-Automations.png","language":null,"readme":"# instagram scraper api\n\nA plug-and-play toolkit to build your own **Instagram Scraping API** with rotating proxies, CAPTCHA handling, and rate-limit friendly strategies. Perfect for analysts, growth teams, and SaaS builders who need reliable IG data pipelines.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://t.me/devpilot1\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Chat%20on-Telegram-2CA5E0?style=for-the-badge\u0026logo=telegram\u0026logoColor=white\" alt=\"Telegram\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/vBu9huKBvy\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Join-Discord-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white\" alt=\"Discord\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://wa.me/447723343390?text=Hi%20Zeeshan%2C%20I%27m%20interested%20in%20automation.\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Chat-WhatsApp-25D366?style=for-the-badge\u0026logo=whatsapp\u0026logoColor=white\" alt=\"WhatsApp\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"mailto:support@appilot.app\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Email-support@appilot.app-EA4335?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\" alt=\"Gmail\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eFor discussion, queries, and freelance work — reach out 👆\u003c/strong\u003e\n\u003c/p\u003e\n\n---\n\n##  Introduction\n\u003e This project provides a ready-to-run **REST API** that scrapes public Instagram data (profiles, posts, reels, comments, hashtags) using headless browsers and/or HTTP clients. It focuses on stability, safety, and scale with rotating proxies, session pools, and optional CAPTCHA solving integration.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"instagram-scraper-api.png\" alt=\"instagram-scraper-api.png\" width=\"90%\"\u003e\n\u003c/p\u003e\n\n###  Key Benefits\n1. Saves time and automates setup.  \n2. Scalable for multiple use cases.  \n3. Safer with anti-detect and proxy logic.  \n\n---\n\n## Features (Table)\n\n| Feature | Details |\n|---|---|\n| REST Endpoints | `/v1/profile`, `/v1/posts`, `/v1/post/{shortcode}`, `/v1/hashtag/{tag}`, `/v1/comments/{shortcode}` |\n| Dual Engines | **Playwright/Puppeteer** (browser) + **HTTP clients** (requests/httpx) |\n| Proxy Rotation | Per-request \u0026 sticky sessions, residential/MNO proxy ready |\n| CAPTCHA Handling | Pluggable solvers (2Captcha/CapMonster/API hook) |\n| Session Management | Cookie jars, device fingerprints, randomized headers/delays |\n| Rate Limiting | Token bucket, concurrency caps, backoff \u0026 retry |\n| Exporters | JSONL/CSV/NDJSON + webhooks/Kafka-ready stubs |\n| Dockerized | Single-command local or server deploy |\n\n---\n\n##  Use Cases\n- Market \u0026 competitor analysis (content cadence, engagement rates)  \n- Influencer discovery (hashtag/topic mining, audience metrics)  \n- Social listening (keyword/hashtag monitoring, comment sentiment)  \n- Dataset building for ML/NLP (public captions, comments, metadata)  \n\n---\n\n##  FAQs\n\n**Q:** What is an Instagram Scraping API?  \n**A:** It’s a server that exposes endpoints to fetch public Instagram data (profiles, posts, reels, comments, hashtags) by performing automated browsing or HTTP requests under the hood, then returning normalized JSON.\n\n**Q:** What kind of data can be extracted?  \n**A:** Public profile metadata (username, bio, followers/following counts), posts/reels (shortcode, captions, media URLs, like/comment counts, timestamps), comments (text, author, time), hashtags (top/recent posts), and lightweight engagement metrics—subject to Instagram’s terms and your jurisdiction’s laws.\n\n**Q:** How do Instagram scraping APIs handle proxies and CAPTCHAs?  \n**A:** Proxies are rotated per request or per session (sticky) to distribute traffic and reduce blocks. User-agents, headers, and delays are randomized to look human. When CAPTCHAs appear, the API routes the challenge to a solver service (e.g., 2Captcha/CapMonster) via a configurable adapter and retries with the solved token.\n\n---\n\n## Results\n----------------------------------- \n\u003e 10x faster posting schedules  \n\u003e 80% engagement increase on group campaigns  \n\u003e Fully automated lead response system  \n\n##  Performance Metrics\n-----------------------------------\nAverage Performance Benchmarks:  \n- **Speed:** 2x faster than manual posting  \n- **Stability:** 99.2% uptime  \n- **Ban Rate:** \u003c0.5% with safe automation mode  \n- **Throughput:** 100+ posts/hour per session\n\n---\n\n##Do you have a customize project for us ?\nContact Us\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://mail.google.com/mail/u/?authuser=ahmadzee26@gmail.com\"\u003e\n    \u003cimg alt=\"Gmail\" width=\"30px\" src=\"https://edent.github.io/SuperTinyIcons/images/svg/gmail.svg\" /\u003e\n    \u003ccode\u003esupport@appilot.app\u003c/code\u003e\n  \u003c/a\u003e\n  \u003cspan\u003e ┃ \u003c/span\u003e\n  \u003ca href=\"https://t.me/devpilot1\"\u003e\n    \u003cimg alt=\"Telegram\" width=\"30px\" src=\"https://edent.github.io/SuperTinyIcons/images/svg/telegram.svg\" /\u003e\n    \u003ccode\u003epilot\u003c/code\u003e\n  \u003c/a\u003e\n  \u003cspan\u003e ┃ \u003c/span\u003e\n  \u003ca href=\"https://discord.com\"\u003e\n    \u003cimg alt=\"Discord\" width=\"30px\" src=\"https://github.com/Zeeshanahmad4/RealEstateMate-WhatsApp-Group-Management-Bot/blob/main/discord-icon-svgrepo-com.svg\" /\u003e\n    \u003ccode\u003ezee#2655\u003c/code\u003e\n  \u003c/a\u003e\n  \u003cspan\u003e ┃ \u003c/span\u003e\n  \u003ca href=\"https://wa.me/447723343390?text=Hi%20Zeeshan%2C%20I%27m%20interested%20in%20automation.\" target=\"_blank\"\u003e\n    \u003cimg alt=\"WhatsApp\" width=\"30px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/whatsapp.svg\" /\u003e\n    \u003ccode\u003ewhatsapp\u003c/code\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n---\n\n##  Installation\n\n###  Pre-requisites\n- Node.js or Python  \n- Git  \n- Docker (optional)  \n\n###  Steps\n```bash\n# Clone the repo\ngit clone https://github.com/yourusername/instagram-scraper-api.git\ncd instagram-scraper-api\n\n# Install dependencies (Node)\nnpm install\n\n# OR Python\npip install -r requirements.txt\n\n# Setup environment\ncp .env.example .env\n# Fill in:\n# PROXY_URL=http://user:pass@host:port\n# CAPTCHA_PROVIDER=2captcha|capmonster|mock\n# CAPTCHA_API_KEY=xxxx\n# ENGINE=playwright|puppeteer|httpx|requests\n\n# Run (Node)\nnpm start\n\n# OR Python\npython main.py\n```\n\n---\n\n##  Example Output\n\n**Fetch profile (REST):**\n```bash\ncurl -s \"http://localhost:8080/v1/profile?username=instagram\" | jq .\n```\n\n**Fetch post by shortcode:**\n```bash\ncurl -s \"http://localhost:8080/v1/post/CxYZaBC1234\" | jq .\n```\n\n**Fetch comments with pagination:**\n```bash\ncurl -G \"http://localhost:8080/v1/comments/CxYZaBC1234\" --data-urlencode \"limit=50\" | jq .\n```\n\n---\n\n##  License\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstagram-automations%2Finstagram-scraper-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstagram-automations%2Finstagram-scraper-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstagram-automations%2Finstagram-scraper-api/lists"}