InferSports Convert API

The convert API from InferSports — 2 operation(s) for convert.

GitHub OpenAPI

Operations 2

POST /v1/convert/odds Convert Odds #
POST /v1/convert/handicap Convert Handicap #

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/infersports-dev:infersports-dev-convert-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

infersports-dev-convert-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: InferSports Convert API
  summary: Sharp Asian odds, built for code.
  description: 'Read-only REST API for live Asian-bookmaker + Pinnacle odds (football & basketball; 1x2 / Asian handicap / totals; full-time & half-time).


    **Determinism contract** (see `/llms.txt`): `/v1` is frozen (breaking changes ship under `/v2`); Sqids ids are stable across calls and restarts; response field sets are fixed (optional values are sent as `null`, never omitted — the sole exception is `/convert/odds`, which projects to the requested `to` formats). `convert/odds`, `convert/handicap` and `explain_handicap` are pure functions (same input → same output) and safe to cache indefinitely; snapshot reads keep a fixed shape but live values. No historical data.'
  version: 0.1.0
tags:
- name: Convert
paths:
  /v1/convert/odds:
    post:
      tags:
      - Convert
      summary: Convert Odds
      operationId: convert_odds_v1_convert_odds_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertOddsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConvertOddsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/convert/handicap:
    post:
      tags:
      - Convert
      summary: Convert Handicap
      operationId: convert_handicap_v1_convert_handicap_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertHandicapRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConvertHandicapResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConvertOddsRequest:
      properties:
        value:
          type: number
          title: Value
        from:
          type: string
          title: From
        to:
          items:
            type: string
          type: array
          title: To
        bookmaker:
          anyOf:
          - type: string
          - type: 'null'
          title: Bookmaker
          description: Optional bookmaker key (e.g. 'crown') whose Malay-odds rounding to apply; omitted → canonical rounding.
      type: object
      required:
      - value
      - from
      - to
      title: ConvertOddsRequest
    WinConditions:
      properties:
        full_win:
          anyOf:
          - type: string
          - type: 'null'
          title: Full Win
        half_win:
          anyOf:
          - type: string
          - type: 'null'
          title: Half Win
        push:
          anyOf:
          - type: string
          - type: 'null'
          title: Push
        half_loss:
          anyOf:
          - type: string
          - type: 'null'
          title: Half Loss
        full_loss:
          anyOf:
          - type: string
          - type: 'null'
          title: Full Loss
      type: object
      title: WinConditions
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConvertHandicapRequest:
      properties:
        line:
          type: number
          title: Line
      type: object
      required:
      - line
      title: ConvertHandicapRequest
    ConvertOddsResponse:
      properties:
        decimal:
          anyOf:
          - type: number
          - type: 'null'
          title: Decimal
        hk:
          anyOf:
          - type: number
          - type: 'null'
          title: Hk
        malay:
          anyOf:
          - type: number
          - type: 'null'
          title: Malay
        american:
          anyOf:
          - type: integer
          - type: 'null'
          title: American
        indonesian:
          anyOf:
          - type: number
          - type: 'null'
          title: Indonesian
        probability:
          anyOf:
          - type: number
          - type: 'null'
          title: Probability
      type: object
      title: ConvertOddsResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ConvertHandicapResponse:
      properties:
        handicap_raw:
          type: string
          title: Handicap Raw
        handicap_decimal:
          type: number
          title: Handicap Decimal
        handicap_components:
          items:
            type: number
          type: array
          title: Handicap Components
        explanation:
          type: string
          title: Explanation
        win_conditions:
          $ref: '#/components/schemas/WinConditions'
      type: object
      required:
      - handicap_raw
      - handicap_decimal
      - handicap_components
      - explanation
      - win_conditions
      title: ConvertHandicapResponse