You must provide a brand or brand_id and a model or model_id to retrieve results. If you are using admin credentials to access the API you may omit these parameters but you should consider caching the results within your application. In addition to filtering based on the parameters below, you can pass <trait_name>:<trait value id> to filter by any instrument trait.
Code | Description |
---|---|
400 | The request was unacceptable, often due to missing a required parameter. |
curl -X GET -H "Authorization: XXXXX" "https://api.axefax.com/instruments?brand=fender&serial_number=4900&model_id=2530" { "pagination": { "per_page": 25, "total_pages": 1, "total_objects": 6 }, "instruments": [ { "id": 1846, "approved": true, "trait_values": { "fingerboard_inlay": [ "Dots-centered" ], "number_of_strings": [ "6" ], "number_of_pickups": [ "1" ], "pickup_1": [ "Transducer", "Magnetic" ], "soundhole": [ "4 Crescent-Shaped" ], "body_shape": [ "Dobro Woodbody Guitar Shape" ] }, "year_start": 1954, "year_end": 1954, "brand": { "id": 2, "name": "Fender", "approved": true }, "model": { "id": 2530, "name": "1954 Stratocaster", "approved": true, "brand_id": 2 }, "submodel": null, "images": [] }, .... ], "serial_number_ranges": [ { "id": 122, "name": "FENDER", "years": "1950 - 1954", "brand_id": 2, "created_at": "2016-01-12T22:27:43.964Z", "updated_at": "2016-01-12T22:28:08.424Z", "instrument_id": null } ] } ]
GET /instruments 200 { "pagination": { "per_page": 25, "total_pages": 0, "total_objects": 0 }, "instruments": [], "serial_number_ranges": [] }
Param name | Description |
---|---|
page optional |
Validations:
|
per_page optional |
Validations:
|
name optional |
Validations:
|
shallow optional |
Pass true to include trait values, or false to include the IDs of values (faster). Default: false. Validations:
|
brand optional |
Filter based on a brand name Validations:
|
brand_id optional |
Filter based on a brand id Validations:
|
model_id optional |
Filter based on a model id Validations:
|
submodel_id optional |
Filter based on a submodel id Validations:
|
year optional |
Filter based on a year Validations:
|
serial_number optional |
Filter based on a year provided by a serial number Validations:
|
approved optional |
Validations:
|
pending optional |
Validations:
|