API League Math API

The Math API from API League — 1 operation(s) for math.

Operations 1

GET /convert-units Convert Units API #

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/api-league-math-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

api-league-math-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: League Math API
  description: API League is a Hub for World Class APIs.
  termsOfService: https://apileague.com/terms
  version: 1.9.0
  contact:
    name: David Urbansky
    email: mail@apileague.com
servers:
- url: https://api.apileague.com
security:
- apiKey: []
- headerApiKey: []
tags:
- name: Math
paths:
  /convert-units:
    get:
      responses:
        '200':
          description: Success
          headers: {}
          content:
            application/json:
              schema:
                type: object
                properties:
                  target_amount:
                    type: number
                  target_unit:
                    type:
                    - string
                    - 'null'
              examples:
                Response:
                  value:
                    target_amount: 220.46226218487757
                    target_unit: lb
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '406':
          description: Not Acceptable
        '429':
          description: Too Many Requests
      parameters:
      - name: source-amount
        description: The source amount.
        schema:
          format: double
          minimum: 0
          maximum: 99999999
          type: number
          example: 100
        required: true
        style: form
        explode: false
        in: query
      - name: source-unit
        description: The source unit.
        schema:
          pattern: .
          maxLength: 100
          type: string
          example: kg
        required: true
        style: form
        explode: false
        in: query
      - name: target-unit
        description: The unit to which should be converted.
        schema:
          pattern: .
          maxLength: 100
          type: string
          example: lb
        required: true
        style: form
        explode: false
        in: query
      - name: food-name
        description: An optional food name. For converting foods the food is relevant as they have different densities.
        schema:
          pattern: .
          maxLength: 200
          type: string
          example: flour
        required: false
        style: form
        explode: false
        in: query
      externalDocs:
        description: Read entire docs
        url: https://apileague.com/apis/convert-units-api/
      summary: Convert Units API
      tags:
      - Math
      description: Convert units from one to another. The API returns the amount and the unit of the target unit.
      operationId: convertUnitsAPI
      deprecated: false
components:
  securitySchemes:
    apiKey:
      name: api-key
      type: apiKey
      in: query
    headerApiKey:
      name: x-api-key
      type: apiKey
      in: header