Sylvia API Usage API

The Usage API from Sylvia API — 1 operation(s) for usage.

OpenAPI Specification

sylvia-api-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sylvia Usage API
  version: 1.0.0
  description: Reddit data API - no OAuth, no rate limits, pay-per-request. Posts, comments, search, subreddits, users, live streams, datasets.
  contact:
    name: Sylvia API
    url: https://sylvia-api.com
    email: support@sylvia-api.com
  license:
    name: Proprietary
    url: https://sylvia-api.com/terms
servers:
- url: https://api.sylvia-api.com/v1
  description: Production API server
security:
- ApiKeyAuth: []
tags:
- name: Usage
paths:
  /usage:
    get:
      summary: Get usage and billing info
      description: Current usage stats, remaining free credit, tier info.
      operationId: getUsage
      responses:
        '200':
          description: Usage information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Usage'
        '401':
          $ref: '#/components/responses/Unauthorized'
      tags:
      - Usage
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: integer
    Usage:
      type: object
      properties:
        requests_this_month:
          type: integer
        free_credit_remaining:
          type: number
          format: float
        tier:
          type: string
          enum:
          - free
          - starter
          - pro
          - enterprise
        rate_limit:
          type: integer
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Get yours at https://sylvia-api.com