# /api/rest_v1/media/math/* is deprecated

Wikipedia API deprecated /api/rest_v1/media/math/* without giving a shutdown date yet.

Per-wiki Math endpoints under /api/rest_v1/media/math/* are deprecated without a shutdown date. Calls directed to these per-wiki paths will eventually fail as the provider phases them out.

## What to use instead

Use the Math endpoints on wikimedia.org, or render math with MathML/MathJax.

- API: Wikipedia API (en.wikipedia.org)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/api/rest_v1/media/math/*`
- Source: [Announcement](https://www.mediawiki.org/wiki/Wikimedia_APIs/Changelog)
- Verified: October 26, 2026, against Wikipedia API's own pages
- Page: https://www.okapi.bot/providers/wikipedia-api/breaking-changes/api-rest-v1-media-math-is-deprecated/

## Wikipedia API's words

> Mark per-wiki Math endpoints as deprecated. Math endpoints hosted through wikimedia.org instead of per-wiki paths are the preferred path.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
