Read API
Our Events, figures and countries as JSON, for researchers, journalists and anyone building on them. It reads exactly what the site shows, by the same rules: every number traces to the Events behind it, with the date it was computed. It is free; all you need is a key.
Keys
Sign in and open your account to make a key (up to 5 at a time, and 10 made in one day). The key is shown once, when it is made: copy it then, as we keep only a scrambled form of it. Send it with every request as a header:
Authorization: Bearer atr_…
Never put a key in a web address: addresses end up in logs. A request without a valid key, or with a revoked one, gets the answer 401. You can revoke a key on your account page at any time; it stops working at once.
Limits
Each key may make 60 requests a minute and 5,000 a day (the day runs from midnight UTC). Past either, the answer is 429 with a Retry-After header giving the seconds to wait. At the edge of our network, each network address may also make no more than 10 requests in any 10 seconds, counted together with the sign-up forms, the sign-in form, the password reset, sending a confirmation link again, the admin's sign-in, the spreadsheet (CSV) download of Events, the tips form, and every request to this API and this page; past that, the address is turned away for 10 seconds. Only GET is answered; any other method gets 405. Answers are never cached on the way (Cache-Control: private, no-store).
Endpoints
All under https://aitransition.report/api/v1.
/events
The Events behind a number, newest first by date: the list on Events for the same parameters, with the same defaults (the last 3 months, every counted Event). It takes the list's own parameters: period (3m, 12m, all), month or from and to (YYYY-MM), metric, country (a two-letter code), type, tier, status, org and theme, and also realm: work (Employment), capital (Capital), policy (Policy), security (Security), science (Science). On the list of security incidents (metric=M11) only, it also takes standing, who says it was an attack (admitted, claimed, suspected, or unspecified where we have not set it), and ai_link, whether a report says AI had a part in it (yes or no); neither narrows the list unless you send it. It also takes service, the id of any Event of one operator's service in one city, as each row of the table on Transport links it: the list is then that service's counted Deployment Events dated up to today, whatever the period, and only tier and status still narrow it; an id that names no service lists nothing. A parameter we don't recognise is ignored, as the pages ignore it.
Pages hold 50 Events (limit, up to 100). When there are more, next is the address of the next page; follow it as it is. count is how many Events the whole list holds. A cursor the API did not give answers 400: start again without it.
/events/<id>
One Event, with its type's details, the ids of the stories it was recorded from, the links to its sources and how often it has been corrected. A retracted Event still answers, with status retracted; it counts in no figure. An Event merged into another (one Event per happening) answers 404 with merged_into, the Event it now is.
/figures
The five realm figures for a period, as on the home page (or for one country with country, as on its page): each with its unit, its line of detail and the address of the Events behind it. It takes period, tier and status. A country we don't know, or one without a page on the site, answers 404.
/countries
The countries with a page, ranked by announced job cuts in the period as on Countries: their cuts, their Transition Activity (events: counted Events of every type but Forecast, Capital included, the number on Transition Activity; events_url is the address of those Events), and cuts per 100,000 employed where we have the denominator.
What an Event holds
- id, url (its page on the site, where its quote and sources are), type and type_label.
- title: our own line for it, and labels: its evidence tier, "Claimed" or "Suspected" for a security incident that only an attacker claims or that is only suspected, "Unreviewed" where an automatic check failed and no editor has looked yet, and "Mixed reason" or "Contested" where they apply. Show them with the figure.
- tier (A explicit, B reported, C inferred) and tier_label; badged (the "Unreviewed" label); mixed_reason; contested; status.
- organisation, country and country_name, industry, event_date, counted_month (the month our figures count it in), published_at.
- headcount, headcount_label and headcount_upper_bound: a buyout or exit offer counts at the number offered and reads "up to".
- summary: our own words, never the outlet's.
- capital, for a capital commitment: the amount as stated and in US dollars, announced, not spent.
We never serve an article's or a post's own words: only our summary and links to the sources.
Licence and credit
Every answer with data (an Event merged into another's 404 too) carries as_of (when the figures were computed), licence and attribution; an error's answer carries none of them: its error says what went wrong.
Our Event records and figures are licensed CC BY 4.0: use them as you like, crediting "Source: The AI Transition Report (https://aitransition.report/)" with a link. Our reports, articles and assessments keep their copyright: quote them with credit and a link. The outlets' own words are never ours to licence.
The same Events are also a spreadsheet: the CSV link on every list of Events.