AnyAPI Instagram User Posts is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.002/call, status healthy (last checked 2026-10-30, last successful call 2026-10-24).
Fetches paginated posts for a given Instagram username, returning post URLs, captions, likes, comments, and timestamps
AnyAPI instagram.user_posts (Instagram User Posts)
Returns a list of Instagram posts for the given handle, each containing post ID, URL, caption text, like count, comment count, and creation date, plus a nextCursor for fetching the next page of results. Also includes a boolean indicating whether the user was found.
POSThttps://api.getanyapi.com/v1/run/instagram.user_posts?utm_source=zero.xyzUse this endpoint when you need to programmatically retrieve an Instagram user's public post feed with engagement metrics (likes, comments) without managing Instagram API credentials or OAuth. Ideal for influencer research, content auditing, social monitoring, or competitive analysis. Prefer over direct Instagram API when you want pay-per-call pricing with no subscription or OAuth setup.
{
"cursor": "",
"handle": "natgeo"
}| Field | Type | Description |
|---|---|---|
| cursor | string | Pagination cursor from a previous response's nextCursor. |
| handlerequired | string | Instagram username without the leading @. |
| source | array | Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`. |
| ignoreSources | array | Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way. |
| allowFallbacks | boolean | Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price. |
| preferLatencyUnderMs | integer | Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. |
{
"items": 12,
"output": {
"data": {
"posts": [
{
"id": "3920738671208852726_787132",
"url": "https://www.instagram.com/p/DZpQwxqimz2/",
"likes": 135579,
"caption": "There's more to the story of Pompeii than just destruction. Join Tom Hiddleston as he traces the stories of those who experienced the eruption and those who survived.\n\n#PompeiiOutOfTime with @twhiddleston premieres July 22 on @NatGeoTV. Streaming on @DisneyPlus and @hulu.",
"comments": 1181,
"createdUtc": 1781625607
},
{
"id": "3900557621921709539_787132",
"url": "https://www.instagram.com/p/DYhkH24lf3j/",
"likes": 57259,
"caption": "@antoni is on a quest to find the best sights, tastes, and experiences the world has to offer, and you're invited. \n\n#BestOfTheWorld with Antoni Porowski premieres Sunday, June 7 at 9/8c on National Geographic. Stream on @DisneyPlus and @hulu",
"comments": 880,
"createdUtc": 1779206409
},
{
"id": "3944167352324807026_787132",
"url": "https://www.instagram.com/p/Da8f09SA1ly/",
"likes": 7403,
"caption": "Some sharks navigate across entire ocean basins, covering distances comparable to Earth's circumference. Hidden within their snouts is the sensory system that helps guide these extraordinary journeys. But some species are adjusting their migrations—National Geographic Explorer Arzucan Askin (@zuzu_askin) explains why.",
"comments": 59,
"createdUtc": 1784401659
},
{
"id": "3944077378767144655_1029649300",
"url": "https://www.instagram.com/p/Da8LXq4EcbP/",
"likes": 79166,
"caption": "You can still be a sea turtle even if you're not a Taurus, we won't tell anyone.\n\nNational Geographic's #Sharkfest is now streaming on @DisneyPlus and @hulu, including #HammerheadSharksUpClose with @bertiegregory",
"comments": 338,
"createdUtc": 1784390683
},
{
"id": "3943895878265207849_787132",
"url": "https://www.instagram.com/p/Da7iGfXH_wp/",
"likes": 34656,
"caption": "Without ropes or safety gear, Alex Honnold ascended the 3,000-foot (914-meter) southwest face of El Capitan in California’s Yosemite National Park. Director and photographer @jimmychin captured Honnold on the granite wall during the climb, a feat that followed nearly a decade of preparation and was documented in Chin's film Free Solo.\n\nFrom wildlife to wonder, explore more iconic images from the National Geographic archive at the link in bio.",
"comments": 241,
"createdUtc": 1784369056
},
{
"id": "3943003306650145047_787132",
"url": "https://www.instagram.com/p/Da4XJ3REpEX/",
"likes": 23554,
"caption": "During Since, an annual Quechua planting tradition, two farmers in the Peruvian village of Huaylacucho cover each other in corn flour. Photographer and National Geographic Explorer Florence Goupil (@florence.goupil) documented the playful ritual after growing up hearing stories about her grandmother's participation. “It was the first time I was able to see, with my own eyes, what my grandmother’s traditions looked like,” Goupil says.",
"comments": 89,
"createdUtc": 1784322001
},
{
"id": "3942982228276331168_787132",
"url": "https://www.instagram.com/p/Da4SXIgFsKg/",
"likes": 45166,
"caption": "For millennia, treatments for pain have been administered with a one-size-fits-all approach. It wasn’t until recently that experts officially acknowledged one radical truth: Women experience pain differently than men. They’re also more likely to experience chronic pain conditions and don’t respond as well to painkillers like ibuprofen, steroids, and opioids.\n \nSo how can women find relief? Learn more about why women experience pain differently—as well as evolving approaches to treatment—at the link in bio.\n\nPhotograph by Digicomphoto/Science Photo Library",
"comments": 475,
"createdUtc": 1784314801
},
{
"id": "3943323864645865897_787132",
"url": "https://www.instagram.com/p/Da5gCmKiZGp/",
"likes": 41738,
"caption": "Instead of going in for the kill, this mother orca spins the sea turtle, holds it beneath the surface, and drags it by the flipper as her calf watches on. Researchers examining this footage captured in the Gulf of California believe it may be evidence of teaching, rather than an orca simply playing with her food—especially since orca calves spend a great deal of time by their mothers' side during their infancy.\n\nFind out more about how animals share survival lessons at the link in bio. \n\nVideo by Alonso I. Rodríguez de la Parra/Mares de Mexico.",
"comments": 357,
"createdUtc": 1784304005
},
{
"id": "3942746327205767191_787132",
"url": "https://www.instagram.com/p/Da3cuUgk2gX/",
"likes": 53192,
"caption": "It's estimated that almost 300 species have been saved from extinction by the Endangered Species Act since it took effect in 1973. Established to prohibit the taking, importing, and exporting of endangered wildlife, or harming them by modifying their habitats, it has been revised several times in its history. \n\nThe U.S. government recently proposed four regulatory modifications that could make it easier to consider economic issues when deciding whether and how to protect a species. And now more changes have just been approved. Conservationists have expressed concern about what this could mean for endangered animal and plant species.\n\nLearn more at the link in bio.\n\nPhotos by @carltonward, Aaron Huey (@argonautphoto), @joelsartore, and @erikalarsen888",
"comments": 306,
"createdUtc": 1784232024
},
{
"id": "3942524134119210075_787132",
"url": "https://www.instagram.com/p/Da2qM_ElHxb/",
"likes": 21232,
"caption": "While living in a fishing village on Mexico’s Baja California peninsula, photographer @nicolas.hahn noticed that the midday winds pushed all kinds of sea creatures close to shore. During one snorkeling session, he discovered this remarkable scene: a collection of mauve stingers, a type of small bioluminescent jellyfish. Hahn got stung a few times around his mask, but the pain was worth it as his underwater lens captured every last tentacle in astonishing detail.",
"comments": 122,
"createdUtc": 1784221201
},
{
"id": "3942545505992724004_787132",
"url": "https://www.instagram.com/p/Da2vD_Lgk4k/",
"likes": 26249,
"caption": "Don't let their size fool you. Elephants are as graceful as they are massive. 🐘 @joelsartore has so many reasons to love elephants—what's your favorite thing about them?\n\nWe’re celebrating 20 years of the National Geographic #PhotoArk, an audacious project documenting the world's incredible biodiversity and highlighting the importance of conservation through photography. Which animal do you want to see next?",
"comments": 173,
"createdUtc": 1784208106
},
{
"id": "3941953394487443551_787132",
"url": "https://www.instagram.com/p/Da0oboXkcBf/",
"likes": 12516,
"caption": "Through family archives, cherished memories and the breathtaking landscapes of Iceland, poet Andri Snær Magnason creates a time capsule for generations to come.\n\n#TimeAndWater premieres July 31 at 9/8c on National Geographic. Next day on @DisneyPlus and @hulu.",
"comments": 60,
"createdUtc": 1784142006
}
],
"nextCursor": "_ffFwC88_begklwlVDS-6F7fW-gL_6DdWnV7VaWPN9TreH06mAz3ZIG0RLzGjeQnASvDjRq9Y_vpLXNQTVgC0CfamLtyKRaoefyi38vwoNL3caDcXvIesGiW_xiy0D47_eRS_SEj4VwgBwIWLF7KQv5oNwoKd4Ubyh-j96QuiOIWl9D2aruAbGfgkg"
},
"found": true
},
"costUsd": 0.002,
"provider": "AnyAPI"
}{
"type": "json"
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"