Receiving a Result

    Poll this endpoint to retrieve the result of a submitted URL scraping task.

    Endpoint

    GET /api/parsing/result/url/{requestId}

    Keep polling until status is no longer "parsing".

    Path Parameters

    NameTypeRequiredDescription
    requestIdstring (uuid)yesTask ID returned from the submit endpoint

    Example Request

    curl https://app.scrapering.com/api/parsing/result/url/YOUR_REQUIEST_ID \
      --header 'Authorization: Bearer YOUR_API_KEY'
    

    Responses

    In progress — task is still being processed:

    {
      "status": "parsing"
    }
    

    Ready — task completed successfully:

    {
      "url": "https://example.com",
      "content": "<html>...</html>",
      "cookies": [],
      "success": true,
      "screenshot": null
    }
    

    screenshot contains a base64-encoded image when takeScreenshot was set to true in the request, otherwise null.

    Important! Screenshot is stored for 3 hours after the scrape.
    Scraped content is stored for 7 days after the scrape.
    Save the results on your side so you don't lose them.

    Next steps

    • Webhook — receive the result via callback instead of polling
    • Creating a task — back to the submit endpoint reference