codestringbắt buộc
Post shortcode (from post URL, e.g. instagram.com/p/{code}/)
https://api.sandbase.ai/v1/api/instagram/v3/post-likesReturns a list of users who liked a specific Instagram post. Queries engagement details using the unique post shortcode from the post URL.
[
{
"data": {
"follow_ranking_token": "6d92957b15ed4e8fa7b2bb8cbbd788a1|14927636226|osr",
"status": "ok",
"user_count": 642867,
"users": [
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": false,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "Balaji Mallaiyan",
"id": "21708437252",
"is_private": false,
"is_verified": false,
"latest_reel_media": 0,
"pk": "21708437252",
"pk_id": "21708437252",
"profile_pic_id": "3874493532866832816_21708437252",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.82787-19/670562331_18118627015725253_3438335275612193978_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=101&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=baMCWLuQUzsQ7kNvwEmK06u&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQMUaj2ictD6HKlHG5b2uNsOACVjKZqWB2K8lIDchmqM5Q&oe=6ACAD8A6&_nc_sid=8809c9",
"strong_id__": "21708437252",
"username": "balajimallaiyan"
},
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": true,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "orrlyukkapitany🙈",
"id": "65711043589",
"is_private": true,
"is_verified": false,
"latest_reel_media": 0,
"pk": "65711043589",
"pk_id": "65711043589",
"profile_pic_id": "3433820652911869577_65711043589",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.2885-19/455175799_1557848811746164_8821655610560947348_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=104&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=_AlgpLYtYswQ7kNvwEXb-G_&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQP3cYV78BJLcurSXp-4C0uD5HFNcbFWzSK7lv03hr0XgA&oe=6ACAB153&_nc_sid=8809c9",
"strong_id__": "65711043589",
"username": "privatee_vivikee"
},
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": false,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "kate",
"id": "61960720649",
"is_private": false,
"is_verified": false,
"latest_reel_media": 1791289427,
"pk": "61960720649",
"pk_id": "61960720649",
"profile_pic_id": "3921674648089850009_61960720649",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.82787-19/726411755_17972295699064650_6913973434254376184_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=106&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=dveJCrBc25YQ7kNvwHOgBGy&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQNjbyB-VYMso5k2fI_PAOWatUc1455XUbPVuoOWb_0V3Q&oe=6ACAAAF7&_nc_sid=8809c9",
"strong_id__": "61960720649",
"username": "_katerinasolas"
},
"… 95 more items in the full response"
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a list of Instagram users who liked a post, plus the total like count for the post. It needs one input, the post shortcode code, which is the part of the post URL after /p/.
user_count across several posts to measure how much like activity each one gets.username or pk.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/post-likes" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "Dd9RyBWBVih"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Post shortcode (from post URL, e.g. instagram.com/p/{code}/) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"follow_ranking_token": "658b7c11…",
"status": "ok",
"user_count": 915443,
"users": [
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false
},
"full_name": "Nele",
"id": "48566646275",
"is_private": true,
"is_verified": false,
"latest_reel_media": 0,
"pk": "48566646275",
"pk_id": "48566646275",
"profile_pic_id": "3486491172489676304_48566646275",
"profile_pic_url": "https://scontent-lga3-3.cdninstagram.com/v/t51.2885-19/464549156_767778562141792…",
"strong_id__": "48566646275"
}
]
}
| Field | Meaning |
|---|---|
user_count | Total number of users reported for the post's likes. It can be larger than the number of items in users returned in one response. |
users[] | List of user profiles that liked the post. |
users[].username / users[].full_name | The account handle and the display name. full_name can be an empty string. |
users[].pk / users[].pk_id / users[].id / users[].strong_id__ | The numeric user ID as a string. These fields hold the same value in the sample. |
users[].is_private / users[].is_verified | Whether the account is private and whether it is verified. |
users[].profile_pic_url | URL of a small profile picture for the user. |
users[].profile_pic_id | ID of the profile picture. It starts with the picture ID and ends with the user ID, joined by an underscore. |
users[].friendship_status.following / users[].friendship_status.followed_by | Whether the account tied to the request follows this user, and whether this user follows it back. |
users[].latest_reel_media | Value for the user's latest reel media. It is 0 for every user in the sample. |
follow_ranking_token | Token string returned with the list. The response does not explain its use. |
code from the post URL: for instagram.com/p/Dd9RyBWBVih/, the value is Dd9RyBWBVih.user_count is 915443.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/post-likes" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "Dd9RyBWBVih"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
codestringbắt buộcPost shortcode (from post URL, e.g. instagram.com/p/{code}/)
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"follow_ranking_token": "6d92957b15ed4e8fa7b2bb8cbbd788a1|14927636226|osr",
"status": "ok",
"user_count": 642867,
"users": [
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": false,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "Balaji Mallaiyan",
"id": "21708437252",
"is_private": false,
"is_verified": false,
"latest_reel_media": 0,
"pk": "21708437252",
"pk_id": "21708437252",
"profile_pic_id": "3874493532866832816_21708437252",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.82787-19/670562331_18118627015725253_3438335275612193978_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=101&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=baMCWLuQUzsQ7kNvwEmK06u&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQMUaj2ictD6HKlHG5b2uNsOACVjKZqWB2K8lIDchmqM5Q&oe=6ACAD8A6&_nc_sid=8809c9",
"strong_id__": "21708437252",
"username": "balajimallaiyan"
},
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": true,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "orrlyukkapitany🙈",
"id": "65711043589",
"is_private": true,
"is_verified": false,
"latest_reel_media": 0,
"pk": "65711043589",
"pk_id": "65711043589",
"profile_pic_id": "3433820652911869577_65711043589",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.2885-19/455175799_1557848811746164_8821655610560947348_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=104&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=_AlgpLYtYswQ7kNvwEXb-G_&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQP3cYV78BJLcurSXp-4C0uD5HFNcbFWzSK7lv03hr0XgA&oe=6ACAB153&_nc_sid=8809c9",
"strong_id__": "65711043589",
"username": "privatee_vivikee"
},
{
"account_badges": [],
"friendship_status": {
"blocking": false,
"followed_by": false,
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_blocking_reel": false,
"is_eligible_to_subscribe": false,
"is_feed_favorite": false,
"is_muting_notes": false,
"is_muting_reel": false,
"is_private": false,
"is_restricted": false,
"muting": false,
"outgoing_request": false,
"subscribed": false
},
"full_name": "kate",
"id": "61960720649",
"is_private": false,
"is_verified": false,
"latest_reel_media": 1791289427,
"pk": "61960720649",
"pk_id": "61960720649",
"profile_pic_id": "3921674648089850009_61960720649",
"profile_pic_url": "https://instagram.fpit1-1.fna.fbcdn.net/v/t51.82787-19/726411755_17972295699064650_6913973434254376184_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fpit1-1.fna.fbcdn.net&_nc_cat=106&_nc_oc=Q6cZ2gG7qZBj_YKuc8LqjAoT3hy3UDvR30AB5g3jOxd6Hg0GbaFa1bIgLxAPh55-TBBteDA&_nc_ohc=dveJCrBc25YQ7kNvwHOgBGy&_nc_gid=JxVrVoS3js6_jTJQoaYrxA&edm=APwHDrQBAAAA&ccb=7-5&oh=00_AQNjbyB-VYMso5k2fI_PAOWatUc1455XUbPVuoOWb_0V3Q&oe=6ACAAAF7&_nc_sid=8809c9",
"strong_id__": "61960720649",
"username": "_katerinasolas"
},
"… 95 more items in the full response"
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Instagram Post Likes (V3)API này Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.002 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v3/post-likes với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: code (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Instagram Post Likes (V3) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Instagram.