Scraper

Rerun a Manual Scraper

This endpoint reruns an existing manual scraper configuration by specifying the scraperId and the url.

Note

Use the V3 Platform API Server (https://api.app.mrscraper.com) host when calling this endpoint.

POST
/api/v1/scrapers-manual-rerun
x-api-token<token>

In: header

Header Parameters

acceptstring
Value in"application/json"
scraperIdstring

Unique identifier of the scraper to rerun

Formatuuid
urlstring

URL to scrape

Formaturi
workflow?

Array of workflow steps to execute during scraping

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.app.mrscraper.com/api/v1/scrapers-manual-rerun" \  -H "accept: application/json" \  -H "Content-Type: application/json" \  -d '{    "scraperId": "600e1d1c-4606-44b0-95e3-ce6c3789b380",    "url": "https://books.toscrape.com/",    "workflow": [      {        "type": "extract",        "data": {          "extraction_type": "text",          "attribute": null,          "name": "book",          "selector": "h3 a"        }      }    ],    "record": false,    "paginator": {      "type": "query_pagination",      "max_page": 1,      "enabled": false    }  }'
{
  "success": true,
  "data": {},
  "html_path": "string",
  "token_usage": 0,
  "status": "completed",
  "error": "string",
  "screenshot_path": "string",
  "screenshot_url": "http://example.com"
}
{
  "message": "Invalid or missing API token",
  "error": "Unauthorized",
  "statusCode": 401
}
{
  "message": "You do not have permission to access this resource",
  "error": "Forbidden",
  "statusCode": 403
}
{
  "message": "Resource not found",
  "error": "Not Found",
  "statusCode": 404
}
{
  "message": "Validation failed",
  "error": "Unprocessable Entity",
  "statusCode": 422
}
{
  "message": "An unexpected error occurred",
  "error": "Internal Server Error",
  "statusCode": 500
}