Skip to main content

List Crawl Requests

List all crawl requests.

Endpoint: GET /api/v1/core/crawl-requests/

Request Examples

from watercrawl import WaterCrawlAPIClient

# Initialize client
client = WaterCrawlAPIClient('your_api_key')

# List all crawl requests
crawls = client.get_crawl_requests_list()

# Print the results
for crawl in crawls['results']:
print(f"Crawl {crawl['uuid']}: Status={crawl['status']}")

# Pagination page 2, 10 results per page
next_page = client.get_crawl_requests_list(page=2, page_size=10)

Response Example

{
'count': 123,
'next': 'http://api.example.org/api/v1/core/crawl-requests/?page=4',
'previous': 'http://api.example.org/api/v1/core/crawl-requests/?page=2',
'results': [
{
'uuid': '123e4567-e89b-12d3-a456-426614174000',
'url': 'https://example.com',
'status': 'running',
'created_at': '2024-01-01T00:00:00Z',
'updated_at': '2024-01-01T00:00:00Z',
'number_of_documents': '42'
}
]
}

Query Parameters

ParameterTypeDescription
pageintegerPage number for pagination
page_sizeintegerNumber of results per page