An instagrapi alternative with no logins
instagrapi is a great library until your account hits ChallengeRequired, LoginRequired, or a ban. If you only need to read public data, swap the session files and proxy pool for one API key.
50 free credits on signup · no card required
curl "https://api.profilequery.com/v1/profile?handle=nike" \
-H "Authorization: Bearer $PROFILEQUERY_KEY"What you get
Structured JSON, not raw HTML
- ▹No Instagram account, so no ChallengeRequired or LoginRequired errors
- ▹No session.json, device settings or proxy rotation
- ▹Same data: user info, medias, followers, comments, stories, hashtags
- ▹Plain requests calls that work in serverless functions
- ▹We absorb Instagram changes, so there's no library version to chase
- ▹Failed calls aren't billed
Migration
instagrapi → hosted API
Method mapping
- ▹cl.user_info_by_username(u) → GET /v1/profile?handle=u
- ▹cl.user_medias(id) → GET /v1/profile/posts?handle=u
- ▹cl.user_followers(id) → GET /v1/profile/followers?handle=u
- ▹cl.media_comments(pk) → GET /v1/post/comments?post=<url>
- ▹cl.user_stories(id) → GET /v1/profile/stories?handle=u
- ▹cl.hashtag_medias_top(tag) → GET /v1/hashtag/top?tag=<tag>
# before
from instagrapi import Client
cl = Client(); cl.load_settings("session.json"); cl.login(USER, PASS)
user = cl.user_info_by_username("nike")
# after
import os, requests
user = requests.get(
"https://api.profilequery.com/v1/profile",
params={"handle": "nike"},
headers={"Authorization": f"Bearer {os.environ['PROFILEQUERY_KEY']}"},
).json()["data"]When to keep instagrapi
If you need to post, send DMs, follow or like, keep using a logged-in client. This API is read-only public data on purpose.
Endpoints
Every endpoint behind this page
Get profile
1 creditFull public profile for an account.
GET /v1/profileGet posts
2 creditsRecent posts (feed) for an account.
GET /v1/profile/postsGet followers
2 creditsA page of accounts that follow this account.
GET /v1/profile/followersGet comments
2 creditsComments on a post or reel.
GET /v1/post/commentsExample response
What comes back
{
"data": {
"id": "13460080",
"username": "nike",
"full_name": "Nike",
"biography": "Just Do It.",
"is_verified": true,
"is_private": false,
"is_business": true,
"category": null,
"followers": 291952375,
"following": 264,
"posts": 1657,
"external_url": "http://empli.fi/nike",
"profile_pic_url": "https://instagram.com/.../nike.jpg",
"public_email": null,
"public_phone_number": null
}
}Response fields
Fields returned by GET /v1/profile
| Field | Description |
|---|---|
| id | Numeric account id (stable even if the username changes). |
| username | The account's @handle. |
| full_name | Display name shown on the profile. |
| biography | The profile's bio text. |
| is_verified | Whether the account has a verified badge. |
| is_private | Whether the account is private. |
| is_business | Whether this is a business/professional account. |
| category | Business category label when set (e.g. "Sportswear"); null otherwise. |
| followers | Number of accounts following this account. |
| following | Number of accounts this account follows. |
| posts | Total number of posts on the profile. |
| external_url | The clickable link in the bio, if any. |
| profile_pic_url | URL of the account's profile picture. |
| public_email | Public contact email, if the account exposes one; null otherwise. |
| public_phone_number | Public contact phone number, if exposed; null otherwise. |
No login required
Nothing to authenticate but your API key
No OAuth flow
One static API key in an Authorization: Bearer header. No redirect, no refresh tokens, no expiring session.
No Meta app review
Never touch Meta's developer platform, Business Verification, or a connected Facebook Page. Sign up directly with Profile Query.
Public data only
Every endpoint returns only what's already visible on Instagram without logging in. Private accounts are never accessible.
Pricing
1 credit per request. Credits start at $8.00 per 1,000 and drop to $6.00 per 1,000 at volume — no subscription, no minimums. New accounts get 50 free credits.
See full pricingFAQ
An instagrapi alternative with no logins, explained
Why does instagrapi keep asking for a challenge?
Instagram flags logins from servers, new devices and unusual patterns. Every logged-in scraper hits this eventually. A hosted API avoids it because you never log in.
Is this an Instaloader alternative too?
Yes, for reading profiles, posts, comments and stories. You get JSON back instead of downloaded folders, and no login is needed.
How much does it cost?
Most lookups are 1–2 credits. Credits start at $8.00 per 1,000, and new accounts get 50 free.
Related
More ways to pull Instagram data
Start pulling with no logins data
Create a free key and make your first request in under a minute — 50 credits on us.