MobileAPI Browse Devices by Type and Year
A 3-step recipe with MobileAPI.dev. We can help you get access.
Recipe · 3 steps
MobileAPI Browse Devices by Type and Year
with MobileAPI.dev
List devices by type, then by launch year, branching on empty 204 slices.
- List the first page of devices of the requested type. A 204 here would mean no devices exist for the type; a 200 returns the paginated slice.
- List devices launched in the requested year. The endpoint returns 200 with a slice when matches exist and 204 when the year has no devices.
- Re-read the first page of the year slice to surface the first matching device for the requested type and year combination.
What you'll need to have ready
- apiKey: MobileAPI key, sent in the Authorization header as 'Token <apiKey>'.
- type: Device type facet to browse.
- year: Four-digit launch year to narrow to (e.g. 2023).
- page: Page number for both listings (default 1, 50 per page).
For your developer
Arazzo workflow mobileapi-dev:browse-by-type-and-year, 3 operations: devices_by_type → devices_by_year → devices_by_year. Specs on APIs.io.