var unirest = require("unirest"); var req = unirest("GET", "https://seo.p.rapidapi.com/api"); req.query({ "meta_desciption": "The article will show you the best smartphones and compares the different features to give you an advice which smartphone to buy", "html": "%3Carticle%3E%3Cp%3E...%3C%2Fp%3E%3Cp%3E....%3C%2Fp%3E%3C%2Farticle%3E", "title": "Best smarthphone 2014 comparison", "url": "http%3A%2F%2Fmy-page.com%2Fmy-article-url", "keyword": "best smartphone" }); req.headers({ "x-rapidapi-host": "seo.p.rapidapi.com", "x-rapidapi-key": "a16a262a82msh13a6c35c0a91271p179321jsnd4762c845a7b", "useQueryString": true }); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });

Comments