scrape
Submit a scrape request (auto or manual proxy mode; async, or wait for the result directly)
post/v1/scrape
Request
- Base URL: https://barchin.net/api
- URL: https://barchin.net/api/v1/scrape
- Auth: HTTP bearer
Query parameters
waitinteger
0 (default) = async, returns request_id. N > 0 = wait up to N seconds for the result. ۰ (پیشفرض) = async و برگرداندن request_id. عدد > ۰ = تا این تعداد ثانیه منتظر نتیجه بمان و همان را مستقیم برگردان (سقف سرور: SYNC_MAX_WAIT_SECONDS)؛ اگر در این مدت آماده نشد، ۲۰۲ با request_id برمیگردد — درخواست ادامه دارد و شکست نخورده است. برای اجراهای طولانی (مثلاً آنبلاکر) async بفرستید و status_url را poll کنید.
format'html' | 'markdown' | 'text'
Result format. markdown/text are derived from the stored HTML at read time at no extra cost.
max_charsinteger nullable
Truncate markdown/text to this many characters; sets truncated=true.
Request body
Example request
{
"url": "https://example.com/products?page=2",
"country": "ir",
"wait_for": ".product-price"
}Response
نتیجهی آماده (حالت wait)
Changes
No recorded changes to this operation across all 1 revision of this API.