cURL
curl --request POST \ --url https://api.weblinq.dev/v1/web/scrape \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "<string>", "elements": [ { "selector": "<string>", "attributes": [ "<string>" ] } ], "waitTime": 0, "headers": {} }'
{ "success": true, "data": { "elements": [ { "selector": "<string>", "data": {} } ], "metadata": { "url": "<string>", "timestamp": "<string>", "elementsFound": 123 } }, "creditsCost": 123, "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "timestamp": "2023-11-07T05:31:56Z" }
Extract specific HTML elements using CSS selectors
Enter your API token or session token
Element scraping parameters
The body is of type object.
object
Elements scraped successfully
The response is of type object.