Skip to main content

Get project stats by Stream ID

GEThttps://api.moralis-streams.com/stats/:streamId

Get the stats for the streamId specified

PATH PARAMS
streamIdstringrequired
The id of the stream to get the stats
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://api.moralis-streams.com/stats/:streamId', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example