curl --request GET \
--url https://api.syntage.com/datasources/mx/addresses/{postalCode} \
--header 'X-API-Key: <api-key>'
{
"@context": "/contexts/MxPostalCodeAddress",
"@id": "/datasources/mx/addresses/11510",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/.well-known/genid/f2d82cee1ffcca39dbd2",
"@type": "MxPostalCodeAddress",
"postalCode": "11510",
"neighborhood": "Los Morales",
"neighborhoodType": "Colonia",
"municipality": "Miguel Hidalgo",
"state": "Ciudad de México",
"stateCode": "CMX",
"city": "Cd de Mexico",
"officeKey": "01234"
}
],
"hydra:totalItems": 1,
"hydra:view": {
"@id": "<string>",
"@type": "hydra:PartialCollectionView",
"hydra:first": "<string>",
"hydra:next": "<string>",
"hydra:last": "<string>"
},
"hydra:search": {
"@type": "<string>",
"hydra:template": "<string>",
"hydra:variableRepresentation": "<string>",
"hydra:mapping": [
{
"@type": "<string>",
"variable": "<string>",
"property": "<string>",
"required": true
}
]
}
}
curl --request GET \
--url https://api.syntage.com/datasources/mx/addresses/{postalCode} \
--header 'X-API-Key: <api-key>'
{
"@context": "/contexts/MxPostalCodeAddress",
"@id": "/datasources/mx/addresses/11510",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/.well-known/genid/f2d82cee1ffcca39dbd2",
"@type": "MxPostalCodeAddress",
"postalCode": "11510",
"neighborhood": "Los Morales",
"neighborhoodType": "Colonia",
"municipality": "Miguel Hidalgo",
"state": "Ciudad de México",
"stateCode": "CMX",
"city": "Cd de Mexico",
"officeKey": "01234"
}
],
"hydra:totalItems": 1,
"hydra:view": {
"@id": "<string>",
"@type": "hydra:PartialCollectionView",
"hydra:first": "<string>",
"hydra:next": "<string>",
"hydra:last": "<string>"
},
"hydra:search": {
"@type": "<string>",
"hydra:template": "<string>",
"hydra:variableRepresentation": "<string>",
"hydra:mapping": [
{
"@type": "<string>",
"variable": "<string>",
"property": "<string>",
"required": true
}
]
}
}
Your API key is available in the Production and Sandbox dashboards.
"11510"
MX addresses
The response is of type object
.