Account Information

If you would like to monitor your account usage and limits programmatically (how many concurrent requests you’re using, how many requests you’ve made, etc.) you may use the /account endpoint, which returns JSON.

Note: the requestCount and failedRequestCount numbers only refresh once every 15 seconds, while the concurrentRequests number is available in real-time.

  • API Request

import fetch from 'node-fetch';

fetch('http://api.scraperapi.com/account?api_key=APIKEY')
.then(response => {
console.log(response)
})
.catch(error => {
console.log(error)
})
  • SDK Method

// remember to install the library: npm install scraperapi-sdk --save
const scraperapiClient = require('scraperapi-sdk')('APIKEY')

scraperapiClient.account()
.then(response => console.log(response))

Last updated