Botometer

FREE
By OSoMe
Updated 4 months ago
Social
9.8/10
Popularity Score
2503ms
Latency
87%
Success Rate
jgilmore3 months ago
500 Internal Server ErrorI'm receiving a 500 Internal Server Error when I make a request to the API: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
OSoMe3 months ago
Great!
jgilmore3 months ago
Never mind: I figured it out. I had been running queries in "extended" mode (to get the full text of the tweet) and changing the name of the full_text parameter in each tweet to text. I took the queries out of extended mode and everything worked.
Hi Developer, feel free to post your answer:

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://osome-botometer.p.rapidapi.com/2/check_account")
.header("X-RapidAPI-Host", "osome-botometer.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"user":{"id":"1234567890","screen_name":"IUNetSci","...":"..."},"timeline":[{"id":1234567890,"text":"@Botometer is so cool!","...":"..."},"..."],"mentions":[{"id":9876543210,"text":"@TruthyAtIndiana is also cool!","...":"..."},"..."]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication