Potto Learnables API

The Learnables API from Potto — 3 operation(s) for learnables.

GitHub OpenAPI

Operations 3

GET /api/v1/learnables Search learnables by Japanese or English surface forms #
GET /api/v1/learnables/{id} Full learnable entry (senses, readings, pitch accent, etymology, kanji… #
GET /api/v1/learnables/{id}/related One-hop expansion of a learnable's typed concept relationships #

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/potto-app:potto-app-learnables-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

potto-app-learnables-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Potto Japan Agent Learnables API
  version: 1.0.0
  description: 'Authoritative JLPT-graded Japanese learning dataset: 16,885 original, independently curated learnables (2,375 kanji, 6,051 vocabulary, 935 grammar points, JLPT N5–N1; senses, pitch accent, etymology, and keigo registers cross-verified against multiple authoritative references, citations included per entry), plus 6,945 Japanese-history entities, 1,362 lessons, 96 journeys, 20 worlds.


    Pricing is JPY-first: 1 point = ¥1 (fixed peg). Live per-call prices are in the GET /api/v1 discovery document. Keyless requests receive a bundled evaluation sample (marked "sample": true) — full access requires an API key: https://potto.app/developers


    An MCP (Model Context Protocol) endpoint with the same six tools is served at POST /mcp (stateless Streamable HTTP).'
  contact:
    url: https://potto.app/developers
servers:
- url: https://potto.app
  description: Production (Firebase Hosting rewrite)
- url: https://us-central1-pottojapan.cloudfunctions.net/agentApi
  description: Direct function URL
security:
- apiKey: []
- bearerKey: []
- {}
tags:
- name: Learnables
paths:
  /api/v1/learnables:
    get:
      operationId: searchLearnables
      summary: Search learnables by Japanese or English surface forms
      description: Token match over the curated search surface. Results are compact summaries; fetch the full entry with getLearnable.
      parameters:
      - name: max_points
        in: query
        schema:
          type: number
          minimum: 0
        description: Optional points ceiling. Refuses changed base pricing before work; prevents generation above the ceiling.
      - name: query
        in: query
        required: true
        schema:
          type: string
        description: Japanese surfaces (満点, まんてん) or English tokens.
      - name: type
        in: query
        schema:
          type: string
          enum:
          - kanji
          - vocabulary
          - grammar
          - character
          - radical
      - name: jlpt_level
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 5
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 20
        description: Default 10, hard cap 20 — callers can ask for less, never more.
      responses:
        '200':
          description: Ranked summaries (exact surface matches first).
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items:
                          $ref: '#/components/schemas/LearnableSummary'
                      total_candidates:
                        type: integer
                      limit:
                        type: integer
                      billing:
                        $ref: '#/components/schemas/Billing'
        '401':
          description: Missing/unknown key (INVALID_API_KEY) or revoked/expired key (REVOKED_API_KEY).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: INSUFFICIENT_POINTS — the key owner's balance cannot cover this call. The error carries required, balance, and top_up_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: RATE_LIMITED (per-key burst limit) or QUOTA_EXCEEDED (daily fair-use call cap; resets 00:00 UTC — contact us for higher caps).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Learnables
  /api/v1/learnables/{id}:
    get:
      operationId: getLearnable
      summary: Full learnable entry (senses, readings, pitch accent, etymology, kanji…
      parameters:
      - name: max_points
        in: query
        schema:
          type: number
          minimum: 0
        description: Optional points ceiling. Refuses changed base pricing before work; prevents generation above the ceiling.
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: locale
        in: query
        required: false
        schema:
          type: string
          minLength: 2
          maxLength: 2
        description: Two-letter language code. English ("en") is canonical; any other locale is generated on demand (billed at the localized-read price on a cache miss, plain read price on a hit) and cached for everyone after.
      responses:
        '200':
          description: The full learnable document (internal fields stripped, sources included).
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  data:
                    type: object
        '401':
          description: Missing/unknown key (INVALID_API_KEY) or revoked/expired key (REVOKED_API_KEY).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: INSUFFICIENT_POINTS — the key owner's balance cannot cover this call. The error carries required, balance, and top_up_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: RATE_LIMITED (per-key burst limit) or QUOTA_EXCEEDED (daily fair-use call cap; resets 00:00 UTC — contact us for higher caps).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Learnables
  /api/v1/learnables/{id}/related:
    get:
      operationId: getRelatedLearnables
      summary: One-hop expansion of a learnable's typed concept relationships
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 20
      responses:
        '200':
          description: Related learnable summaries with relationship types (precedes, causes, part-of, …).
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  data:
                    type: object
        '401':
          description: Missing/unknown key (INVALID_API_KEY) or revoked/expired key (REVOKED_API_KEY).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: INSUFFICIENT_POINTS — the key owner's balance cannot cover this call. The error carries required, balance, and top_up_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: RATE_LIMITED (per-key burst limit) or QUOTA_EXCEEDED (daily fair-use call cap; resets 00:00 UTC — contact us for higher caps).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Learnables
components:
  schemas:
    Billing:
      type: object
      description: Appended to every keyed (billed) response.
      properties:
        points_charged:
          type: integer
          description: Points charged for this call. 1 point = ¥1 (fixed peg).
        currency:
          type: string
          enum:
          - JPY
        invoice_id:
          type: string
          nullable: true
        free_tier:
          type: boolean
          nullable: true
        included:
          type: boolean
        subscription_coverage:
          type: object
          nullable: true
    Error:
      type: object
      properties:
        ok:
          type: boolean
          enum:
          - false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            required:
              type: integer
              nullable: true
            balance:
              type: integer
              nullable: true
            top_up_url:
              type: string
              nullable: true
    LearnableSummary:
      type: object
      description: Compact learnable summary returned by search and related expansion.
      properties:
        id:
          type: string
        label:
          type: string
          nullable: true
        type:
          type: string
          description: kanji | vocabulary | grammar | character | radical, or a history entity type (person, event, era, …).
        domain:
          type: string
          enum:
          - language
          - history
        jlpt_level:
          type: integer
          nullable: true
          description: 5 = N5 (beginner) … 1 = N1 (advanced).
        is_common_word:
          type: boolean
          nullable: true
        canonical_name:
          type: string
          nullable: true
          description: History entities only.
        pattern:
          type: string
          nullable: true
          description: Grammar points only.
        meaning:
          type: string
          nullable: true
        writing_forms:
          type: array
          items:
            type: object
            properties:
              text:
                type: string
              script:
                type: string
        tags:
          type: array
          items:
            type: string
  securitySchemes:
    pottoOAuth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://potto.app/oauth/authorize
          tokenUrl: https://potto.app/oauth/token
          scopes:
            agent-api: Read canonical knowledge
            learning: Read private saved status, generate private explanations and save flashcards
    bearerKey:
      type: http
      scheme: bearer
      description: API key (potto_ak_…) as a bearer token. Create one at the Developer page.
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key