/api/v1/augment/scrape
Tools
استخراج محتوى الويب
Scrape a web page and return its content as markdown. Supports most public web pages; some sites (e.g. X/Twitter, Reddit) that block automated access are rejected immediately.
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
POST
/api/v1/augment/scrape
أرسل عنوان URL يمكن الوصول إليه علنًا في حقل
url. تُعيد الـ API محتوى الصفحة بصيغة markdown.
يحاول الـ scraper أولًا الاعتماد على دعم markdown الأصلي للموقع المستهدف (عبر Cloudflare Markdown for Agents)، ثم يعود إلى الاستخراج عبر متصفح headless. بعض المواقع التي تمنع الوصول الآلي (مثل X/Twitter و Reddit) يتم رفضها فورًا بخطأ 400.
التسعير: $0.01 لكل طلب.
مثال (cURL)
التفويضات
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
الجسم
application/json
The URL to scrape
مثال:
"https://example.com"