Skip to main content

Get Crawl Request

Get details of a specific crawl request.

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

Request Examples

from watercrawl import WaterCrawlAPIClient

# Initialize client
client = WaterCrawlAPIClient('your_api_key')

# Get crawl request details
crawl = client.get_crawl_request('123e4567-e89b-12d3-a456-426614174000')

print(f"Crawl Status: {crawl['status']}")
print(f"Documents Found: {crawl['number_of_documents']}")

Response Example

{
'uuid': '123e4567-e89b-12d3-a456-426614174000',
'url': 'https://example.com',
'status': 'running',
'options': {
'spider_options': {
'max_depth': 2,
'page_limit': 100,
'allowed_domains': ['example.com'],
'exclude_paths': ['/private/*'],
'include_paths': ['/blog/*']
},
'page_options': {
'exclude_tags': ['nav', 'footer', 'aside'],
'include_tags': ['article', 'main'],
'wait_time': 100,
'include_html': False,
'only_main_content': True,
'include_links': False
},
'plugin_options': {
// Optional plugin-specific configuration
}
},
'created_at': '2024-01-01T00:00:00Z',
'updated_at': '2024-01-01T00:00:00Z',
'number_of_documents': '42'
}

URL Parameters

ParameterTypeDescription
uuidstringThe UUID of the crawl request to retrieve