This project is an Instagram API guest-oriented, meaning you can perform actions of data collection without having to register. However, you may be facing some Ratelimits, so I recommend you to put some delay between operations.
Licence can be found at LICENCE
, it's GNU GPLv3
.
# from apigram import ApiGram
class ApiGram:
"""
The API class provides the necessary data to perform Instagram API web requests.
To prevent flooding Instagram requests for the same target API, you can use the
`export_api` function to create an API cache.
You can also provide custom proxies to use for the requests.
"""
def __init__(self, username: str = None, proxies: dict[str, str] = None):
"""
API constructor
:param username: The target's account usrename. Used for fresh API.
:type username: str
:param proxies: The proxies to use for the instagram API requests.
:type proxies: dict
"""
def fetch_user_profile(self) -> dict: ...
def fetch_user_metadata(self) -> dict: ...
def fetch_posts(self, first: int = 12, after: str = None) -> dict: ...
def fetch_post_metadata(self, shortcode: str) -> dict: ...
def fetch_highlights(self) -> dict: ...
def fetch_reels(self, page_size: int = 12, max_id: str = None) -> dict: ...
def export_api(self, writable_stream: io.BytesIO): ...
def import_api(self, readable_stream: io.BytesIO): ...