Skip to main content
The /api/openclaw/scrape endpoint fetches a public web page and returns structured data: the page title, meta description, headings, links, and readable text content. Scripts, styles, navigation, and footer elements are stripped before the text is extracted. The endpoint costs 10 credits per successful call — credits are refunded automatically if the fetch fails.

Request

Method: POST
URL: https://onyxiq.in/api/openclaw/scrape
Authentication: Required (session cookie). Returns 401 if missing.
Content-Type: application/json

Body parameters

url
string
required
The public HTTP or HTTPS URL of the page to scrape. Must be a fully-qualified URL with a valid http: or https: scheme. Relative paths and other protocols are rejected.

Response

200 — success

Credits are only deducted when the endpoint returns a 200 response. If the fetch fails for any reason, the 10 credits are refunded to your account automatically.
ok
boolean
required
Always true on a successful response.
data
object
required
The scraped page data.
creditsUsed
number
required
Number of credits deducted for this request. Always 10.
remainingBalance
number
required
Your credit balance after the deduction.

Error responses

Examples

Example success response