instagramRead public Instagram data with Desearch. Set action and that action's arguments. search (query; optional count): profiles that match, one page with no cursor. media (id): one post by shortcode, numeric ID, or URL. profile (username): one profile. profile_posts (username; optional count, cursor): a user's posts. comments (shortcode; optional count, cursor): a post's comments. hashtag (tag; optional count, cursor): posts with a hashtag. media and profile return the item itself. List actions return { results, next_cursor, next }. For the next page, call again with the same action and target and cursor set to next_cursor, unchanged; next_cursor is null on the last page. A cursor lasts 24 hours.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "instagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | media: the post shortcode, numeric media ID, or public URL. | |
| tag | No | hashtag: the hashtag without #, example: 'ai'. A leading # is removed. | |
| count | No | Most items to return (1-100). API default: 10 for search, 20 for the other list actions. One page may hold fewer. | |
| query | No | search: keyword or phrase, example: 'desearch'. | |
| action | Yes | What to read: 'search', 'media', 'profile', 'profile_posts', 'comments', or 'hashtag'. | |
| cursor | No | next_cursor from the previous page of the same action and target, sent back unchanged. Omit it for the first page. | |
| username | No | profile, profile_posts: Instagram username, example: 'instagram'. A leading @ is removed. | |
| shortcode | No | comments: the code in the post URL, such as 'DeuOR-CjKE9' in https://www.instagram.com/p/DeuOR-CjKE9/. Numeric media IDs return 404. |