{"id":15024680,"url":"https://github.com/johnnythetank/angular-bandsintown-api-factory","last_synced_at":"2025-04-12T06:41:37.740Z","repository":{"id":57178028,"uuid":"48771312","full_name":"JohnnyTheTank/angular-bandsintown-api-factory","owner":"JohnnyTheTank","description":"AngularJS factory for Bandsintown JSON REST API requests","archived":false,"fork":false,"pushed_at":"2016-10-01T08:11:04.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T22:01:43.574Z","etag":null,"topics":["angular","angular-factory","angularjs","api","bandsintown","bandsintown-api","events","factory","music"],"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/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-12-29T23:20:10.000Z","updated_at":"2018-04-29T01:31:01.000Z","dependencies_parsed_at":"2022-09-14T02:01:11.557Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyTheTank/angular-bandsintown-api-factory","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bandsintown-api-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bandsintown-api-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bandsintown-api-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bandsintown-api-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyTheTank","download_url":"https://codeload.github.com/JohnnyTheTank/angular-bandsintown-api-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530610,"owners_count":21119591,"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":["angular","angular-factory","angularjs","api","bandsintown","bandsintown-api","events","factory","music"],"created_at":"2024-09-24T20:00:44.000Z","updated_at":"2025-04-12T06:41:37.705Z","avatar_url":"https://github.com/JohnnyTheTank.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**angular-bandsintown-api-factory** is an angularjs module with a bandsintown v2 api factory.\n\n[![npm version](https://badge.fury.io/js/angular-bandsintown-api-factory.svg)](https://badge.fury.io/js/angular-bandsintown-api-factory)\n[![Bower version](https://badge.fury.io/bo/angular-bandsintown-api-factory.svg)](https://badge.fury.io/bo/angular-bandsintown-api-factory)\n\nAuthor: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))\n\n## Usage\n1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:\n    1. `bower install --save angular-bandsintown-api-factory`\n    2. `npm install --save angular-bandsintown-api-factory`\n    3. download [angular-bandsintown-api-factory.zip](https://github.com/JohnnyTheTank/angular-bandsintown-api-factory/zipball/master)\n\n2. Include dependencies in your HTML.\n    1. When using bower:\n    ```html\n    \u003cscript src=\"bower_components/angular-bandsintown-api-factory/dist/angular-bandsintown-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n    2. When using npm:\n    ```html\n    \u003cscript src=\"node_modules/angular-bandsintown-api-factory/dist/angular-bandsintown-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n    3. when using downloaded files\n    ```html\n    \u003cscript src=\"angular-bandsintown-api-factory.min.js\"\u003e\u003c/script\u003e\n    ```\n3. Add **`jtt_bandsintown`** to your application's module dependencies.\n4. Use the factory `bandsintownFactory`\n\n### factory methods\n\n#### getArtist\nGet all parameters [here](http://bandsintown.com/api/requests#artists-get)\n```js\n// all parameters: http://bandsintown.com/api/requests#artists-get\nbandsintownFactory.getArtist({\n    artist:\"\u003cARTIST_NAME\u003e\", // ? and / characters must be double escaped. Artists such as \"AC/DC\" will end up as \"AC%252FDC\"\n    artist_id:\"\u003cARTIST_ID\u003e\", // (optional) fallback: mbid_\u003cid\u003e (MusicBrainz ID), fbid_\u003cid\u003e (Facebook Page ID)\n    app_id:\"\u003cYOUR_APP_ID\u003e\", //The application ID can be anything, but should be a word that describes your application or company.\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n#### getEvents\nGet all parameters [here](http://bandsintown.com/api/requests#artists-events)\n```js\n// all parameters: http://bandsintown.com/api/requests#artists-events\nbandsintownFactory.getEventsFromArtist({\n    artist:\"\u003cARTIST_NAME\u003e\", // ? and / characters must be double escaped. Artists such as \"AC/DC\" will end up as \"AC%252FDC\"\n    artist_id:\"\u003cARTIST_ID\u003e\", // (optional) fallback: mbid_\u003cid\u003e (MusicBrainz ID), fbid_\u003cid\u003e (Facebook Page ID)\n    date:\"\u003cDATE\u003e\", // (optional) (default: upcoming) yyyy-mm-dd || yyyy-mm-dd,yyyy-mm-dd (inclusive range) || upcoming || all\n    app_id:\"\u003cYOUR_APP_ID\u003e\", //The application ID can be anything, but should be a word that describes your application or company.\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\nGet all parameters [here](http://bandsintown.com/api/requests#artists-event-search)\n```js\n// all parameters: http://bandsintown.com/api/requests#artists-event-search\nbandsintownFactory.getEventsFromArtistByLocation({\n    artist:\"\u003cARTIST_NAME\u003e\", // ? and / characters must be double escaped. Artists such as \"AC/DC\" will end up as \"AC%252FDC\"\n    artist_id:\"\u003cARTIST_ID\u003e\", // (optional) fallback: mbid_\u003cid\u003e (MusicBrainz ID), fbid_\u003cid\u003e (Facebook Page ID)\n    date:\"\u003cDATE\u003e\", // (optional) (default: upcoming) yyyy-mm-dd || yyyy-mm-dd,yyyy-mm-dd (inclusive range) || upcoming || all\n    location:\"\u003cLOCATION\u003e\", // city,state (US or CA) || city,country || lat,lon || ip address\n    radius:\"\u003cRADIUS\"\u003e, // (optional) (default: 25) in miles. valid values: 0-150\n    app_id:\"\u003cYOUR_APP_ID\u003e\", //The application ID can be anything, but should be a word that describes your application or company.\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\nGet all parameters [here](http://bandsintown.com/api/requests#artists-recommended-events)\n```js\n// all parameters: http://bandsintown.com/api/requests#artists-recommended-events\nbandsintownFactory.getRecommendedEventsFromArtistByLocation({\n    artist:\"\u003cARTIST_NAME\u003e\", // ? and / characters must be double escaped. Artists such as \"AC/DC\" will end up as \"AC%252FDC\"\n    artist_id:\"\u003cARTIST_ID\u003e\", // (optional) fallback: mbid_\u003cid\u003e (MusicBrainz ID), fbid_\u003cid\u003e (Facebook Page ID)\n    date:\"\u003cDATE\u003e\", // (optional) (default: upcoming) yyyy-mm-dd || yyyy-mm-dd,yyyy-mm-dd (inclusive range) || upcoming || all\n    location:\"\u003cLOCATION\u003e\", // city,state (US or CA) || city,country || lat,lon || ip address\n    radius:\"\u003cRADIUS\"\u003e, // (optional) (default: 25) in miles. valid values: 0-150\n    only_recs:\"\u003cONLY_RECS\u003e\", // (optional) (default: false) if true, the response will only include matching events for artists similar to the specified artist. if false, the response may also include matching events for the specified artist.\n    app_id:\"\u003cYOUR_APP_ID\u003e\", //The application ID can be anything, but should be a word that describes your application or company.\n}).then(function (_data) {\n    //on success\n}).catch(function (_data) {\n    //on error\n});\n```\n\n## Bandsintown V2 JSON API\nDocs: http://bandsintown.com/api/requests\n\n## More angular-api-factories\n**bandsintown** - [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-bandsintown-api-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnythetank%2Fangular-bandsintown-api-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-bandsintown-api-factory/lists"}