Welcome to the SRA Documentation
Some Random API has a numerous amount of endpoints ready to be used withou the use of an API key.
However this does not mean that all the endpoints can be used without one. Throughout this documentation you will be told whether or not a certain endpoint requires an API key and if so, how to generate one.
Getting Started
Step 1
Install the wrapper
npm i @some-random-api/some-random-api.js
Step 2
Write some code!
const { SRAClient } = require('some-random-api');
const sraClient = new SRAClient(/* Insert API key if available */);
sraClient.fetch('/chatbot', { message: 'Hello' }).then(console.log);
Result
Get a response from the AI 🤖
{
"response": "Hey there! *smiling* It's great to see you! How are you doing today?"
}