Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Framefetch Net Usage API
version: 1.7.0
contact:
name: FrameFetch
url: https://framefetch.net
termsOfService: https://framefetch.net/impressum
description: 'Operations tagged Usage across 2 of this provider''s published API definitions: openapi.json, framefetch-net-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://framefetch.net
security:
- bearerAuth: []
tags:
- name: Usage
paths:
/v1/usage:
get:
operationId: getUsage
summary: Usage history, bucketed by day or endpoint — read-only, never bills
description: Read-only usage history for the calling account over a date range, bucketed by calendar day (group=day, default) or by endpoint (group=endpoint). Defaults to the trailing 30 days when from/to are omitted; the range is capped at 366 days.
parameters:
- name: from
in: query
required: false
schema:
type: string
format: date-time
description: Range start (ISO-8601). Defaults to `to` minus 30 days.
- name: to
in: query
required: false
schema:
type: string
format: date-time
description: Range end (ISO-8601). Defaults to now.
- name: group
in: query
required: false
schema:
type: string
enum:
- day
- endpoint
default: day
description: Bucket usage by calendar day or by endpoint.
responses:
'200':
description: Bucketed usage
content:
application/json:
schema:
$ref: '#/components/schemas/UsageResult'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
tags:
- Usage
servers:
- url: https://framefetch.net
components:
schemas:
UsageResult:
type: object
properties:
items:
type: array
items:
type: object
properties:
bucket:
type: string
description: '''YYYY-MM-DD'' for group=day; the endpoint string (or ''unattributed'') for group=endpoint.'
calls:
type: integer
cost_micros:
type: integer
total_micros:
type: integer
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
hint:
type: string
responses:
Error:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key from POST /v1/keys, sent as ''Authorization: Bearer <key>''.'
x-refined-from:
- openapi.json
- framefetch-net-openapi.json