@joemccann/robintrack-api
v1.0.0
Published
📈 Unofficial node client for the robintrack.net website.
Readme
Robintrack API
📈 Unofficial node.js client for accessing the APIs called on Robintrack.net.
Installation
npm i -S @joemccann/robintrack-apiUsage
const rta = require('@joemccann/robintrack-api')
const params = {
method: 'largest_popularity_increases',
options: {
hours_ago: 48,
limit: 50,
percentage: true,
min_popularity: 50,
start_index: 0
}
}
try {
const {
data = [],
statusCode = 0
} = await rta(params)
console.dir(data) // [...]
console.log(statusCode) // 200
}
catch(e){
console.error(e)
}Supported Methods
largest_popularity_changeslargest_popularity_decreaseslargest_popularity_increasesleast_populartotal_symbolsmost_popular
Support Options
hours_agolimitpercentagemin_popularitystart_index
NOTE: The method total_symbols doesn't support any options.
For more information on the requests and responses view the test file.
Tests
npm i -D
npm testLicense
MIT
