Recent posts
get_postsPosts of a public Instagram account, newest first, about 12 per page: shortcode, URL, date, type, caption, like / comment / view counts and thumbnail. Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 1 credit per page (nothing from cache, on errors or with a kd_test_ sandbox key).
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": {
"user": "<user>"
},
"name": "get_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | Numeric user id (cheapest, e.g. "25025320") or Instagram username (e.g. "instagram"). All digits = an id; write "@12345" for a username made only of digits. A username we have not seen in 7 days may cost 1 extra credit for the lookup (see meta.lookup_credits); a numeric id never does. | |
| fresh | No | true skips the cache and fetches live data (full price). Default false. | |
| cursor | No | pagination.next_cursor from the previous page. Leave out for the first page. |