Developers
Your Lastmod data, in your own tools.
A read-only API, webhooks and an MCP server give your scripts, dashboards and AI assistants the same websites, opportunities, tasks and results you see in Lastmod, and tell them when something new is there.
30-day free trial · no credit card · database and hosting in the EU
What you can read
Everything is read-only and belongs to your organisation.
- GET /websites
- The websites you can see, with domain, language and the state of the connection and the latest crawl.
- GET /websites/:id/opportunities
- What Lastmod found, on which page, with the reason, the evidence and how sure it is. Filter on status or type.
- GET /websites/:id/opportunities/:id
- The evidence saved at the time, and how and when it was resolved.
- GET /websites/:id/tasks
- Status, page, expected impact, progress through the steps and the state of the measurement.
- GET /websites/:id/results
- What was measured after a task, with the confidence of each result and the flags for what else may explain it.
- GET /websites/:id/kpis, /timeseries
- Clicks, impressions and position for a period, and per day.
- GET /websites/:id/visibility, /visibility/rounds, /visibility/prompts, /visibility/themes
- How often AI assistants mention or cite your website for the questions you follow, per engine, with the margin of uncertainty. Below the minimum number of measurements there is no figure.
- GET /websites/:id/ai-referrals
- Visits from AI assistants in Google Analytics, as context for a website. Only days that were actually measured count.
Webhooks: we tell you when something happens
Add an HTTPS address in Organization settings and choose which events it receives. Each message carries ids and a link, never the findings themselves.
- opportunity.created
- Lastmod found a new opportunity on one of your websites.
- task.result_ready
- The measurement after a task is ready to read.
- integration.error
- A connection, such as Search Console, stopped working and needs your attention.
- visibility.round_ready
- A weekly round of AI visibility measurements is complete. Sent once per website and week, and only while AI visibility is open to you.
- visibility.threshold_reached
- An AI engine now has enough answers for a figure. Sent once per website and engine; the figure itself stays behind your API key.
- Signed
- Every delivery carries a signature made with a secret only you and Lastmod know, and a timestamp, so you can check it came from Lastmod and was not replayed.
- Retried
- If your address does not answer, Lastmod tries again for about a day. Every retry has the same event id, so you can ignore a repeat.
- Thin on purpose
- The message holds ids and a link to the read-only API. Details stay behind your API key, so scoping and wording stay in one place.
Two ways in
Which one you use depends on what is connecting.
- API key
- For scripts, dashboards and developer tools. An owner or admin creates the key in Organization settings, chooses the access and how long it stays valid, and copies it. Lastmod shows it once.
- Sign in with your account
- For chat apps such as Claude and ChatGPT. You add Lastmod as a connector and approve it with your Lastmod account, so there is no key to copy.
The MCP server
The same data as tools an AI assistant can call. You ask in your own words; the assistant picks the tool.
- list_websites
- Which websites the assistant can see.
- list_opportunities, get_opportunity
- What Lastmod found, and one finding in detail.
- list_tasks, list_results
- Your tasks and what was measured after them.
- get_kpis, get_search_timeseries
- Search performance for a period, in total and per day.
- get_ai_visibility, list_ai_visibility_rounds
- How often AI engines mention and cite your website, and the weekly measurement rounds.
- list_visibility_prompts, get_visibility_themes, get_ai_referrals
- The questions asked, the themes where you are not mentioned, and visits from AI assistants.
Safe by design
What stays true whichever way you connect.
- Read-only unless you allow more. The API only reads, and a webhook only tells you something happened. An AI assistant can change tasks, opportunities and AI visibility questions only on a connection or key where an owner or admin switched on write access, and it acts as that person with their role. Nothing connected this way can edit your website or your account.
- Only an owner or admin can create a key or approve a connection, and only for websites they can open themselves.
- A key is shown once and can be revoked. Every connection is listed in Organization settings.
- A webhook address must be public HTTPS; Lastmod refuses addresses that point into a private network. The signing secret is shown once, and you can rotate it without a gap.
- It is included in Starter, Pro, and Agency and in the free trial.
Read the reference
The reference describes every endpoint and every MCP tool. The guide shows how to connect an AI assistant, step by step.
30-day free trial · no credit card · database and hosting in the EU