Pyth Price Differences API

The Price Differences API from Pyth — 1 operation(s) for price differences.

Operations 1

GET /v1/price_differences/ Price Differences #

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/pyth-price-differences-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

pyth-price-differences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Benchmarks Price Differences API
  version: 0.3.6
servers:
- url: https://hermes.pyth.network
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Price Differences
paths:
  /v1/price_differences/:
    get:
      tags:
      - Price Differences
      summary: Price Differences
      description: Returns an array of objects with hourly, daily, and weekly close price difference per symbol as well as close prices for each hour for the past 7 days for charting sparklines. There is no rounding to a specific time of day, so the weekly close price difference is relative to 1 week ago at the current time.
      operationId: price_differences_route_v1_price_differences__get
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceDifferencesResponse'
              examples:
                PriceDifferencesSuccessResponse:
                  summary: PriceDifferencesSuccessResponse
                  value:
                  - symbol: Crypto.BTC/USD
                    hour_price_diff_decimal: -0.0012
                    day_price_diff_decimal: 0.0234
                    week_price_diff_decimal: 0.0567
                    sparkline:
                    - 42000.5
                    - 42100.3
                    - 42050.7
                    - 42200.1
                    - 42150.9
                  - symbol: Crypto.ETH/USD
                    hour_price_diff_decimal: 0.0045
                    day_price_diff_decimal: -0.0123
                    sparkline:
                    - 2800.5
                    - 2810.3
                    - 2805.7
                    - 2820.1
                    - 2815.9
components:
  schemas:
    PriceDifferencesResponse:
      items:
        $ref: '#/components/schemas/PriceDifference'
      type: array
      title: PriceDifferencesResponse
    PriceDifference:
      properties:
        symbol:
          type: string
          title: Symbol
        hour_price_diff_decimal:
          anyOf:
          - type: number
          - type: 'null'
          title: Hour Price Diff Decimal
        day_price_diff_decimal:
          anyOf:
          - type: number
          - type: 'null'
          title: Day Price Diff Decimal
        week_price_diff_decimal:
          anyOf:
          - type: number
          - type: 'null'
          title: Week Price Diff Decimal
        sparkline:
          items:
            type: number
          type: array
          title: Sparkline
      type: object
      required:
      - symbol
      - hour_price_diff_decimal
      - day_price_diff_decimal
      - week_price_diff_decimal
      - sparkline
      title: PriceDifference