CData Python Connector for Instagram

Build 25.0.9454

Replies

Stores user-generated replies associated with Instagram media objects, including comments on posts and conversations within threads. It supports both querying existing replies and inserting new ones. To ensure access and modification rights in the comment ecosystem, it requires the instagram_basic and instagram_manage_comments permissions.

Only the select and insert operations are supported.

Select

The connector will process a filter on CommentId server side and will execute other filters client-side within itself.

  • The following query returns replies from all comments in your account. UserId will be null if the reply is from an account that is not a business account.

    SELECT * FROM Replies

  • To query replies for a specific comment, CommentId is required. The supported operator for the CommentId column is =. For example:

    SELECT * FROM Replies WHERE CommentId = '1501471279105199430_5380790872'

Insert

Create a reply on a comment object with the following rules:

  • CommentId and Text are the only available and required fields.
  • The total length of the comment cannot exceed 300 characters.
  • The reply cannot contain more than 4 hashtags.
  • The reply cannot contain more than 1 URL.
  • The reply cannot consist of all capital letters.
For example:
INSERT INTO Replies (CommentId, Text) VALUES ('1501471279105199430_5380790872', 'My reply #instadevelopers')

Update

UPDATE is not supported.

Delete

Delete is not supported.

Columns

Name Type ReadOnly Description
Id [KEY] String True

A unique string that identifies the reply within the system, ensuring traceability and reference across operations and data models.

Username String True

The handle or screen name of the Instagram user who posted the reply, used for display and attribution in the user interface.

CommentId String False

A unique identifier that links this reply to the original comment it is responding to, maintaining conversational thread integrity.

Created Datetime True

The exact timestamp, in Coordinated Universal Time (UTC), indicating when the reply was submitted on the platform.

UserId String True

A unique string that identifies the Instagram user who authored the reply, used for authentication, permission checks, and data association.

MediaId String True

A unique identifier referencing the media object (photo, video, reel, etc.) associated with the original comment and reply.

Text String False

The full textual content of the reply entered by the user, which can include hashtags, mentions, and emojis.

LikeCount Int True

The total number of likes that the reply has received, reflecting user engagement and visibility.

InstagramBusinessAccountId String True

The unique identifier of the Instagram business account that owns or is associated with the media and interactions captured in this reply.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454