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

# Get Mapped URLs

> This endpoint retrieves the mapped URLs for a site.

## GET /sites/{siteId}/urls

This endpoint returns a list of all URLs that were processed during generation for a specific site, along with their metadata.

### Path Parameters

<ParamField path="siteId" type="string" required>
  The ID of the site.
</ParamField>

### Query Parameters

<ParamField query="page" type="number" default="1">
  Page number for pagination.
</ParamField>

<ParamField query="limit" type="number" default="50">
  Number of URLs per page (max 100).
</ParamField>

<ParamField query="status" type="string">
  Filter by status: `pending`, `scraped`, or `failed`.
</ParamField>

### Response

<ResponseField name="urls" type="array">
  An array of mapped URL objects.

  <Expandable title="url properties">
    <ResponseField name="id" type="string">
      The unique identifier for the mapped URL.
    </ResponseField>

    <ResponseField name="url" type="string">
      The URL.
    </ResponseField>

    <ResponseField name="title" type="string">
      The page title.
    </ResponseField>

    <ResponseField name="description" type="string">
      The page description (AI-enhanced if using enhanced method).
    </ResponseField>

    <ResponseField name="status" type="string">
      Processing status: `pending`, `scraped`, or `failed`.
    </ResponseField>

    <ResponseField name="lastModified" type="string">
      Last modification date (if available from sitemap).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="number">
  Total number of mapped URLs.
</ResponseField>

<ResponseField name="page" type="number">
  Current page number.
</ResponseField>

<ResponseField name="totalPages" type="number">
  Total number of pages.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000/urls?limit=20" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000/urls',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "urls": [
      {
        "id": "url_abc123",
        "siteId": "550e8400-e29b-41d4-a716-446655440000",
        "url": "https://example.com/",
        "title": "Example Domain - Home",
        "description": "Welcome to Example Domain, your comprehensive resource for...",
        "status": "scraped",
        "lastModified": "2026-01-15T00:00:00.000Z"
      },
      {
        "id": "url_def456",
        "siteId": "550e8400-e29b-41d4-a716-446655440000",
        "url": "https://example.com/about",
        "title": "About Us",
        "description": "Learn about our mission and team.",
        "status": "scraped",
        "lastModified": null
      }
    ],
    "total": 47,
    "page": 1,
    "totalPages": 3
  }
  ```

  ```json Not Found (404) theme={null}
  {
    "message": "Site not found"
  }
  ```
</ResponseExample>
