{"id":21292024,"url":"https://github.com/johnnythetank/angular-instagram-api-factory","last_synced_at":"2025-07-11T16:31:14.932Z","repository":{"id":57178571,"uuid":"46127422","full_name":"JohnnyTheTank/angular-instagram-api-factory","owner":"JohnnyTheTank","description":"AngularJS factory for Instagram JSON REST API requests","archived":false,"fork":false,"pushed_at":"2018-04-05T09:42:15.000Z","size":25,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T13:10:57.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/JohnnyTheTank.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-11-13T14:45:03.000Z","updated_at":"2019-10-30T23:49:22.000Z","dependencies_parsed_at":"2022-09-14T02:31:16.395Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyTheTank/angular-instagram-api-factory","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-instagram-api-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-instagram-api-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-instagram-api-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-instagram-api-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyTheTank","download_url":"https://codeload.github.com/JohnnyTheTank/angular-instagram-api-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225741250,"owners_count":17516895,"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-21T13:47:14.476Z","updated_at":"2024-11-21T13:47:15.259Z","avatar_url":"https://github.com/JohnnyTheTank.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**angular-instagram-api-factory** is an angularjs module with a instagram api factory.\n\n[![npm version](https://badge.fury.io/js/angular-instagram-api-factory.png)](https://badge.fury.io/js/angular-instagram-api-factory)\n[![Bower version](https://badge.fury.io/bo/angular-instagram-api-factory.png)](https://badge.fury.io/bo/angular-instagram-api-factory)\n\nAuthor: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))\n\n:warning: **This use case is not supported anymore. On June 1, 2016 Instagram changed the permissions and all apps moved automatically to Sandbox Mode if they were not approved through the [review process](https://www.instagram.com/developer/review/).**\n\n\n## Usage\n\n1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:\n    1. `bower install --save angular-instagram-api-factory`\n    2. `npm install --save angular-instagram-api-factory`\n    3. download [angular-instagram-api-factory.zip](https://github.com/JohnnyTheTank/angular-instagram-api-factory/zipball/master)\n2. Add `jtt_instagram` to your application's module dependencies.\n3. Include dependencies in your HTML.\n    1. When using bower:\n    ```html\n    \u003cscript src=\"bower_components/angular-instagram-api-factory/dist/angular-instagram-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n    2. When using npm:\n    ```html\n    \u003cscript src=\"node_modules/angular-instagram-api-factory/dist/angular-instagram-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n    3. when using downloaded files\n    ```html\n    \u003cscript src=\"angular-instagram-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n4. Use the factory `instagramFactory`\n\n\n### factory methods\n\n#### getMedia\n\n\n```js\ninstagramFactory.getMediaFromUserById({\n    userId: \"\u003cUSER_ID\u003e\",\n    count: \"\u003cCOUNT\u003e\", // (optional) valid values: 1-33 | default: 20\n    min_id: \"\u003cMIN_ID\u003e\", // (optional)\n    max_id: \"\u003cMAX_ID\u003e\", // (optional)\n    min_timestamp: \"\u003cMIN_TIMESTAMP\u003e\", // (optional)\n    max_timestamp: \"\u003cMAX_TIMESTAMP\u003e\", // (optional)\n    access_token: \"\u003cYOUR_ACCESS_TOKEN\u003e\",\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n```js\ninstagramFactory.getMediaByTag({\n    tag: \"\u003cTAG\u003e\",\n    count: \"\u003cCOUNT\u003e\", // (optional) valid values: 1-33 | default: 20\n    min_tag_id: \"\u003cMIN_TAG_ID\u003e\", // (optional)\n    max_tag_id: \"\u003cMAX_TAG_ID\u003e\", // (optional)\n    min_timestamp: \"\u003cMIN_TIMESTAMP\u003e\", // (optional)\n    max_timestamp: \"\u003cMAX_TIMESTAMP\u003e\", // (optional)\n    access_token: \"\u003cYOUR_ACCESS_TOKEN\u003e\",\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n```js\ninstagramFactory.getMediaFromLocationById({\n    locationId: \"\u003cLOCATION_ID\u003e\",\n    count: \"\u003cCOUNT\u003e\", // (optional) valid values: 1-33 | default: 20\n    min_id: \"\u003cMIN_ID\u003e\", // (optional)\n    max_id: \"\u003cMAX_ID\u003e\", // (optional)\n    min_timestamp: \"\u003cMIN_TIMESTAMP\u003e\", // (optional)\n    max_timestamp: \"\u003cMAX_TIMESTAMP\u003e\", // (optional)\n    access_token: \"\u003cYOUR_ACCESS_TOKEN\u003e\",\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n```js\ninstagramFactory.getMediaByCoordinates({\n    lat: \"\u003cLAT\u003e\",\n    lng: \"\u003cLNG\u003e\",\n    distance: \"\u003cDISTANCE\u003e\", // (optional) in meters, default: 1000\n    count: \"\u003cCOUNT\u003e\", // (optional) valid values: 1-33 | default: 20 (this parameter maybe don't work correct)\n    min_timestamp: \"\u003cMIN_TIMESTAMP\u003e\", // (optional)\n    max_timestamp: \"\u003cMAX_TIMESTAMP\u003e\", // (optional)\n    access_token: \"\u003cYOUR_ACCESS_TOKEN\u003e\",\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n#### getUser\n```js\ninstagramFactory.getUserById({\n    userId: \"\u003cUSER_ID\u003e\",\n    access_token: \"\u003cYOUR_ACCESS_TOKEN\u003e\",\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n\n## Instagram JSONP API\n\n* Docs: https://instagram.com/developer/endpoints/\n* Api Console: https://apigee.com/console/instagram\n* Username Converter: http://jelled.com/instagram/lookup-user-id\n\n## More angular-api-factories\n[bandsintown](https://github.com/JohnnyTheTank/angular-bandsintown-api-factory) - [dailymotion](https://github.com/JohnnyTheTank/angular-dailymotion-api-factory) - [facebook](https://github.com/JohnnyTheTank/angular-facebook-api-factory) - [flickr](https://github.com/JohnnyTheTank/angular-flickr-api-factory) - [footballdata](https://github.com/JohnnyTheTank/angular-footballdata-api-factory) - [github](https://github.com/JohnnyTheTank/angular-github-api-factory) - [openweathermap](https://github.com/JohnnyTheTank/angular-openweathermap-api-factory) - [tumblr](https://github.com/JohnnyTheTank/angular-tumblr-api-factory) - [vimeo](https://github.com/JohnnyTheTank/angular-vimeo-api-factory) - [wikipedia](https://github.com/JohnnyTheTank/angular-wikipedia-api-factory) - [youtube](https://github.com/JohnnyTheTank/angular-youtube-api-factory)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-instagram-api-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnythetank%2Fangular-instagram-api-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-instagram-api-factory/lists"}