GETGet Brands
https://cellphone-and-tablet.dataandapis.com/v1/brands
Parâmetros de consulta
| Parâmetro | Exemplo | |
|---|---|---|
| page | 1 | Opcional |
| pageSize | 5 | Opcional |
Exemplo de requisição
curl "https://cellphone-and-tablet.dataandapis.com/v1/brands?page=1&pageSize=5" \
-H "X-Api-Key: YOUR_API_KEY"// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.mobileDevices.getBrands({ page: 1, pageSize: 5 });# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.mobile_devices.get_brands(page=1, pageSize=5)Exemplo de resposta{
"items": [
{
"id": 1,
"name": "Acer"
},
{
"id": 2,
"name": "alcatel"
},
{
"id": 3,
"name": "Allview"
},
{
"id": 4,
"name": "Amazon"
},
{
"id": 5,
"name": "Amoi"
}
],
"meta": {
"totalItems": 125,
"itemCount": 5,
"itemsPerPage": 5,
"totalPages": 25,
…
Ver resposta completa
{
"items": [
{
"id": 1,
"name": "Acer"
},
{
"id": 2,
"name": "alcatel"
},
{
"id": 3,
"name": "Allview"
},
{
"id": 4,
"name": "Amazon"
},
{
"id": 5,
"name": "Amoi"
}
],
"meta": {
"totalItems": 125,
"itemCount": 5,
"itemsPerPage": 5,
"totalPages": 25,
…{
"items": [
{
"id": 1,
"name": "Acer"
},
{
"id": 2,
"name": "alcatel"
},
{
"id": 3,
"name": "Allview"
},
{
"id": 4,
"name": "Amazon"
},
{
"id": 5,
"name": "Amoi"
}
],
"meta": {
"totalItems": 125,
"itemCount": 5,
"itemsPerPage": 5,
"totalPages": 25,
"currentPage": 1
}
}


