List user posts
Learn how to get the posts of an Instagram user with Unipile API.
To get a list of posts, use the List all User's Posts endpoint, specifying the ID of the user whose posts you want to retrieve.
To retrieve your own posts, set me as user_id.
const { data } = await usersApi.getPostsList({
path: {
account_id: "acc_123456789",
user_id: "user_id",
},
});posts = users_api.get_posts_list("user_id", "acc_123456789")curl --request GET \
--url https://api.unipile.com/v2/account_id/users/user_id/posts \
--header 'accept: application/json'To get a single post, use the Get a Post endpoint, specifying the ID of the post you are looking for.
const { data } = await postsApi.getPost({
path: {
account_id: "acc_123456789",
post_id: "post_id",
},
});post = posts_api.get_post("post_id", "acc_123456789")curl --request GET \
--url https://api.unipile.com/v2/account_id/posts/post_id \
--header 'accept: application/json'Updated 2 months ago