Sources › Social media › Instagram › Get User Posts
Instagram User Posts API
Postingan sebuah akun Instagram, per halaman. Catatan: total selalu null karena sumber datanya tidak mengirim jumlah keseluruhan di jalur ini. Ambil postCount dari endpoint profile kalau butuh totalnya.
Request
https://api.zapi.ink/v1/social-media:instagram-scraper/posts/:usernameSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| username | string | path | Yes | Username (with/without @) atau full Instagram URL Example: cristiano |
| page | number | query | No | Nomor halaman. Default 1, max 50. Per page 12 post |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:instagram-scraper/posts/cristiano?page=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:instagram-scraper/posts/cristiano?page=", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:instagram-scraper/posts/cristiano", params={"page":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:instagram-scraper", "data": { "page": 1, "count": 12, "posts": [ { "url": "https://www.instagram.com/p/Dbzo5YBGNLF/", "type": "carousel", "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/771843829_18582417154075834_512596331335769987_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1OTY2ODE1NjEzMDcxNjI1MA%3…", "width": 2000, "author": { "avatar": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-19/749652868_18576613621075834_3305084378993563391_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqY…", "userId": "2274763833", "fullName": "BTS official", "username": "bts.bighitofficial", "isVerified": true }, "height": 2666, "postId": "3959688362047623877", "caption": "BTS WORLD TOUR ‘ARIRANG’ IN FOXBOROUGH\n\n#방탄소년단 #BTS #BTS_WORLDTOUR_ARIRANG\n#BTS_WORLDTOUR_ARIRANG_NA\n#BTS_WORLDTOUR_ARIRANG_FOXBOROUGH", "isVideo": false, "takenAt": 1786251601, "carousel": [ { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/771843829_18582417154075834_512596331335769987_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1OTY2ODE1NjEzMDcxNjI1MA%3…", "width": 2000, "height": 2666, "mediaType": 1 }, { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/769483645_18582417163075834_62047698147973266_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1OTY2ODE1NjM5MDcyNzEwNg%3D…", "width": 2000, "height": 2666, "mediaType": 1 }, { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/771738930_18582417172075834_2819302403204558436_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1OTY2ODE1NjMwNjgzOTE2OQ%…", "width": 2000, "height": 2666, "mediaType": 1 } ], "likeCount": 2943381, "playCount": 0, "shortcode": "Dbzo5YBGNLF", "viewCount": 0, "isCarousel": true, "takenAtIso": "2026-08-09T05:00:01.000Z", "productType": "carousel_container", "commentCount": 15007 }, { "url": "https://www.instagram.com/p/DbumDzPGB7H/", "type": "carousel", "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/766074309_18581922571075834_468696789793933411_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1ODI2Nzk3MjAwNTkwMTU0NA%3…", "width": 2400, "author": { "avatar": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-19/749652868_18576613621075834_3305084378993563391_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqY…", "userId": "2274763833", "fullName": "BTS official", "username": "bts.bighitofficial", "isVerified": true }, "height": 3000, "postId": "3958268509445168839", "caption": "뭐가 수박이게", "isVideo": false, "takenAt": 1786082398, "carousel": [ { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/766074309_18581922571075834_468696789793933411_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1ODI2Nzk3MjAwNTkwMTU0NA%3…", "width": 2400, "height": 3000, "mediaType": 1 }, { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/765338518_18581922583075834_1324484303808373350_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1ODI2Nzk3OTQwOTg3MjUwMg%…", "width": 2400, "height": 3000, "mediaType": 1 }, { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/765460217_18581922592075834_3056238847018222016_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1ODI2Nzk4MjE1NTkwNzcyNQ%…", "width": 2400, "height": 3000, "mediaType": 1 } ], "likeCount": 3857985, "playCount": 0, "shortcode": "DbumDzPGB7H", "viewCount": 0, "isCarousel": true, "takenAtIso": "2026-08-07T05:59:58.000Z", "productType": "carousel_container", "commentCount": 27435 }, { "url": "https://www.instagram.com/p/DbpVowwmNLG/", "type": "carousel", "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/764854963_18581413069075834_6333650836320561854_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1Njc4ODY0MjY3OTU4NTIzNg%…", "width": 2000, "author": { "avatar": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-19/749652868_18576613621075834_3305084378993563391_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqY…", "userId": "2274763833", "fullName": "BTS official", "username": "bts.bighitofficial", "isVerified": true }, "height": 2666, "postId": "3956788907732423366", "caption": "BTS WORLD TOUR ‘ARIRANG’ IN EAST RUTHERFORD\n\n#방탄소년단 #BTS #BTS_WORLDTOUR_ARIRANG\n#BTS_WORLDTOUR_ARIRANG_NA\n#BTS_WORLDTOUR_ARIRANG_EASTRUTHERFORD", "isVideo": false, "takenAt": 1785906016, "carousel": [ { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/764854963_18581413069075834_6333650836320561854_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk1Njc4ODY0MjY3OTU4NTIzNg%…", "width": 2000, "height": 2666, "mediaType": 1 }, { "image": "https://scontent-cgk1-2.cdninstagram.com/v/t51.82787-15/765069327_18581413087075834_8995176478058150874_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=111&ig_cache_key=Mzk1Njc4ODY0NjUyMTM3MDU1N…", "width": 2000, "height": 2666, "mediaType": 1 }, { "image": "https://scontent-cgk2-2.cdninstagram.com/v/t51.82787-15/765157987_18581413078075834_3864826360090298508_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=105&ig_cache_key=Mzk1Njc4ODY1MjA1ODA3MDk5M…", "width": 2000, "height": 1333, "mediaType": 1 } ], "likeCount": 2478172, "playCount": 0, "shortcode": "DbpVowwmNLG", "viewCount": 0, "isCarousel": true, "takenAtIso": "2026-08-05T05:00:16.000Z", "productType": "carousel_container", "commentCount": 11082 } ], "total": null, "userId": "2274763833", "hasMore": true, "nextPage": 2, "username": "bts.bighitofficial" }, "timestamp": "2026-06-13T03:11:20Z" }
Frequently asked questions
How do I call the Instagram User Posts API?
Send a GET request to https://api.zapi.ink/v1/social-media:instagram-scraper/posts/cristiano with your Zapi key in the x-api-key header. Parameters — required: username; optional: page. The response is JSON in the { project, data, timestamp } envelope.
What does the Instagram User Posts API return?
Postingan sebuah akun Instagram, per halaman. The example response has the fields page, count, posts, total, userId, hasMore, nextPage, username. Each item in posts has fields such as url, type, image, width, author, height, postId, caption.
Is the Instagram User Posts API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 5 Zap. Paid plans raise the limits.
Can an AI assistant call the Instagram User Posts API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "instagram-scraper" and endpoint "posts".
What other Instagram API endpoints are there?
It has 8 endpoints. Besides Get User Posts: Get User Profile, Get Detail Post, Get Post Comments, Get User Stories, Get User Reels, Get Tagged Posts, and 1 more.