{"id":26654067,"url":"https://github.com/rakeshpatra/instagram_graph_api","last_synced_at":"2025-07-23T12:36:14.610Z","repository":{"id":56377497,"uuid":"141423677","full_name":"rakeshpatra/instagram_graph_api","owner":"rakeshpatra","description":"This is a version of koala gem which provides commonly used Instagram Graph APIs","archived":false,"fork":false,"pushed_at":"2020-12-12T07:07:37.000Z","size":44,"stargazers_count":32,"open_issues_count":1,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-18T19:17:21.200Z","etag":null,"topics":["facebook-graph-api","graph-api","instagram","instagram-graph-apis","koala","ruby","ruby-api-wrapper","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/rakeshpatra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-18T11:08:53.000Z","updated_at":"2025-05-02T14:56:11.000Z","dependencies_parsed_at":"2022-08-15T17:40:18.343Z","dependency_job_id":null,"html_url":"https://github.com/rakeshpatra/instagram_graph_api","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rakeshpatra/instagram_graph_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakeshpatra%2Finstagram_graph_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakeshpatra%2Finstagram_graph_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakeshpatra%2Finstagram_graph_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakeshpatra%2Finstagram_graph_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakeshpatra","download_url":"https://codeload.github.com/rakeshpatra/instagram_graph_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakeshpatra%2Finstagram_graph_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266680414,"owners_count":23967793,"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-23T02:00:09.312Z","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":["facebook-graph-api","graph-api","instagram","instagram-graph-apis","koala","ruby","ruby-api-wrapper","ruby-gem"],"created_at":"2025-03-25T04:56:55.374Z","updated_at":"2025-07-23T12:36:14.582Z","avatar_url":"https://github.com/rakeshpatra.png","language":"Ruby","readme":"# InstagramGraphApi\n\nA gem for Instagram Graph API using [koala](https://github.com/arsduo/koala).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'instagram_graph_api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install instagram_graph_api\n\n## Usage\n\n```ruby\nclient = InstagramGraphApi.client(ACCESS_TOKEN)\n\n#get an arraay of business accounts linked to the access_token\nclient.ig_business_accounts\n#get an array of connected IG accounts linked to the access_token\nclient.connected_ig_accounts\n\n#to get specific fields from \"id,name,biography,ig_id,followers_count,profile_picture_url,username\"\nclient.ig_business_accounts(\"name,followers_count\")\nclient.connected_ig_accounts(\"name,followers_count\")\n\n#get IG business account/ Connected IG account info\nclient.get_account_info(IG_BUSINESS_ID)\n#to get specific fields\nfields = \"name, biography\"\nclient.get_account_info(IG_BUSINESS_ID, fields)\n\n#get media list\nclient.get_user_recent_media(IG_BUSINESS_ID)\n\n#get media details\nclient.get_media_details(MEDIA_ID)\n#to get specific fields\nfields  = \"media_url, permalink\"\nclient.get_media_details(MEDIA_ID, fields)\n\n#Discover business user\nclient.discover_user(USERNAME)\n# fields can be from \"id,followers_count,media_count,ig_id\"\nfields = \"followers_count,media_count,ig_id\"\nclient.discover_user(USERNAME, fields)\n\n#discover user media, fields can be \"caption,media_url,media_type,like_count,comments_count,id\"\nclient.discover_user_media(USERNAME, fields)\n\n#Search for a tag, \nclient.tag_media(page_token, tag_name)\n#fields can be \"media_type,comments_count,like_count,media_url,permalink\"\nfields=\"media_url,permalink\"\nclient.tag_media(page_token, tag_name, fields)\n#custom edge can be provided, default is 'top_media'\ntag_media = client.tag_media(page_token, tag_name, edge: \"recent_media\")\n# Note: We can run `tag_media.next_page` to fetch next set of results\n# additional arguent options can also be passed for page params i.e before/after/limit etc\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/rakeshpatra/instagram_graph_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the InstagramGraphApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rakeshpatra/instagram_graph_api/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakeshpatra%2Finstagram_graph_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakeshpatra%2Finstagram_graph_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakeshpatra%2Finstagram_graph_api/lists"}