Get usage
GET
/v1/atmosphere/usage
const url = 'https://api.verticalweather.com/v1/atmosphere/usage';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.verticalweather.com/v1/atmosphere/usage \ --header 'X-API-Key: <X-API-Key>'Today’s data-fetch count and remaining allowance for your account (UTC day).
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
object
billing_enabled
boolean
limit
required
integer
period
string
remaining
required
integer
reset_after_seconds
required
integer
upstream_attempts
required
integer
Example
{ "billing_enabled": false, "period": "utc_day"}401: Unauthorized. See the guide’s Errors page.
Media typeapplication/problem+json
object
Examplegenerated
{ "code": "example", "coverage": { "maximum_agl_m": 1, "maximum_msl_m": 1, "minimum_agl_m": 1, "minimum_msl_m": 1 }, "detail": "example", "request_id": "example", "status": 1, "title": "example", "type": "example"}503: Service Unavailable. See the guide’s Errors page.
Media typeapplication/problem+json
object
Examplegenerated
{ "code": "example", "coverage": { "maximum_agl_m": 1, "maximum_msl_m": 1, "minimum_agl_m": 1, "minimum_msl_m": 1 }, "detail": "example", "request_id": "example", "status": 1, "title": "example", "type": "example"}