Poll this endpoint to check status of an Extraction Schema Generation request and retrieve final results
Python
import requests url = "https://www.datalab.to/api/v1/marker/extraction/gen_schemas/{request_id}" headers = {"X-API-Key": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
{ "status": "<string>", "success": true, "error": "<string>", "suggestions": { "simple_schema": "<string>", "moderate_schema": "<string>", "complex_schema": "<string>" }, "page_count": 123, "total_cost": 123 }
Successful Response
Show child attributes
Was this page helpful?