{"id":18320204,"url":"https://github.com/gedex/go-instagram","last_synced_at":"2025-04-05T22:31:49.164Z","repository":{"id":9314663,"uuid":"11156293","full_name":"gedex/go-instagram","owner":"gedex","description":"Go library for accessing Instagram REST and Search APIs","archived":false,"fork":false,"pushed_at":"2017-10-17T20:17:54.000Z","size":626,"stargazers_count":70,"open_issues_count":6,"forks_count":39,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-04T15:22:39.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gedex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-03T16:56:37.000Z","updated_at":"2024-02-24T16:08:55.000Z","dependencies_parsed_at":"2022-07-31T15:39:17.572Z","dependency_job_id":null,"html_url":"https://github.com/gedex/go-instagram","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fgo-instagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fgo-instagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fgo-instagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fgo-instagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/go-instagram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411237,"owners_count":20934650,"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","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":[],"created_at":"2024-11-05T18:15:32.880Z","updated_at":"2025-04-05T22:31:48.786Z","avatar_url":"https://github.com/gedex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-instagram\n============\n\ngo-instagram is Go library for accessing Instagram REST and Search APIs.\n\n**Documentation:** \u003chttp://godoc.org/github.com/gedex/go-instagram/instagram\u003e\n\n**Build Status:** [![Build Status](https://travis-ci.org/gedex/go-instagram.png?branch=master)](https://travis-ci.org/gedex/go-instagram)\n[![Build Status](https://drone.io/github.com/gedex/go-instagram/status.png)](https://drone.io/github.com/gedex/go-instagram/latest)\n[![Coverage Status](https://coveralls.io/repos/gedex/go-instagram/badge.png?branch=master)](https://coveralls.io/r/gedex/go-instagram?branch=master)\n\n## Basic Usage\n\nAccess different parts of the Instagram API using the various services on a Instagram\nClient:\n\n~~~go\n// You can optionally pass your own HTTP's client, otherwise pass it with nil.\nclient := instagram.NewClient(nil)\n~~~\n\nYou can then optionally set ClientID, ClientSecret and AccessToken:\n\n~~~go\nclient.ClientID = \"8f2c0ad697ea4094beb2b1753b7cde9c\"\n~~~\n\nWith client object set, you can communicate with Instagram endpoints:\n\n~~~go\n// Gets the most recent media published by a user with id \"3\"\nmedia, next, err := client.Users.RecentMedia(\"3\", nil)\n~~~\n\nSet optional parameters for an API method by passing an Parameters object.\n\n~~~go\n// Gets user's feed.\nopt := \u0026instagram.Parameters{Count: 3}\nmedia, next, err := client.Users.RecentMedia(\"3\", opt)\n~~~\n\nPlease see [examples/example.go](./examples/example.go) for a complete example.\n\n## Data Retrieval\n\nThe methods which return slice in first return value will return three values (data, pagination, and error).\nHere's an example of retrieving popular media:\n\n~~~\nmedia, next, err := client.Media.Popular()\nif err != nil {\n\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n}\nfor _, m := range media {\n\tfmt.Printf(\"ID: %v, Type: %v\\n\", m.ID, m.Type)\n}\nif next.NextURL != \"\" {\n\tfmt.Println(\"Next URL\", next.NextURL)\n}\n~~~\n\nIf a single type is returned in first return value, then only two values returned. Here's an example\nof retrieving user's information:\n\n~~~\nuser, err := client.Users.Get(\"3\")\nif err != nil {\n\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n}\nfmt.Println(\"Username\", user.Username)\n~~~\n\n## Credits\n\n* [go-github](https://github.com/google/go-github) in which this library mimics the structure.\n  LICENSE for go-github is included in [go-github-LICENSE.md](./go-github-LICENSE.md)\n* [python-instagram](https://github.com/Instagram/python-instagram)\n* [Instagram endpoints docs](http://instagram.com/developer/endpoints/)\n\n## License\n\nThis library is distributed under the BSD-style license found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fgo-instagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fgo-instagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fgo-instagram/lists"}