Skip to main content

List Crawl Results

List all results for a specific crawl request.

Endpoint: GET /api/v1/core/crawl-requests/{uuid}/results/

Request Examples

from watercrawl import WaterCrawlAPIClient

# Initialize client
client = WaterCrawlAPIClient('your_api_key')

# List all results for a crawl request
results = client.get_crawl_request_results('123e4567-e89b-12d3-a456-426614174000')

# Print the results
for result in results['results']:
print(f"Page URL: {result['url']}")
print(f"Status: {result['status']}")

# Pagination page 2, 10 results per page
next_page = client.get_crawl_request_results('123e4567-e89b-12d3-a456-426614174000', page=2, page_size=10)

Response Example

{
'count': 123,
'next': 'https://api.watercrawl.dev/api/v1/core/crawl-requests/123e4567-e89b-12d3-a456-426614174000/results/?page=4',
'previous': 'https://api.watercrawl.dev/api/v1/core/crawl-requests/123e4567-e89b-12d3-a456-426614174000/results/?page=2',
'results': [
{
'uuid': '123e4567-e89b-12d3-a456-426614174000',
'url': 'https://example.com/page',
'status': 'success',
'result': "https://storage.watercrawl.dev/results/123e4567-e89b-12d3-a456-426614174000.json",
'attachments': [
{
'uuid': '095be615-a8ad-4c33-8e9c-c7612fbf6c9f',
'attachment': 'https://storage.watercrawl.dev/123e4567-e89b-12d3-a456-426614174000.pdf',
'attachment_type': 'pdf',
'filename': 'screenshot.pdf'
}
],
'created_at': '2024-01-01T00:00:00Z'
}
]
}

URL Parameters

ParameterTypeDescription
uuidstringThe UUID of the crawl request to list results for

Query Parameters

ParameterTypeDescription
pageintegerPage number for pagination
page_sizeintegerNumber of results per page