Simple JS demo
Replace ‘your_token’ with your actual token provided by the service. This code will make a GET request to the ExtractorBot API with the specified URL as a parameter, and the response will be returned as HTML in JSON.
const token = 'your_token';
const url = 'https://hackernews.com';
fetch(`https://api.extractorbot.com/scrape?token=${token}&url=${url}`)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
How to get API token?
To purchase API requests and obtain an access token, please visit our online store at https://extractorbot.com/index.php/shop/. Our pricing plans usually start at just $0.001 per request, which means that if you purchase 5,000 requests, it will cost you only $5. Once the payment is complete, you will be able to view your token and the remaining number of requests at https://extractorbot.com/index.php/my-api/.