addresses
addresses
Page 10 of 15.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/addresses?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/addresses.d.ts https://example-data.com/types/addresses.d.ts
import type { Address, ListEnvelope } from "./types/addresses";
const res = await fetch(
"https://example-data.com/api/v1/addresses?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Address>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 217,
"userId": 158,
"label": "other",
"recipient": "Bennie O'Hara",
"street1": "558 Buckingham Road",
"street2": null,
"city": "Fort Francisca",
"region": "Vermont",
"postalCode": "70182",
"countryAlpha2": "ES",
"isDefault": false,
"createdAt": "2024-10-23T20:35:01.012Z"
},
{
"id": 218,
"userId": 159,
"label": "work",
"recipient": "Miss Meredith Will",
"street1": "6435 Evie Fall",
"street2": "Apt. 992",
"city": "New Keely",
"region": "Maryland",
"postalCode": "96253",
"countryAlpha2": "CA",
"isDefault": true,
"createdAt": "2025-04-10T22:32:23.210Z"
},
{
"id": 219,
"userId": 159,
"label": "billing",
"recipient": "Mr. Armando Wisoky",
"street1": "30241 Hahn Orchard",
"street2": null,
"city": "Gerholdside",
"region": "Rhode Island",
"postalCode": "36443",
"countryAlpha2": "KR",
"isDefault": false,
"createdAt": "2025-12-09T10:39:33.408Z"
}
],
"meta": {
"page": 10,
"limit": 24,
"total": 345,
"totalPages": 15
},
"links": {
"self": "/api/v1/addresses?page=10&limit=24",
"first": "/api/v1/addresses?page=1&limit=24",
"last": "/api/v1/addresses?page=15&limit=24",
"next": "/api/v1/addresses?page=11&limit=24",
"prev": "/api/v1/addresses?page=9&limit=24"
}
}