Origin Protocol ogn API

The ogn API from Origin Protocol — 7 operation(s) for ogn.

Operations 7

GET /api/v2/ogn/buyback_stats #
GET /api/v2/ogn/buybacks #
GET /api/v2/ogn/daily_buybacks #
GET /api/v2/ogn/price #
GET /api/v2/ogn/lockup_stats #
GET /api/v2/ogn/staking #
GET /api/v2/ogn/supply #

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/origin-protocol-ogn-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

origin-protocol-ogn-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: defi-analytics account Ogn API
  description: API for defi-analytics
  version: 1.0.0
servers:
- url: http://localhost:8787
  description: Local server
- url: https://api.originprotocol.com
  description: Production server
tags:
- name: ogn
paths:
  /api/v2/ogn/buyback_stats:
    get:
      responses:
        '200':
          description: Buyback stats
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalOgnBought:
                    type: number
                  totalAmountSold:
                    type: number
                  totalOgnBoughtUSD:
                    type: number
                  firstBuybackTimestamp:
                    type: number
                  lastBuybackTimestamp:
                    type: number
                  buybacksCount:
                    type: number
                  buybacksDuration:
                    type: number
                  annualizedOgnBuybacks:
                    type: number
                  annualizedUsdBuybacks:
                    type: number
                required:
                - totalOgnBought
                - totalAmountSold
                - totalOgnBoughtUSD
                - firstBuybackTimestamp
                - lastBuybackTimestamp
                - buybacksCount
                - buybacksDuration
                - annualizedOgnBuybacks
                - annualizedUsdBuybacks
                additionalProperties: false
      operationId: getApiV2OgnBuyback_stats
      tags:
      - ogn
      parameters:
      - in: query
        name: startCumulative
        schema:
          type: number
      description: Get buyback stats
  /api/v2/ogn/buybacks:
    get:
      responses:
        '200':
          description: Buybacks
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    timestamp:
                      type: number
                    operator:
                      type: string
                    tokenSold:
                      type: string
                    amountSold:
                      type: number
                    ognBought:
                      type: number
                    ognBoughtUSD:
                      type: number
                    txHash:
                      type: string
                  required:
                  - id
                  - timestamp
                  - operator
                  - tokenSold
                  - amountSold
                  - ognBought
                  - ognBoughtUSD
                  - txHash
                  additionalProperties: false
      operationId: getApiV2OgnBuybacks
      tags:
      - ogn
      parameters:
      - in: query
        name: days
        schema:
          type: number
      - in: query
        name: offset
        schema:
          type: number
      description: Get buybacks
  /api/v2/ogn/daily_buybacks:
    get:
      responses:
        '200':
          description: Daily buybacks
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    timestamp:
                      type: number
                    amountSold:
                      type: number
                    ognBought:
                      type: number
                    ognBoughtUSD:
                      type: number
                    cumulativeAmountSold:
                      type: number
                    cumulativeOgnBought:
                      type: number
                    cumulativeOgnBoughtUSD:
                      type: number
                  required:
                  - id
                  - timestamp
                  - amountSold
                  - ognBought
                  - ognBoughtUSD
                  - cumulativeAmountSold
                  - cumulativeOgnBought
                  - cumulativeOgnBoughtUSD
                  additionalProperties: false
      operationId: getApiV2OgnDaily_buybacks
      tags:
      - ogn
      parameters:
      - in: query
        name: days
        schema:
          type: number
      - in: query
        name: offset
        schema:
          type: number
      - in: query
        name: startCumulative
        schema:
          type: number
      description: Get daily buybacks
  /api/v2/ogn/price:
    get:
      responses:
        '200':
          description: OGN price in USD
          content:
            application/json:
              schema:
                type: number
        '503':
          description: Price temporarily unavailable
      operationId: getApiV2OgnPrice
      tags:
      - ogn
      parameters: []
      description: Get OGN price in USD from CoinGecko (cached to respect rate limits)
  /api/v2/ogn/lockup_stats:
    get:
      responses:
        '200':
          description: Lockup stats
          content:
            application/json:
              schema:
                type: object
                properties:
                  averageLockDuration:
                    type: number
                  averageOgnLockSize:
                    type: number
                  averageXognLockSize:
                    type: number
                  totalOgnLocked:
                    type: number
                  totalXognLocked:
                    type: number
                required:
                - averageLockDuration
                - averageOgnLockSize
                - averageXognLockSize
                - totalOgnLocked
                - totalXognLocked
                additionalProperties: false
      operationId: getApiV2OgnLockup_stats
      tags:
      - ogn
      parameters: []
      description: Get lockup stats
  /api/v2/ogn/staking:
    get:
      responses:
        '200':
          description: Staking data
          content:
            application/json:
              schema:
                type: object
                properties:
                  ognRewardsPerYear:
                    type: number
                  ognStakePercentage:
                    type: number
                  maxOgnApy:
                    type: number
                required:
                - ognRewardsPerYear
                - ognStakePercentage
                - maxOgnApy
                additionalProperties: false
      operationId: getApiV2OgnStaking
      tags:
      - ogn
      parameters: []
      description: Get staking data
  /api/v2/ogn/supply:
    get:
      responses:
        '200':
          description: OGN supply
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalSupply:
                    type: number
                  circulatingSupply:
                    type: number
                required:
                - totalSupply
                - circulatingSupply
                additionalProperties: false
      operationId: getApiV2OgnSupply
      tags:
      - ogn
      parameters: []
      description: Get OGN supply