Mathpix · Example Payload

Mathpix Strokes Example

OCRSTEMMathChemistryDocument ConversionPDFLaTeXHandwritingArtificial IntelligenceMachine-Learning

Mathpix Strokes Example is an example object payload from Mathpix, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationmethodurlheadersrequestresponse

Example Payload

Raw ↑
{
  "operation": "processStrokes",
  "method": "POST",
  "url": "https://api.mathpix.com/v3/strokes",
  "headers": {
    "app_id": "your-app-id",
    "app_key": "your-app-key",
    "Content-Type": "application/json"
  },
  "request": {
    "strokes": {
      "strokes": {
        "x": [
          [10, 12, 15, 20, 28, 35, 40],
          [50, 55, 60, 65]
        ],
        "y": [
          [50, 48, 47, 45, 47, 48, 50],
          [40, 42, 45, 50]
        ]
      }
    },
    "formats": ["text", "latex_styled"]
  },
  "response": {
    "request_id": "strokes_2026_05_25_aaa111",
    "text": "\\( y = 2x + 1 \\)",
    "latex_styled": "y = 2x + 1",
    "confidence": 0.987,
    "confidence_rate": 0.998,
    "is_printed": false,
    "is_handwritten": true,
    "version": "RSK-M114"
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • 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 example
curl "https://apis.io/api/v1/examples/mathpix-strokes-example"
All examples
curl "https://apis.io/api/v1/examples?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.