List of Bands

GET /v1/entities/band

Retrieves a list of bands.

Request Parameters

Location Parameter Type Required/ Optional Description
query offset number optional The numeric offset of the first record to return. May be a value between 1 and 100,000 inclusive
query cursor string optional The cursor ID of the first record to return. Example: slightly_less_than_epic
query limit number optional The number of records to return. May be a value between 1 and 100 inclusive. If a value is not specified, the default is 10
query id string optional Filter. Will match to records whose id contains the given string
query name string optional Filter. Will match to records whose name contains the given string
query instruments.id string optional Filter. Will match to records that possess an instrument whose id contains the given string
query instruments.name string optional Filter. Will match to records that possess an instrument whose name contains the given string
query tags.id string optional Filter. Will match to records that possess a tag whose id contains the given string
query tags.name string optional Filter. Will match to records that possess a tag whose name contains the given string
query tags.category string optional Filter. Will match to records that possess a tag whose category contains the given string

For a description of how to use these query parameters, see Pagination.

Example Request

GET /v1/entities/band?offset=0&limit=2 HTTP/1.1
Host: api.ampermusic.com
Content-Type: application/vnd.api+json
Authorization: Basic abcxyz

Response Data

Data Item Type Description
data array
data[].type string The type of data (entity_band in this case)
data[].id string The string ID of the band
data[].attributes object
data[].attributes.name string The string name of the band
data[].attributes.instruments array
data[].attributes.instruments[].id string The string id of the instrument
data[].attributes.instruments[].name string The string name of the instrument
data[].attributes.preview array
data[].attributes.preview[].url string The string url of the band’s preview file
data[].attributes.preview[].content_type string enum The content type of the preview. Of the following values:
audio/mp3
audio/ogg
data[].attributes.tags array
data[].attributes.tags[].id string The string id of the tag
data[].attributes.tags[].name string The string name of the tag
data[].attributes.tags[].category string The string category of the tag
data[].links object
data[].links.self string The URL of the band
links object
links.self string The URL of this list of bands
links.first string The URL of the first (or possibly only) page of results. It is always available
links.prev string The URL of the previous page of results when using offset/limit mode. It is omitted if there is no previous page and is not available in cursor/limit mode
links.next string The URL of the next page of results when using offset/limit mode. It is omitted if there are no additional pages and is available on the first page, and on any subsequent page, accessed with offset/limit mode
links.next_cursor string The URL of the next page of results when using cursor/limit mode. It is omitted if there are no additional pages and is available on the first page, and on any subsequent page, accessed with cursor/limit mode

Example Response

Header

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

Body

{
	"data": [
		{
			"attributes": {
				"instruments": [
					{
						"id": "studio_djembe",
						"name": "Djembe - Full"
					},
					{
						"id": "chorused_five_string_bass",
						"name": "5 String Bass - Thick"
					}
				],
				"name": "Slightly less than epic",
				"preview": [
					{
						"content_type": "audio/mp3",
						"url": "<some_url>"
					},
					{
						"content_type": "audio/ogg",
						"url": "<some_url>"
					}
				],
				"tags": [
					{
						"category": "band_size",
						"id": "large",
						"name": "Large"
					},
					{
						"category": "descriptor",
						"id": "documentary_minimal_intriguing",
						"name": "Documentary Minimal Intriguing"
					}
				]
			},
			"id": "slightly_less_than_epic",
			"links": {
				"self": "https://api.ampermusic.com/v1/entities/band/slightly_less_than_epic"
			},
			"type": "entity_band"
		},
		{
			"attributes": {
				"instruments": [],
				"name": "Small strings",
				"preview": [
					{
						"content_type": "audio/mp3",
						"url": "<some_url>"
					},
					{
						"content_type": "audio/ogg",
						"url": "<some_url>"
					}
				],
				"tags": [
					{
						"category": "band_size",
						"id": "small",
						"name": "Small"
					},
					{
						"category": "descriptor",
						"id": "cinematic_minimal_dark",
						"name": "Cinematic Minimal Dark"
					}
				]
			},
			"id": "small_strings",
			"links": {
				"self": "https://api.ampermusic.com/v1/entities/band/small_strings"
			},
			"type": "entity_band"
		}
	],
	"links": {
		"first": "https://api.ampermusic.com/v1/entities/band?limit=2",
		"next": "https://api.ampermusic.com/v1/entities/band?limit=2&offset=2",
		"next_cursor": "https://api.ampermusic.com/v1/entities/band?limit=2&cursor=beginning_of_a_nightmare",
		"self": "https://api.ampermusic.com/v1/entities/band?limit=2"
	}
}