swagger: '2.0'
info:
description: '
The setlist.fm API has been designed to give you easy access to setlist data in order to build fancy websites and
other applications. Before starting to use the API, be sure to ...
- ... understand how setlist.fm works (the FAQ and the
Guidelines are a good starting point),
- ... read this documentation carefully and
- ... apply for an API key (link for logged in users only) - if
you''re no registered user yet, then register first (it''s free).
If this documentation isn''t enough or if you''ve got other things you''d like to tell us about the API, visit the
API Forum.
Note that the setlist.fm API is, according to the API terms of
service, only free for non-commercial projects. If you''re interested in using the API for commercial purposes,
contact us.
About this Service
This service provides methods to get both setlists and components of setlists such as artists, cities, countries or
venues.
Supported Content Types
The REST service currently supports XML (default) and JSON content.
To receive a JSON response, set the Accept
header to application/json.
Internationalization
(Please note that this is an experimental feature and does not work for all cities!)
Most of the featured methods honor the Accept-Language
header. This header is used for
localizing cities and countries. The default language is English (en), but you can provide any of the languages
Spanish (es), French (fr), German (de), Portuguese (pt), Turkish (tr), Italian (it) or Polish (pl).
E.g. if you search a setlist for a concert that took place in Vienna and you pass "de" as header, you''ll
get "Wien, Österreich" instead of "Vienna, Austria".
This also works if you use a different language than the country''s native language.
E.g. for a concert in New York, you''ll get "Nueva York, Estados Unidos" instead of "New
York, United States" if you pass "es" as language.
API Keys
API keys (application form) must be included in the request with
the x-api-key header.
Version History
| Version |
Docs |
End of Service |
| 1.0 |
Docs |
-
|
| 0.1 |
|
December 31, 2017
|
'
version: '1.0'
title: setlist.fm /1.0/artist/{mbid} /1.0/artist/{mbid} /1.0/search/countries API
basePath: /rest
schemes: []
tags:
- name: /1.0/search/countries
paths:
/1.0/search/countries:
get:
tags:
- /1.0/search/countries
summary: Get a complete list of all supported countries.
description: Get a complete list of all supported countries.
operationId: resource__1.0_search_countries_getCountries_GET
produces:
- application/xml
- application/json
parameters: []
responses:
'200':
schema:
description: ''
$ref: '#/definitions/json_Countries'
headers: {}
examples:
application/json:
country:
- code: US
name: United States
- code: '...'
name: '...'
total: 42
page: 1
itemsPerPage: 20
description: Success
definitions:
json_Country:
type: object
title: country
properties:
code:
example: US
description: 'The country''s ISO code. E.g.
"ie" for Ireland'
type: string
name:
example: United States
description: 'The country''s name. Can be a localized name - e.g. "Austria" or
"Österreich" for Austria if the German name was requested.'
type: string
example:
code: US
name: United States
description: This class represents a country on earth.
json_Countries:
type: object
title: countries
properties:
country:
description: result list of countries
type: array
items:
$ref: '#/definitions/json_Country'
total:
example: 42
description: the total amount of items matching the query
type: number
page:
example: 1
description: the current page. starts at 1
type: number
itemsPerPage:
example: 20
description: the amount of items you get per page
type: number
example:
country:
- code: US
name: United States
- code: '...'
name: '...'
total: 42
page: 1
itemsPerPage: 20
description: A Result consisting of a list of countries.