Skip to main content

GET /discovery/:discoveryId/urls

This endpoint returns the list of URLs that were discovered by a specific discovery job. This should be called after the job has been completed.

Path Parameters

discoveryId
string
required
The ID of the discovery job.

Response

urls
array
An array of objects, where each object represents a discovered URL.
url
string
The discovered URL.
title
string
The title of the page.
total
number
The total number of URLs discovered.
discoveryMethod
string
The method used for the discovery.
completedAt
string
The timestamp for when the job was completed.
curl -X GET https://api.llmgenerator.com/api/v1/discovery/disc_xxxxxxxxxxxxx/urls \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "urls": [
    {
      "url": "https://www.example.com/",
      "title": "Example Domain"
    },
    {
      "url": "https://www.example.com/about",
      "title": "About Us"
    }
  ],
  "total": 2,
  "discoveryMethod": "full",
  "completedAt": "2023-10-27T10:00:00Z"
}