Caching
A cached answer is free. You only pay for live calls.
How long an answer stays in the cache depends on how fast it changes:
| Data | Cached for |
|---|---|
| Profiles, and the first page of every list (followers, following, posts, reels, stories, highlights, comments, likers, hashtag and place posts) | 60 seconds |
Later pages of a list (when you pass a cursor), searches, hashtags, places, audio, account details, similar accounts | 15 minutes |
- Polling for new follows? Ask once a minute or less often and every answer is live. The short cache only catches retries and identical calls that arrive at the same moment.
- Later pages stay cached longer so walking one list with
cursorstays consistent from page to page. - When an identical request is already in flight, yours waits for it instead of fetching again. That answer is also free.
- The response tells you what you got: header
X-HandleHaul-Cache: HITorMISS, plusmeta.cached,meta.cache_age_secondsandmeta.credits_charged(0 for a cache hit). - Need it live right now? Add
?fresh=trueor sendCache-Control: no-cache. That call is billed as a normal live call. - Nothing from Instagram is stored longer than the cache lifetime.