{"id":19640148,"url":"https://github.com/gearplug/instagram-python","last_synced_at":"2025-07-22T20:05:11.255Z","repository":{"id":62571148,"uuid":"116985671","full_name":"GearPlug/instagram-python","owner":"GearPlug","description":"Instagram wrapper written in Python","archived":false,"fork":false,"pushed_at":"2018-11-09T16:35:38.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-07T01:07:55.922Z","etag":null,"topics":["api","instagram","library","notifications","python","subscription","webhook","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GearPlug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-10T16:58:20.000Z","updated_at":"2021-01-17T23:18:17.000Z","dependencies_parsed_at":"2022-11-03T18:26:05.260Z","dependency_job_id":null,"html_url":"https://github.com/GearPlug/instagram-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GearPlug/instagram-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Finstagram-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Finstagram-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Finstagram-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Finstagram-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GearPlug","download_url":"https://codeload.github.com/GearPlug/instagram-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Finstagram-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","instagram","library","notifications","python","subscription","webhook","wrapper"],"created_at":"2024-11-11T14:04:49.112Z","updated_at":"2025-07-22T20:05:11.215Z","avatar_url":"https://github.com/GearPlug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# instagram-python\n\ninstagram-python is an API wrapper for Instagram written in Python\n\n## Installing\n```\npip install instagram-python-lib\n```\n\n## Usage\n```\nfrom instagram.client import Client\n\nclient = Client('CLIENT_ID', 'CLIENT_SECRET')\n```\n\nGet authorization url\n```\nscopes = ['basic']\nurl = client.authorization_url('REDIRECT_URI', scopes)\n```\n\nExchange the code for a token\n```\ntoken = client.exchange_code('REDIRECT_URI', 'CODE')\n```\n\nSet the token\n```\nclient.set_access_token('TOKEN')\n```\n\nGet account information\n```\nresponse = client.get_account(')\n```\n\nGet media\n```\nresponse = client.get_media('MEDIA_ID')\n```\n\n### Webhooks\nCreate subscription\n```\nresponse = client.create_subscription('user', 'media', 'A_SECRET_RANDOM_KEY', 'NOTIFICATION_URL')\n```\n\nGet subscriptions\n```\nresponse = client.get_subscriptions()\n```\n\nDelete subscription\n```\nresponse = client.delete_subscription('SUBSCRIPTION_ID')\n```\n\n## Contributing\nWe are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.\n#### You can report any bug you find or suggest new functionality with a new [issue](https://github.com/GearPlug/instagram-python/issues).\n#### If you want to add yourself some functionality to the wrapper:\n1. Fork it ( https://github.com/GearPlug/instagram-python )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Adds my new feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Finstagram-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgearplug%2Finstagram-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Finstagram-python/lists"}