> For the complete documentation index, see [llms.txt](https://docs.sendstackhq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sendstackhq.com/delivery-api/locations/get-delivery-locations.md).

# Get Mapped Locations

## Get Delivery Locations&#x20;

<mark style="color:blue;">`GET`</mark> `{baseUrl}/locations`

This endpoint allows you to view mapped delivery locations and their location code. \
\
Latitude and longitude or location code are required when requesting deliveries.&#x20;

**Query Parameters**

| Name    | Type   | Description           |
| ------- | ------ | --------------------- |
| country | string | 2-letter country code |

{% tabs %}
{% tab title="200 Locations fetched successfully" %}

```
{
    "status": true,
    "message": "Locations successfully retrieved",
    "data": [
        {
            "state": "Lagos State",
            "locals": [
                {
                    "name": "Ajah",
                    "locationCode": "01"
                }
                {
                    "name": "Ajeromi-Ifelodun",
                    "locationCode": "02"
                },
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

```json
// Sample Response Body - 200 OK
{
    "status": true,
    "message": "Locations fetched successfully",
    "data": [
        {
            "state": "Abia",
            "locals": [
                {
                    "name": "Aba North",
                    "locationCode": "IZJJ",
                    "isAvailable": true,
                    "isLockerAvailable": false
                },
                //...truncated for brevity
}

```
