# My Instagram account keeps getting temporarily locked when scraping with Instaloader: what can I do?

Instagram locks accounts that it sees making automated requests: in Instaloader issue 828 (October 2020, 48 comments) a script running every 5 minutes got a 400 Bad Request and a "temporarily locked" page forcing a password change, twice in two days, and slowing to 7 minutes only delayed the next lock. In 2026 (issue 2681) users say even checking a few profiles' Stories twice a day gets flagged within 24 hours, VPN or not. XTikAPI reads public profiles and posts with no Instagram login, from $0.002 a call.

Updated 2026-11-23

## What users saw

| When | Setup | Result |
| --- | --- | --- |
| Oct 2020 (828) | Script every 5 min on a list of profiles | 400 Bad Request, account temporarily locked, forced password change; locked again the next night |
| Oct 2020 (828) | Same, every 7 min | "Only delayed when Instagram would block me again" |
| Oct 2020 (828) | Several users | "Burning accounts after accounts (older and new ones)" |
| Mar 2026 (2681) | Random Stories checks around noon with pauses | "Gets detected very reliably" |
| Mar 2026 (2681) | Followers/following of one account, morning and evening, VPN, latest release | Flagged within 24 hours |

The lock is tied to the logged-in account, so the fix people want, "run it without using my account", is exactly what a login-based tool can't do.

## Public data without your account

1. Profile: `instagram.accounts.detail` with `id` (username) or `user_id`.
2. Posts: `instagram.posts.list` with the user ID, `end_cursor` for more; Reels: `instagram.reels.list`.
3. A post and its comments: `instagram.posts.detail` and `instagram.comments.list` with the post `url`.

Cost: 200 profiles, latest posts daily for 30 days = 6,000 calls × $0.002 = $12. Stories are not in the catalog.

## Why XTikAPI

- XTikAPI reads Instagram with 9 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 8 recorded live Instagram calls (2026-11-18), raw platform JSON is ~280k tokens vs ~39k via XTikAPI REST (86.1% fewer) and ~29k via MCP (89.7% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (8 of 9 for Instagram).
- One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [Instagram account details API](https://xtikapi.com/apis/instagram/accounts/detail) ($0.004 a call): An Instagram account profile.
- [Instagram post list API](https://xtikapi.com/apis/instagram/posts/list) ($0.002 a call): An Instagram account's posts.
- [Instagram Reels list API](https://xtikapi.com/apis/instagram/reels/list) ($0.002 a call): An Instagram account's Reels.
- [Instagram comments API](https://xtikapi.com/apis/instagram/comments/list) ($0.004 a call): A page of comments on an Instagram post.

## More about Instagram

- [Instagram API](https://xtikapi.com/apis/instagram)
- [Agent Reach Instagram profile and followers return HTTP 400: why?](https://xtikapi.com/answers/agent-reach-instagram-http-400)
- [Instaloader errors (401/429, hashtag 404, get_reels empty, get_comments fail): how do I fix them?](https://xtikapi.com/answers/instaloader-errors-and-fixes)
- [Can the Instagram Graph API get another account's followers and posts?](https://xtikapi.com/answers/instagram-graph-api-other-accounts-business-discovery)
- [How do I get an Instagram user ID from a username?](https://xtikapi.com/answers/instagram-username-to-user-id)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-23.

- [Instaloader issue #828 (Instagram temporary locked)](https://github.com/instaloader/instaloader/issues/828)
- [Instaloader issue #2681 (does it work long-term without bans?)](https://github.com/instaloader/instaloader/issues/2681)

## Questions

### Does a longer interval help?

In issue 828 going from 5 to 7 minutes only postponed the next lock.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/instagram-account-temporarily-locked) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
