Instagram API Action

This document provides comprehensive details on the available actions in the UChat Instagram integration, enabling you to automate tasks, interact with your followers, and efficiently manage your account.

 

Prerequisites

  • UChat account

  • Instagram Business account

 

Configuring the Integration in UChat

Log in to your UChat account.

Access "Settings" and then "Channels".

Click on "Add Channel" and select "Instagram".

 

For more information about the integration step, click in the link bellow: 

https://uchat-com-au.atlassian.net/wiki/spaces/UKB/pages/667254849

 

 

Inserting the Action Node into your flow

Insert an Action Node into your flow and go to Advanced Actions

 

Select Instagram API

 

 

 

Available Actions

 

UChat offers a variety of actions to automate tasks and interact with Instagram.

 

 

  1. Get Instagram User

  • Description: Retrieves information about a specific Instagram user.

  • Response:

    • name: User's name.

    • username: Instagram username.

    • profile_pic: URL of the profile picture.

    • is_verified_user: Indicates if the user is verified.

    • follower_count: Number of followers.

    • is_user_follow_business: Indicates if the user follows the business account.

    • is_business_follow_user: Indicates if the business account follows the user.

    • id: Instagram account ID.

 

  1. Get Instagram Account

  • Description: Retrieves information about an Instagram account.

  • Parameters/Fields:

    • fields (optional): Comma-separated list of fields to return (e.g., media_count,followers_count).

 

  • Response:

    • id: Instagram account ID.

    • username: Instagram username.

    • name: Instagram account name.

    • media_count: Number of media posts.

    • follows_count: Number of users followed by the account.

    • followers_count: Number of followers of the account.

    • profile_picture_url: URL of the profile picture.

 

  1. List Instagram Account Media

  • Description: Retrieves a list of media posts from an Instagram account.

  • Parameters/Fields:

    • fields (optional): Comma-separated list of fields to return (e.g., media_url,like_count).

    • limit: Limit the number of media posts to return.

  • Response:

    • data: List of media posts. Each media post includes information such as:

    • id: Media post ID.

    • caption: Post caption.

    • comments_count: Number of comments.

    • like_count: Number of likes.

    • media_product_type: Type of media (e.g., FEED).

    • media_type: Media type (e.g., IMAGE).

    • permalink: Permanent URL of the post.

    • shortcode: Shortcode of the post.

    • timestamp: Post timestamp.

    • username: Instagram username.

    • media_url: Media URL.

    • paging: Pagination information to retrieve more media posts.

  1. List Live Media from Instagram Account

  • Description: Retrieves information about live media (live broadcasts) from an Instagram account.

  • Parameters/Fields ::

    • fields (optional): Comma-separated list of fields to return (e.g., media_url,like_count).

  • Response:

    • id: Live media ID.

    • media_url: URL of the live broadcast.

    • viewer_count: Number of viewers of the live broadcast.

    • comments_count: Number of comments on the live broadcast.

    • like_count: Number of likes on the live broadcast.

    • timestamp: Live timestamp.

 

 

  1. Get Instagram Media Details

  • Description: Retrieves detailed information about a specific media post from an Instagram account.

  • Parameters/Fields:

    • id: Media post ID (required).

    • fields (optional): Comma-separated list of fields to return (e.g., comments_count,like_count).

  • Response:

    • Detailed information of the media post, including:

    • id: Media post ID.

    • caption: Post caption.

    • comments_count: Number of comments.

    • like_count: Number of likes.

    • media_product_type: Type of media (e.g., FEED).

    • media_type: Media type (e.g., IMAGE).

    • permalink: Permanent URL of the post.

    • shortcode: Shortcode of the post.

    • timestamp: Post timestamp.

    • username: Instagram username.

    • media_url: Media URL.

  1. List Comment Replies on Instagram

  • Description: Retrieves a list of comment replies for a specific comment on an Instagram post.

  • Parameters/Fields:

    • comment_id: Comment ID (required).

    • fields (optional): Comma-separated list of fields to return (e.g., time_stamp,text).

  • Response:

    • id: Comment reply ID.

    • text: Text of the comment reply.

    • time_stamp: Timestamp of the comment reply.

    • like_count: Number of likes.

    • from: Information about the user who replied to the comment (includes id, username).

 

  1. Reply to Comment on Instagram

  • Description: Replies to a comment on an Instagram post.

  • Parameters/Fields:

    • comment_id: Comment ID (required).

    • message: Message of the comment reply (required).

  • Response:

    • id: Comment reply ID.

 

  1. Hide Comment on Instagram

  • Description: Hides a comment on an Instagram post.

  • Parameters/Fields:

    • comment_id: Comment ID (required).

  • Response:

    • Success or error message.

 

  1. Delete Comment on Instagram

  • Description: Deletes a comment on an Instagram post.

  • Parameters/Fields:

    • comment_id: Comment ID (required).

  • Response:

    • Success or error message.