{"id":20435959,"url":"https://github.com/d4nyll/instafetch","last_synced_at":"2025-06-21T22:33:12.425Z","repository":{"id":26221251,"uuid":"29667791","full_name":"d4nyll/instafetch","owner":"d4nyll","description":"Hack the count limit Instagram imposes in its API","archived":false,"fork":false,"pushed_at":"2018-12-05T13:42:07.000Z","size":17,"stargazers_count":46,"open_issues_count":8,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T21:38:05.358Z","etag":null,"topics":["instagram","instagram-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/d4nyll.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":"2015-01-22T07:57:54.000Z","updated_at":"2024-03-01T14:01:03.000Z","dependencies_parsed_at":"2022-07-24T10:15:04.353Z","dependency_job_id":null,"html_url":"https://github.com/d4nyll/instafetch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d4nyll/instafetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Finstafetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Finstafetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Finstafetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Finstafetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d4nyll","download_url":"https://codeload.github.com/d4nyll/instafetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Finstafetch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261205361,"owners_count":23124797,"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":["instagram","instagram-api"],"created_at":"2024-11-15T08:38:39.206Z","updated_at":"2025-06-21T22:33:07.409Z","avatar_url":"https://github.com/d4nyll.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# instafetch\n\n[![Join the chat at https://gitter.im/d4nyll/instafetch](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/d4nyll/instafetch?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nFetch Instagram media without limit\n\n## [Demo](http://d4nyll.github.io/instafetch/)\n\n# What it does\n\ninstafetch fetches media from Instagram based on (and only on) the **user and/or tag**, relying on the Instagram API.\n\nIf you use the Instagram API to make a call, you will only get 33 results back, no matter what you specify in the `count` paramter. Instafetch will help you fetch more media than the limit imposes, in exchange for more API calls, which can count against your hourly limit.\n\n# How to Use\n\n\u003e instafetch requires [jQuery](http://jquery.com/), which you can download [here](http://jquery.com/download/).\n\nYou can find an example in `examples/example.html`\n\n1. Include jQuery, followed by instafetch\n2. Write a function to be passed into the fetcher, all your logic should be written here. For example, you may want to use the params to specify the `id` of a `div` to which you will insert the media into\n3. Create an instance of a fetcher by passing in your client ID. (You must have an instagram developer's account, you can get one [here](http://instagram.com/developer))\n4. Use your fetcher to fetch media. A single fetcher can be used in more than one fetch.\n\n```js\n$(function() {\n  // Create a callback that simply logs the response and parameters\n  var displayInstaBlocks = function(response, params) {\n    console.log(response);\n    console.log(params);\n  };\n\n  // Get an instance of a fetcher\n  var fetcher = new Instafetch('[--ACCESS TOKEN--]');\n\n  // Fetch results\n  fetcher.fetch({\n    user: [--USER ID--],\n    tag: [--TAG NAME--],\n    limit: 88,\n    callback: displayInstaBlocks,\n    params: 'instafeed'\n  });\n});\n```\n\n## Options\n\n| option   | Type     | description                                                                                                                                                                                                                                                             | Required?                                   |\n|----------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|\n| user     | int      | The ID of the user whose media you are fetching                                                                                                                                                                                                                         | At least one of `user` or `tag` is required |\n| tag      | string   | A single tag                                                                                                                                                                                                                                                            | At least one of `user` or `tag` is required |\n| maxId    | string   | If specified, instafetch will only fetch media older than the media with this ID                                                                                                                                                                                        | No                                          |\n| callback | function | Create a function and pass it (without `()`) into the fetcher. This will be called once the results are ready. It should accept two arguments - the first is the response object from the fetch, and the second are the arguments passed in from the `params` property. | Yes                                         |\n| params   | object   | An object that will be passed into the callback.                                                                                                                                                                                                                        |                                             |\n\n## Coming soon...\n\nWe will provide more template callbacks so you can just plug-and-play. All the provided template callbacks shall have a `params` object with the following properties:\n\n* width\n* height\n* scale (cover, crop)\n* resolution (thumbnail, low, standard)\n* class\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4nyll%2Finstafetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd4nyll%2Finstafetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4nyll%2Finstafetch/lists"}