Scraper
Rerun an AI Scraper
This endpoint reruns an existing AI-powered 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. - The parameters below can be modified only for the AI Map Agent Scraper:
maxDepthmaxPageslimitincludePatternsexcludePatterns
x-api-token<token>
In: header
Header Parameters
acceptstring
Value in
"application/json"scraperIdstring
Unique identifier of the scraper to rerun
Format
uuidurlstring
URL to scrape
Format
urimaxDepth?number
Maximum depth for crawling links
Default
2maxPages?number
Maximum number of pages to scrape
Default
50limit?number
Limit the number of results
Default
1000includePatterns?string
Regex pattern to include specific URLs
excludePatterns?string
Regex pattern to exclude specific URLs
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-ai-rerun" \ -H "accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "scraperId": "4f6a04d6-7dc9-4676-bddf-edd19497b1dd", "url": "https://shopee.co.id/" }'{
"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
}