Start with 5000 API credits for free
logo

Instagram posts API

Returns posts from an instagram user

Parameters

count - Number of new posts

type: number

username - Username to get posts from

type: stringlength: min 1, max 30

stream - Stream response

type: booleanDefault: false

Return type

posts

Examples

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import typedclient
import asyncio

api = typedclient.connect('API_KEY')

async def main():
posts = await api.instagram.posts(
count=10,
username="therock"
)
print([(post.caption) for post in posts])

asyncio.run(main())