polystrike-xyz History API

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

Operations 4

GET /api/v1/history/{user}/counter Counter History #
GET /api/v1/history/{user}/prices Price History #
GET /api/v1/history/{user}/books Book History #
GET /api/v1/history/{user}/tweets Tweet History #

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-history-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-history-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Polystrike History 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: History
paths:
  /api/v1/history/{user}/counter:
    get:
      tags:
      - History
      summary: Counter History
      description: 'Count snapshots (`{user}_snapshots`): our count vs the settlement count vs the page,

        every capture, since first archive.'
      operationId: counter_history_api_v1_history__user__counter_get
      parameters:
      - name: user
        in: path
        required: true
        schema:
          type: string
          title: User
      - name: from_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive lower bound on `timestamp` (ms epoch)
          title: From Ms
        description: inclusive lower bound on `timestamp` (ms epoch)
      - name: to_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive upper bound on `timestamp` (ms epoch)
          title: To Ms
        description: inclusive upper bound on `timestamp` (ms epoch)
      - name: cursor
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: last `id` seen; rows with id > cursor are returned
          default: 0
          title: Cursor
        description: last `id` seen; rows with id > cursor are returned
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5000
          minimum: 1
          default: 1000
          title: Limit
      - 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/history/{user}/prices:
    get:
      tags:
      - History
      summary: Price History
      description: Bucket price snapshots (`{user}_market_snapshots`). Range ≤ 31 days per call.
      operationId: price_history_api_v1_history__user__prices_get
      parameters:
      - name: user
        in: path
        required: true
        schema:
          type: string
          title: User
      - name: event_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: restrict to one Polymarket event
          title: Event Id
        description: restrict to one Polymarket event
      - name: from_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive lower bound on `timestamp` (ms epoch)
          title: From Ms
        description: inclusive lower bound on `timestamp` (ms epoch)
      - name: to_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive upper bound on `timestamp` (ms epoch)
          title: To Ms
        description: inclusive upper bound on `timestamp` (ms epoch)
      - name: cursor
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: last `id` seen; rows with id > cursor are returned
          default: 0
          title: Cursor
        description: last `id` seen; rows with id > cursor are returned
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5000
          minimum: 1
          default: 1000
          title: Limit
      - 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/history/{user}/books:
    get:
      tags:
      - History
      summary: Book History
      description: 'Order-book snapshots (`{user}_orderbook_snapshots`); `bids`/`asks` are parsed into

        lists of [price, size]. Range ≤ 31 days per call.'
      operationId: book_history_api_v1_history__user__books_get
      parameters:
      - name: user
        in: path
        required: true
        schema:
          type: string
          title: User
      - name: token_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: restrict to one CLOB token
          title: Token Id
        description: restrict to one CLOB token
      - name: from_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive lower bound on `timestamp` (ms epoch)
          title: From Ms
        description: inclusive lower bound on `timestamp` (ms epoch)
      - name: to_ms
        in: query
        required: true
        schema:
          type: integer
          description: inclusive upper bound on `timestamp` (ms epoch)
          title: To Ms
        description: inclusive upper bound on `timestamp` (ms epoch)
      - name: cursor
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: last `id` seen; rows with id > cursor are returned
          default: 0
          title: Cursor
        description: last `id` seen; rows with id > cursor are returned
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5000
          minimum: 1
          default: 1000
          title: Limit
      - 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/history/{user}/tweets:
    get:
      tags:
      - History
      summary: Tweet History
      description: 'Full post record from SQLite, deleted posts included: text, timestamps, settlement

        verdict (is_counted / filter_reason), quoted text, deletion time.'
      operationId: tweet_history_api_v1_history__user__tweets_get
      parameters:
      - name: user
        in: path
        required: true
        schema:
          type: string
          title: User
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          description: substring match on text
          title: Q
        description: substring match on text
      - name: since
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          description: created_at >= since (ms epoch)
          title: Since
        description: created_at >= since (ms epoch)
      - name: until
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          description: created_at <= until (ms epoch)
          title: Until
        description: created_at <= until (ms epoch)
      - name: cursor
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: last `id` seen; rows with id > cursor are returned
          default: 0
          title: Cursor
        description: last `id` seen; rows with id > cursor are returned
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5000
          minimum: 1
          default: 1000
          title: Limit
      - 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