Lastmod for developers
Read what Lastmod knows about your websites: opportunities, tasks, measured results, search performance and AI visibility. Use the read-only REST API, or connect an AI assistant to the MCP server.
API reference
Every
/v1endpoint, with parameters, responses and errors.MCP server
Twelve read-only tools for AI assistants such as Claude or ChatGPT.
Get started with the API
The API is read-only and served from https://api.lastmod.ai/v1. Create an API key in the settings of your organisation and send it as a bearer token. A key reads one organisation, or one website of it.
curl https://api.lastmod.ai/v1/websites \
-H "Authorization: Bearer lm_…"
Every response is a JSON envelope: data holds the content, meta holds what goes with it, such as truncated, nextCursor and textLocale. Lists are paged with a cursor. Timestamps are ISO 8601 in UTC and days are YYYY-MM-DD.
Versioning
/v1 only grows: a field can be added, but a field is never renamed, removed or changed in type. A change like that would be a new version, and /v1 would stay as it is. Treat unknown fields and unknown values of an enumeration as additions.
Measurements, not promises
Lastmod measures changes next to other changes. A result carries a reliability band and a flag for a mixed picture, and an AI visibility figure without enough data behind it is returned without a number. The API never claims that a change caused a result.
The OpenAPI description
The same description this reference shows is available as JSON, for your own tooling or for generating a client.