Skip to main content
*Please go through the [contribution guidelines](https://github.com/danleyb2/Instagram-API/blob/master/.github/CONTRIBUTING.md)*,
*just a translated Python implementation of this PHP [repository](https://github.com/mgp25/Instagram-API)*

# ![logo](/examples/assets/instagram.png) Instagram Python [![License](https://poser.pugx.org/mgp25/instagram-php/license)](https://packagist.org/packages/mgp25/instagram-php)

PHP [![Latest Stable Version](https://poser.pugx.org/mgp25/instagram-php/v/stable)](https://packagist.org/packages/mgp25/instagram-php) [![Total Downloads](https://poser.pugx.org/mgp25/instagram-php/downloads)](https://packagist.org/packages/mgp25/instagram-php)

PYTHON [![Latest Stable Version](http://img.shields.io/pypi/v/instagram-python.svg)](https://pypi.python.org/pypi/instagram-python) [![Total Downloads](http://img.shields.io/pypi/dm/instagram-python.svg)](https://pypi.python.org/pypi/instagram-python)



Instagram's private API.

**Read the [wiki](https://github.com/danleyb2/Instagram-API/wiki)** and previous issues before opening a new one! Maybe your issue is already answered.
**Wiki for the PHP code should be 90% applicable too because the code is just translated, not transformed**

**Frequently Asked Questions:** [F.A.Q.](https://github.com/danleyb2/Instagram-API/wiki/FAQ)

**Do you like this project? Support it by donating**
- To the [PHP](https://github.com/mgp25/Instagram-API) repo

----------
## Installation

### PYPI

```sh
pip install instagram-python
```

```py
from InstagramAPI import Instagram

instagram = Instagram();
```

If you want to test code that is in the master branch, which hasn't been pushed as a release, you can use Github.

```sh
pip install https://github.com/danleyb2/Instagram-API/archive/master.zip
```

## Examples

All examples can be found [here](https://github.com/danleyb2/Instagram-API/tree/master/examples)

## Why did i do the API?
For me,
*i love writing code*,
for him
*After legal measures, Facebook, WhatsApp and Instagram blocked my accounts. In order to use Instagram
on my phone i needed a new phone, as they banned my UDID, so that is basically why i made this API.*

### What is Instagram?
According to [the company](https://instagram.com/about/faq/):

> "Instagram is a fun and quirky way to share your life with friends through a series of pictures. Snap a photo with your mobile phone, then choose a filter to transform the image into a memory to keep around forever. We're building Instagram to allow you to experience moments in your friends' lives through pictures as they happen. We imagine a world more connected through photos."

# License

MIT

# Terms and conditions

- You will NOT use this API for marketing purposes (spam, massive sending...).
- We do NOT give support to anyone that wants this API to send massive messages or similar.
- We reserve the right to block any user of this repository that does not meet these conditions.

## Legal

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

### Contributing
**If you have any suggestions,contributions or improvements, (unless it should only be applied on this side) please make them to the php [repo](https://github.com/mgp25/Instagram-API) if you can so i can replicate them to this side**

Metadata

Release files for instagram-python 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for instagram-python 1.4
File Size Uploaded
instagram-python-1.4.tar.gz 25.6 kB Details

Release files / instagram-python-1.4.tar.gz

Download URL instagram-python-1.4.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aab5986545011cb4d0762c7a933b80af57a90633680cb7e6fa9546941c366914
BLAKE2b-256 checksum
How to use checksums
9eed90d17c7b7cd467675509073e7e04a14e276b2b8f4516a223ad9ae22c7fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.4 This release

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page