Required Header:
x-api-key:YOUR_API_KEY// Example with fetch
fetch('https://desam.api.co/api/v1/locations/locations', {
headers: {
'x-api-key':'YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
// Example with curl
curl -H "x-api-key:YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://desam.api.co/api/v1/locations/locationshttps://desam.api.co/api/v1/locations:locationFilter by states, cities, or localities.pagePage number (default: 1)limitItems per page (default: 20, max: 100)nameSearch query (name or address)limitMaximum number of results (default: 10)PagePage number (default: 0)latLatitude for proximity searchlngLongitude for proximity searchradiusSearch radius in kilometers (default: 10){
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": [
{
"field": "coordinates.latitude",
"message": "Latitude must be between -90 and 90"
}
]
}
}