{"id":49291070,"url":"https://github.com/subzeroid/insta-dl","last_synced_at":"2026-04-30T04:00:36.904Z","repository":{"id":353472661,"uuid":"1219461456","full_name":"subzeroid/insta-dl","owner":"subzeroid","description":"Async Instagram downloader CLI — profiles, posts, reels, stories, highlights, hashtags, comments. Pluggable backends (HikerAPI / aiograpi).","archived":false,"fork":false,"pushed_at":"2026-04-26T00:09:58.000Z","size":481,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-26T00:36:38.634Z","etag":null,"topics":["aiograpi","cli","downloader","hikerapi","instagram","instagram-client","instagram-downloader","instagram-feed","instagram-metadata","instagram-photos","instagram-scraper","instagram-stories","instagram-user-photos","instagrapi","instaloader","osint","osint-python","pictures","python","videos"],"latest_commit_sha":null,"homepage":"https://subzeroid.github.io/insta-dl/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subzeroid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-04-23T22:43:59.000Z","updated_at":"2026-04-26T00:09:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/subzeroid/insta-dl","commit_stats":null,"previous_names":["subzeroid/insta-dl"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/subzeroid/insta-dl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Finsta-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Finsta-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Finsta-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Finsta-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subzeroid","download_url":"https://codeload.github.com/subzeroid/insta-dl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Finsta-dl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aiograpi","cli","downloader","hikerapi","instagram","instagram-client","instagram-downloader","instagram-feed","instagram-metadata","instagram-photos","instagram-scraper","instagram-stories","instagram-user-photos","instagrapi","instaloader","osint","osint-python","pictures","python","videos"],"created_at":"2026-04-26T00:04:32.051Z","updated_at":"2026-04-28T02:00:36.089Z","avatar_url":"https://github.com/subzeroid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# insta-dl\n\n[![PyPI](https://img.shields.io/pypi/v/instagram-dl.svg)](https://pypi.org/project/instagram-dl/)\n[![Python](https://img.shields.io/pypi/pyversions/instagram-dl.svg)](https://pypi.org/project/instagram-dl/)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![Tests](https://github.com/subzeroid/insta-dl/actions/workflows/tests.yml/badge.svg)](https://github.com/subzeroid/insta-dl/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/gh/subzeroid/insta-dl/branch/main/graph/badge.svg)](https://codecov.io/gh/subzeroid/insta-dl)\n[![Docs](https://img.shields.io/badge/docs-subzeroid.github.io-blue)](https://subzeroid.github.io/insta-dl/)\n\nAsync command-line downloader for Instagram. Profiles, posts, reels, stories, highlights, hashtags, and comments — saved to disk with the original timestamps preserved.\n\n![demo](docs/demo.gif)\n\n```bash\npip install instagram-dl           # pip\npipx install instagram-dl          # or as an isolated CLI app\n\nexport HIKERAPI_TOKEN=your_token\ninsta-dl instagram\n```\n\nOr run it without installing Python at all:\n\n```bash\ndocker run --rm -v \"$PWD/out:/data\" -e HIKERAPI_TOKEN \\\n    ghcr.io/subzeroid/insta-dl:latest instagram\n```\n\nGrab a free HikerAPI token at [hikerapi.com](https://hikerapi.com/p/18j4ib4j) — **first 100 requests are free**, no credit card. One request ≈ one post or one page of a feed.\n\n**insta-dl**\n\n- downloads **profiles, hashtags, single posts, reels, stories, highlights, and comments**,\n- preserves the **original `taken_at` timestamp** as file mtime so Photos/Finder sort correctly,\n- writes a **JSON metadata sidecar** next to every post (caption, like count, location, owner),\n- supports **incremental updates** with `--fast-update` and `--latest-stamps`,\n- accepts profile names, `#hashtag`, post shortcodes, and full `instagram.com` URLs,\n- ships **two pluggable backends**: a paid commercial API (HikerAPI, no Instagram session, no ban risk) out of the box, and an opt-in private-API library via `pip install 'instagram-dl[aiograpi]'` (your own login).\n\n```text\ninsta-dl [--backend hiker|aiograpi]\n         [--dest DIR] [--fast-update] [--latest-stamps FILE]\n         [--stories] [--highlights] [--comments]\n         profile | \"#hashtag\" | post:SHORTCODE | https://instagram.com/...\n```\n\n📖 **[Full documentation](https://subzeroid.github.io/insta-dl/)** — installation, CLI reference, backends comparison, Python API, troubleshooting.\n\n## How to download an Instagram profile\n\n```bash\nexport HIKERAPI_TOKEN=$(cat ~/.config/hikerapi-token)\ninsta-dl --dest ./out instagram\n```\n\nThis grabs every post, names files `2026-04-21_16-04-15_DXZlTiKEpxw.mp4`, and writes a metadata sidecar next to each.\n\n## How to keep a local archive in sync\n\n```bash\ninsta-dl --fast-update --latest-stamps ./stamps.ini --dest ./out instagram\n```\n\n`--fast-update` stops at the first post that's already on disk; `--latest-stamps` records the newest `taken_at` per profile so even a deleted local copy can be resumed.\n\n## How to download a single post or reel\n\n```bash\ninsta-dl post:DXZlTiKEpxw\ninsta-dl https://www.instagram.com/p/DXZlTiKEpxw/\ninsta-dl https://www.instagram.com/reel/DXZlTiKEpxw/\n```\n\n## How to download a hashtag\n\n```bash\ninsta-dl '#sunset' --dest ./out\n```\n\nPulls the recent feed for the tag into `./out/#sunset/`.\n\n## How to grab stories and highlights\n\n```bash\ninsta-dl --stories --highlights --dest ./out instagram\n```\n\nStories and highlights land under `\u003cdest\u003e/\u003cusername\u003e/stories/` and `\u003cdest\u003e/\u003cusername\u003e/highlights/\u003cid\u003e_\u003ctitle\u003e/`.\n\n## How to save comments alongside posts\n\n```bash\ninsta-dl --comments --dest ./out instagram\n```\n\nEach post gets a `..._comments.json` sidecar streamed to disk.\n\n## Backends\n\nPick the one that matches how you want to authenticate.\n\n| | **hiker** (default) | **aiograpi** |\n|---|---|---|\n| Auth | API token | Instagram login + 2FA |\n| Cost | Paid per request, [**100 free requests**](https://hikerapi.com/p/18j4ib4j) to start | Free |\n| Account ban risk | None — no Instagram session involved | Real, mitigated by session reuse |\n| Stability vs. Instagram changes | High (managed proxy) | Brittle |\n| Private profiles | What HikerAPI exposes | Anything your account can see |\n\nSwitch with `--backend`:\n\n```bash\ninsta-dl --backend hiker --hiker-token TOKEN instagram\npip install 'instagram-dl[aiograpi]'   # aiograpi's deps are opt-in\ninsta-dl --backend aiograpi --login USER --password PASS --session ./session.json instagram\n```\n\nDetailed comparison and auth setup: see the [backends documentation](https://subzeroid.github.io/insta-dl/backends/). For how insta-dl stacks up against instaloader, yt-dlp, and gallery-dl, see [compared to alternatives](https://subzeroid.github.io/insta-dl/comparison/).\n\n## Output layout\n\n```\n\u003cdest\u003e/\u003cusername\u003e/\n    2026-04-21_16-04-15_DXZlTiKEpxw.mp4\n    2026-04-21_16-04-15_DXZlTiKEpxw.json           # metadata sidecar\n    2026-04-21_16-04-15_DXZlTiKEpxw_comments.json  # with --comments\n    stories/\n        2026-04-21_18-30-00_178290.jpg             # with --stories\n    highlights/\n        17991_Travel/                              # with --highlights\n            2025-10-12_19-20-30_4011.jpg\n```\n\nHashtag downloads land under `\u003cdest\u003e/#\u003ctag\u003e/`; single-post downloads use the post owner's username (or `owner_pk` fallback).\n\n## Status\n\nThis is **alpha**. Both backends (hiker, aiograpi) are functional end-to-end (278 tests, 96% coverage). aiograpi ships behind the `[aiograpi]` extra so its Rust deps don't bloat default installs. CLI flags and output layout are stable; Python API may still shift.\n\nWhat's not yet implemented:\n\n- `:feed` and `:saved` targets (account-bound, would need session reuse from aiograpi backend)\n\nSee the [changelog](CHANGELOG.md) for what landed when, and [contributing](CONTRIBUTING.md) for how to help.\n\n## Contributing\n\nBug reports, fixes, and backend implementations welcome. Start with [CONTRIBUTING.md](CONTRIBUTING.md). Tests: `pip install -e .[dev] \u0026\u0026 pytest`.\n\n## Disclaimer\n\ninsta-dl is not affiliated with, authorized, maintained, or endorsed by Instagram or Meta. Use at your own risk and respect the rights of content creators. Licensed under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzeroid%2Finsta-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubzeroid%2Finsta-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzeroid%2Finsta-dl/lists"}