Skip to main content

GET /sites/:siteId

This endpoint returns detailed information about a single site, including its status and last generation options.

Path Parameters

siteId
string
required
The ID of the site to retrieve.

Response

id
string
The unique identifier for the site.
url
string
The URL of the site.
status
string
The current status of the site.
lastUpdated
string
The timestamp for when the site was last updated.
openaiEnabled
boolean
Indicates if OpenAI enhancement was used in the last generation.
totalMappedUrls
number
The total number of URLs mapped for the site.
curl -X GET https://api.llmgenerator.com/api/v1/sites/site_xxxxxxxxxxxxx \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "site_xxxxxxxxxxxxx",
  "url": "https://www.example.com",
  "userId": "user_xxxxxxxxxxxxx",
  "status": "active",
  "lastUpdated": "2023-10-27T10:01:00Z",
  "fileUrl": "https://files.llmgenerator.com/llms-xxxxxxxx.txt",
  "openaiEnabled": true,
  "totalMappedUrls": 50,
  "totalScrapedUrls": 50,
  "createdAt": "2023-10-20T10:00:00Z",
  "updatedAt": "2023-10-27T10:01:00Z"
}