import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.meters.query('id');console.log(response.aggregation);
Returns the aggregated value based on the meter’s configuration (sum, count, max, or latest).
POST
/
meters
/
{id}
/
query
JavaScript
Copy
import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.meters.query('id');console.log(response.aggregation);