polystrike-xyz Usage API

The usage API from polystrike-xyz — 4 operation(s) for usage.

Operations 4

GET /api/v1/usage/summary Get Usage Summary #
GET /api/v1/usage/by-endpoint Get Usage By Endpoint #
GET /api/v1/usage/errors Get Error Logs #
GET /api/v1/usage/stats Get Usage Stats #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/polystrike-xyz:polystrike-xyz-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

polystrike-xyz-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Polystrike Usage API
  description: Real-time prediction market intelligence for Polymarket
  version: 1.0.0
  x-tiers:
    FREE:
      rate_limit: 100 requests/hour
      features: Basic metadata, limited tweets, basic predictions
    PRO:
      rate_limit: 10,000 requests/hour
      features: Full access, trading signals, portfolio analysis
tags:
- name: Usage
paths:
  /api/v1/usage/summary:
    get:
      tags:
      - Usage
      summary: Get Usage Summary
      description: 'Get usage summary for an API key over the last N days.


        **Authentication:** Required (INTERNAL tier only)


        Returns:

        - Total requests

        - Total errors and error rate

        - Average response time

        - Total bandwidth consumed'
      operationId: get_usage_summary_api_v1_usage_summary_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 90
          minimum: 1
          description: Number of days to look back
          default: 7
          title: Days
        description: Number of days to look back
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: x402
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X402
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/usage/by-endpoint:
    get:
      tags:
      - Usage
      summary: Get Usage By Endpoint
      description: 'Get usage breakdown by endpoint for an API key.


        **Authentication:** Required (INTERNAL tier only)


        Returns per-endpoint statistics:

        - Request count

        - Error count and rate

        - Average response time

        - Bandwidth consumed'
      operationId: get_usage_by_endpoint_api_v1_usage_by_endpoint_get
      parameters:
      - name: start
        in: query
        required: true
        schema:
          type: integer
          description: Start timestamp (Unix seconds)
          title: Start
        description: Start timestamp (Unix seconds)
      - name: end
        in: query
        required: true
        schema:
          type: integer
          description: End timestamp (Unix seconds)
          title: End
        description: End timestamp (Unix seconds)
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: x402
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X402
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/usage/errors:
    get:
      tags:
      - Usage
      summary: Get Error Logs
      description: 'Get recent error logs for an API key.


        **Authentication:** Required (INTERNAL tier only)


        Returns detailed error information:

        - Endpoint and method

        - Timestamp

        - Status code

        - Response time

        - Error message'
      operationId: get_error_logs_api_v1_usage_errors_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          description: Maximum number of errors to return
          default: 100
          title: Limit
        description: Maximum number of errors to return
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: x402
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X402
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/usage/stats:
    get:
      tags:
      - Usage
      summary: Get Usage Stats
      description: 'Get current usage tracking statistics.


        **Authentication:** Required (INTERNAL tier only)


        Returns buffer status and tracking configuration.'
      operationId: get_usage_stats_api_v1_usage_stats_get
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: x402
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X402
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Get yours at https://polystrike.xyz
    X402Auth:
      type: apiKey
      in: header
      name: x402
      description: Coinbase payment protocol for per-call payments