Home
cd ../playbooks
Marketing & ContentBeginner

Instagram Post Downloader

Download Instagram posts, carousels, and Reel covers at full CDN resolution — no screenshots, no compression — with carousel slides stitched into a single PDF and support for batch downloading multiple URLs at once.

5 minutes
By mohitagw15856Source
#instagram#social-media#download#carousel#competitor-research#content-archive#pdf

You screenshot an Instagram carousel for a competitor swipe file and get six blurry, cropped, watermark-adjacent images instead of the crisp originals — because a screenshot is a photo of a photo, and there's a full-resolution version sitting on Instagram's CDN the whole time.

Who it's for: social media managers building competitor swipe files, marketers archiving campaign creative for a portfolio, researchers documenting Instagram content for analysis, content creators saving their own posts as a permanent local archive, anyone tired of blurry screenshots when the actual high-res image is one CDN request away

Example

"Download these 3 Instagram posts" → Each post saved to its own folder named from the caption, single images pulled at full resolution, a 4-slide carousel saved as individual numbered images plus one stitched carousel.pdf, a metadata.txt recording the source URL and fetch timestamp for each, and a completion summary listing exactly what was saved and what (if anything) failed

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Instagram Post Downloader

## Your Role

You download Instagram posts at full CDN resolution — single images, carousels, and Reel cover images — with no screenshots and no compression loss. For carousels, you produce individual slide files plus a single stitched PDF. You support batch downloading multiple URLs in one run.

---

## Prerequisite: Domain Allowlist

Before this can fetch any media, add Instagram's CDN domain to Claude Code's allowlist:

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Pulls Instagram posts directly from the CDN at full resolution instead of relying on a screenshot — single images, multi-slide carousels (saved as individual files plus one stitched PDF), and Reel cover thumbnails. Handles a batch of URLs in one run, with a completion summary showing exactly what succeeded and what didn't.


Quick Start

Step 1: Create a Project Folder

mkdir instagram-downloads && cd instagram-downloads

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Add the Domain to Your Allowlist

In Claude Code: Settings → Capabilities → Domain allowlist → Add *.cdninstagram.com — required before any fetch will succeed.

Step 4: Download a Post

claude

Then paste one or more Instagram URLs and ask it to download them.


Output Structure

instagram-downloads/
├── single_post_caption/
│   ├── image.jpg
│   └── metadata.txt
└── carousel_post_caption/
    ├── slide_01.jpg
    ├── slide_02.jpg
    ├── carousel.pdf
    └── metadata.txt

Every post gets a metadata.txt recording the source URL, shortcode, type, caption, username, and fetch timestamp — so a download is always traceable back to its origin.

Tips & Best Practices

  • Set up the domain allowlist before your first attempt. Without *.cdninstagram.com added, every fetch fails with a permission error that looks like a bug but is actually just the missing allowlist entry.
  • Batch your URLs in one request rather than one at a time. One comma-separated or newline-separated list produces one consolidated completion summary instead of several disconnected runs.
  • Instagram's API surface changes often — expect a fallback chain, not a single fixed endpoint. The template handles this by trying a JSON endpoint first and falling back to parsing embedded page data if that fails.
  • Check the completion summary's "Skipped" section, not just the success count. A batch that processed 3 URLs and saved 2 files should tell you exactly which one failed and why, not just report "2 files saved" and leave you to notice the discrepancy.

Limitations

  • Reel video download is out of scope — this handles the Reel cover/thumbnail image only, not the video file itself
  • Depends on Instagram's current page structure for extraction; a platform-side change can require adjusting the fetch approach
  • Requires the CDN domain to be explicitly allowlisted in Claude Code's capability settings — this is a one-time setup step, not automatic

$Related Playbooks

Marketing & Content

GEO Audit: Score Your Site for AI Search Citation

A full Generative Engine Optimization audit that crawls a site, scores it 0-100 across six weighted categories, and returns a prioritized 30-day fix list

10 minutes
Intermediate
Marketing & Content

AI Citability Scoring: Make Your Pages Quotable

Score any page 0-100 on how likely ChatGPT, Perplexity, and Gemini are to quote it, with block-level rewrites for the passages that score worst

10 minutes
Intermediate
Marketing & Content

GEO Content Quality: Score Your Pages on E-E-A-T

Grade any page on Experience, Expertise, Authoritativeness, and Trustworthiness, then get the specific rewrites that make AI engines trust it enough to cite

10 minutes
Intermediate
Marketing & Content

GEO Platform Optimizer: Tune for Each AI Engine Separately

Five separate audits for Google AI Overviews, ChatGPT, Perplexity, Gemini, and Bing Copilot, each with its own checklist and 0-100 rubric

10 minutes
Intermediate
Marketing & Content

Form CRO

Optimize lead capture, contact, demo, application, and survey forms for maximum completion rates.

10 minutes
Intermediate
Marketing & Content

Free Tool Strategy

Plan and evaluate free tools (calculators, generators, graders) as a marketing channel for leads, SEO, and brand.

15 minutes
Intermediate
Marketing & Content

First 100 Customers Playbook

A concentric-circles sales playbook for getting to 100 paying customers one conversation at a time — friends, community, then cold outreach. No launch, no ads, no virality.

10 minutes
Beginner
Marketing & Content

Focus Group

Run synthetic focus groups.

15 minutes
Intermediate
Marketing & Content

Follower Research Briefing

Get a daily brief on your newest followers — who's worth engaging with, what they care about, and a personalized conversation starter for each.

10 minutes
Intermediate
Marketing & Content

Funnel Architect

Design marketing funnels.

15 minutes
Intermediate
Marketing & Content

Funnel Audit

Audit funnel performance.

15 minutes
Intermediate
Marketing & Content

Geo Monitor

Monitor brand AI visibility.

15 minutes
Intermediate

Browse all Marketing & Content playbooks →