Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

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
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.Streams.getStatsById({});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"totalWebhooksDelivered": "",
"totalWebhooksFailed": "",
"totalLogsProcessed": "",
"totalTxsProcessed": "",
"totalTxsInternalProcessed": "",
"streams": {
"totalWebhooksDelivered": "",
"totalWebhooksFailed": "",
"totalLogsProcessed": "",
"totalTxsProcessed": "",
"totalTxsInternalProcessed": "",
"streamId": ""
},
"createdAt": "",
"updatedAt": ""
}