> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okasie.be/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Location Listings

> Retrieve listings for a specific dealer location

# Get Location Listings

Retrieve all listings for a specific dealer location. Supports the same filters as the main listings endpoint.

## Path Parameters

<ParamField path="id" type="string" required>
  Location profile UUID
</ParamField>

## Query Parameters

<ParamField query="includeChildren" type="boolean" default="false">
  Include listings from child locations
</ParamField>

<ParamField query="page" type="integer" default="1">
  Page number (1-based). Alias: `page_number`
</ParamField>

<ParamField query="pageSize" type="integer" default="50">
  Number of items per page (max 200). Aliases: `page_size`, `limit`
</ParamField>

<ParamField query="status" type="string" default="active">
  Filter by listing status: `active`, `pending`, `sold`, `draft`, or `all`
</ParamField>

<ParamField query="updatedSince" type="string">
  ISO 8601 datetime for incremental sync. Alias: `updated_since`
</ParamField>

<ParamField query="locationCode" type="string">
  Filter by location code (case-insensitive). Alias: `location_code`
</ParamField>

## Response

Same response format as [List Listings](/api-reference/listings/list).

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://www.okasie.be/api/external/v1/locations/7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f/listings?status=active&includeChildren=true" \
    -H "Authorization: Bearer YOUR_API_SECRET"
  ```

  ```javascript Node.js theme={null}
  const locationId = "7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f";
  const response = await fetch(
    `https://www.okasie.be/api/external/v1/locations/${locationId}/listings?status=active`,
    {
      headers: {
        Authorization: `Bearer ${process.env.PARTNER_SECRET}`,
      },
    }
  );

  const data = await response.json();
  console.log(`Found ${data.pagination.totalItems} listings`);
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "data": [
      {
        "id": "46c7f6c9-70f7-4f98-8c32-12f1a67c6f2e",
        "title": "Opel Corsa 1.2 Turbo",
        "status": "active",
        "price": 19995,
        "brand": "Opel",
        "model": "Corsa",
        "carPassUrl": "https://public.car-pass.be/vhr/example",
        "dealer": {
          "id": "7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f",
          "locationCode": "DEX-GENT",
          "displayName": "DEX Gent"
        }
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 50,
      "totalItems": 45,
      "totalPages": 1
    },
    "meta": {
      "partner": {
        "id": "partner-id"
      }
    }
  }
  ```
</ResponseExample>

## Error Responses

| Status | Code           | Description                     |
| ------ | -------------- | ------------------------------- |
| 401    | `UNAUTHORIZED` | Invalid or missing API key      |
| 404    | `NOT_FOUND`    | Location not found or no access |
