Examples

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://anythingapi.com/api/v1',
  'headers': {
    'apiKey': 'YOUR-API-KEY-HERE',
    'Content-Type': 'application/x-www-form-urlencoded'
  },
  form: {
    'pageUrl': 'https://weather.com',
    'unprocessed': 'false',
    'mapping': '{
      "allLinks": {
        "selector": "a",
        "foreach": {
          "href": {
            "selector": ".",
            "attr": "href"
          }
        }
      }
  }',
    'ssr': 'false',
    'countryCode': 'us',
    'sessionId': '100'
  },
  timeout: 65000
};
request(options, function (error, response) { 
  if (error) throw new Error(error);
  console.log(response.body);
});