> ## 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 Discovered URLs

> This endpoint retrieves the URLs found by a discovery job.

## GET /discovery/{discoveryId}/urls

This endpoint returns the list of URLs that were discovered by a specific discovery job. The job should be completed before calling this endpoint.

### Path Parameters

<ParamField path="discoveryId" type="string" required>
  The ID of the discovery job.
</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>

### Response

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

  <Expandable title="url properties">
    <ResponseField name="url" type="string">
      The discovered URL.
    </ResponseField>

    <ResponseField name="title" type="string">
      The page title (if available).
    </ResponseField>

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

<ResponseField name="total" type="number">
  The total number of URLs discovered.
</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/discovery/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/discovery/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": [
      {
        "url": "https://example.com/",
        "title": "Example Domain - Home",
        "lastModified": "2026-01-15T00:00:00.000Z"
      },
      {
        "url": "https://example.com/about",
        "title": "About Us",
        "lastModified": "2026-01-10T00:00:00.000Z"
      },
      {
        "url": "https://example.com/contact",
        "title": "Contact",
        "lastModified": null
      }
    ],
    "total": 47,
    "page": 1,
    "totalPages": 3
  }
  ```
</ResponseExample>
