nanogpt-instagram

Scrape Instagram profile posts and post URLs with captions, metrics, and media via the NanoGPT API.

10|2|Updated May 6, 2026
One-click install
npx skills add https://github.com/jcrabapple/hermes-skills --skill nanogpt-instagram-jcrabapple
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nanogpt-instagram
Source: https://github.com/jcrabapple/hermes-skills/tree/main/nanogpt-instagram
Command: npx skills add https://github.com/jcrabapple/hermes-skills --skill nanogpt-instagram-jcrabapple

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Collecting Instagram post data such as captions, likes, comments, hashtags, and media URLs normally requires manual browsing or building a custom scraper that fights Instagram's anti-bot measures. This Skill provides a ready-made CLI and API workflow that fetches structured post data through NanoGPT's managed Instagram scraper using your existing NanoGPT API key. ## Core Features & Use Cases - Profile and URL Scraping: Fetch recent posts from public profiles by username or scrape specific posts by permalink, with basic (cheap) or detailed (comments, full metadata) modes. - Filtering and Cost Control: Filter posts by date, skip pinned posts, cap total spend with maxTotalChargeUsd, and save raw JSON output to a file. - Use Case: A social media analyst needs the last 10 posts from @nasa with engagement metrics and hashtags. Run the CLI with --profiles nasa --posts 10 to get formatted results including captions, likes, comments, and media URLs. ## Quick Start Set your NANOGPT_API_KEY environment variable, then ask the agent to load the nanogpt-instagram skill and scrape the last 10 posts from the nasa profile.

Frequently Asked Questions about nanogpt-instagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape Instagram posts from a public profile?▼

Use the scrape_instagram.py CLI with --profiles followed by comma-separated usernames, for example --profiles nasa,natgeo --posts 10. The script calls NanoGPT's Instagram scraper API and returns captions, likes, comments, hashtags, and media URLs.

How to scrape a specific Instagram post by URL?▼

Pass the post permalink with the --urls flag, such as --urls "https://www.instagram.com/p/ABC123/". The API accepts post URLs in the same username field used for profiles and returns full post metadata.

Can I scrape Instagram stories without login?▼

No, Instagram stories are fully gated behind authentication and every unauthenticated method fails with login_required errors. The NanoGPT scraper rejects story URLs; use screen recording or export browser cookies for yt-dlp or gallery-dl instead.

Why does the NanoGPT Instagram API return a 400 error?▼

The API rejects the old plural usernames field and the maxCharge parameter. Use the singular username field containing a list, and set maxTotalChargeUsd, which is required for every request.

What is the difference between basic and detailed Instagram scrape modes?▼

Basic mode (basicData) is cheaper and faster, returning captions, metrics, and media URLs without comments. Detailed mode (detailedData) costs more per post but includes comments and richer metadata.

Why does likesCount show -1 on some Instagram posts?▼

A likesCount of -1 means the account hides its like counts, which is not an error. Instagram allows users to hide likes, and the scraper reports -1 in that case.