{"openapi": "3.1.0", "info": {"title": "Impact Dashboard open API", "version": "1", "description": "Read-only JSON about the research published through the Open Book Collective:\nwhere it comes from and how far it reaches. It has two kinds of\nendpoint:\n\n- **Figures** describe one thing (the collective, an institution, a\n  publisher, a journal, a book or a country) in the same shape, so code\n  written for one works for all of them.\n- **Works and people** list the publications themselves, with their\n  contributors, affiliations and where each fact came from, and the\n  people credited on them, filtered as the dashboard's lists are.\n\nBoth give what the dashboard's own pages show.\n\nThe API is open to anyone. There is nothing to sign up for and no key\nto send.\n\n## Quick start\n\nAsk for the collective as a whole:\n\n```bash\ncurl https://obc.staging.jupiter-station.openjournalscollective.org/api/v1/collective/\n```\n\nor for one institution, by its [ROR ID](https://ror.org/), in the\nyears you choose:\n\n```bash\ncurl \"https://obc.staging.jupiter-station.openjournalscollective.org/api/v1/institutions/052gg0110/?from=2020&to=2024\"\n```\n\nEach reply gives the number of works, by type; the people credited on\nthem; where the works are most (the top journals, publishers or\ninstitutions); works per year; the countries of everyone credited; a\nlink to the same figures on the dashboard; and when the data last came\nfrom its sources.\n\nFor the works themselves, a page at a time:\n\n```bash\ncurl \"https://obc.staging.jupiter-station.openjournalscollective.org/api/v1/works/?institution=052gg0110&from=2024&page_size=10\"\n```\n\nand the people credited on them, those on the most works first:\n\n```bash\ncurl \"https://obc.staging.jupiter-station.openjournalscollective.org/api/v1/authors/?institution=052gg0110\"\n```\n\n## Collectives and hosts\n\nEach collective's dashboard serves its own data from its own address:\n`/api/v1/` on the Open Journals Collective's dashboard describes OJC\njournals and articles, and on the Open Book Collective's, OBC books and\nchapters. The combined dashboard serves both. The same request can\ntherefore give different figures on different hosts, and something not\nin a host's collective is not found there.\n\nThis page describes the API on **obc.staging.jupiter-station.openjournalscollective.org**.\n\n## Identifiers\n\n| Endpoint | Identifier | Where to find it |\n|---|---|---|\n| Institutions | ROR ID, without `https://ror.org/` | [ror.org](https://ror.org/), or the institution's page on the dashboard |\n| Publishers, journals, books | The dashboard's ID | The number in the dashboard's address for it, such as `/journals/12/` |\n| Countries | ISO 3166-1 alpha-2 code, such as `GB` | Any letter case |\n| Works, people | The dashboard's ID | `id` in any list of works or people, and each contributor's `id` |\n\nA person's ID stays the same unless two records turn out to be one\nperson; the one merged away then redirects (`301`) to the other.\n\n## Filtering and pages\n\n`/works/` and `/authors/` take the dashboard's list filters, which\ncombine: `journal`, `publisher` and `book` (IDs), `institution` (a ROR\nID), `country` (a code), `person` (an ID), and `type` (`article`,\n`book`, `chapter`, or `all`, the default). With an institution or a\ncountry they select the works of people who were there when they\npublished, and `/authors/` lists those people. Each reply's `filters`\nsays what was applied; a filter that cannot be used (a journal not in\nthis collective, say) is an error rather than ignored.\n\nLists come a page at a time: `page` from 1, and `page_size` up to 100\n(50 unless given). `count` and `pages` give the totals, and `next` and\n`previous` link to the pages either side; follow `next` until it is\n`null` to read the whole list.\n\n## Years\n\nFigures, lists and people take `from` and `to`, each a year and both\noptional:\n`?from=2020` counts works published in 2020 or later, `?to=2022` those\npublished in 2022 or earlier. Without them every year counts, and\n`per_year` covers the last 7 years. A value that is not a year is\nignored, and a range given the wrong way round is turned round; the\nreply's `years` says which years were counted.\n\n## Limits and caching\n\n- Each caller (an IP address, or for IPv6 a /64) can make **120 requests a minute**. Over that the API answers `429 Too Many Requests`, with a `Retry-After` header giving the seconds to wait.\n- Replies are cached for up to **an hour**, and the cache is cleared\n  whenever the data is refreshed from its sources. `provenance.updated`\n  says when that last happened, so there is no need to ask more often.\n- Every reply allows any origin (`Access-Control-Allow-Origin: *`),\n  so a web page on any site can call the API from the browser. No reply\n  sets a cookie.\n\n## Errors\n\nErrors are JSON, with a sentence saying what went wrong:\n\n```json\n{\"error\": \"No journal with that ID has articles in this collective.\"}\n```\n\n| Status | Meaning |\n|---|---|\n| `400` | A filter, type or page that cannot be used. |\n| `404` | No such thing, or nothing of it in this collective; also any path the API does not have. |\n| `429` | Over the rate limit; wait for `Retry-After` seconds. |\n\nA path without its closing slash is redirected (`301`) to the one with\nit.\n\n## Where the data comes from\n\nThe dashboard gathers its records from open sources (OpenAlex, Thoth,\nthe Research Organization Registry, the collectives' journals'\nplatforms) and from staff corrections. Each work's `provenance` gives\nthe code of the source of each field, and of its list of contributors,\nand the reply's `sources` names them. Where sources disagree, the most\ntrusted one's value is used, and a correction by staff outranks them\nall.\n\nWorks are counted with their authors and editors as each work's most\ntrusted source records them, and their affiliations when the work was\npublished. As on the dashboard's pages, an institution's works and\nauthors, and the countries, count an affiliation any source records.\n\n## People\n\nThe API names the people the dashboard's pages name, with the\nprofessional details they published: their name, ORCID iD and\ninstitutions. Anyone who has asked to be left off the dashboard is left\nout of the API too, though the figures still count them, as a count\nnames no one. Abstracts are not included; they are the publishers' to\npublish.\n\n## Widgets\n\nTo show these figures on a website without writing code, use the\ndashboard's [widgets](https://obc.staging.jupiter-station.openjournalscollective.org/widget/): they draw the same figures in the\ncollective's colours, and keep themselves up to date.\n", "contact": {"name": "Open Book Collective", "email": "ajrbyers@gmail.com"}}, "servers": [{"url": "https://obc.staging.jupiter-station.openjournalscollective.org/api/v1"}], "tags": [{"name": "Figures", "description": "The figures for one thing in the collective, all in the same shape."}, {"name": "Works and people", "description": "The collective's works, with their contributors and where each fact came from, and the people credited on them, as lists and one at a time."}, {"name": "About the API", "description": "What the API offers."}], "paths": {"/": {"get": {"operationId": "index", "summary": "The collective and the endpoints", "tags": ["About the API"], "responses": {"200": {"description": "JSON.", "content": {"application/json": {}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/openapi.json": {"get": {"operationId": "openapi", "summary": "This description", "tags": ["About the API"], "responses": {"200": {"description": "JSON.", "content": {"application/json": {}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/collective/": {"get": {"operationId": "collective", "summary": "The collective as a whole", "tags": ["Figures"], "parameters": [{"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/institutions/{id}/": {"get": {"operationId": "institutions", "summary": "An institution's authors' work in the collective", "tags": ["Figures"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The institution's ROR ID, without https://ror.org/.", "schema": {"type": "string", "pattern": "^0[a-z0-9]{8}$"}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/publishers/{id}/": {"get": {"operationId": "publishers", "summary": "A publisher's works", "tags": ["Figures"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The publisher's ID on the dashboard.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/journals/{id}/": {"get": {"operationId": "journals", "summary": "A journal's articles", "tags": ["Figures"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The journal's ID on the dashboard.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/books/{id}/": {"get": {"operationId": "books", "summary": "A book and its chapters", "tags": ["Figures"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The book's ID on the dashboard.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/countries/{id}/": {"get": {"operationId": "countries", "summary": "Works by authors in a country", "tags": ["Figures"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The country's ISO 3166-1 alpha-2 code.", "schema": {"type": "string", "pattern": "^[A-Za-z]{2}$"}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The figures.", "content": {"application/json": {"schema": {"type": "object", "required": ["kind", "subject", "collective", "years", "works", "authors", "top", "per_year", "countries", "links", "provenance"], "properties": {"kind": {"type": "string", "enum": ["collective", "institution", "publisher", "journal", "book", "country"], "example": "institution"}, "subject": {"type": "object", "description": "What the figures are about: its ID (a ROR ID, a dashboard ID, an ISO 3166-1 alpha-2 code, or the collective's code) and name, with an institution's country and a journal's or book's publisher.", "properties": {"id": {"type": ["string", "integer", "null"], "example": "052gg0110"}, "name": {"type": "string", "example": "University of Oxford"}, "country": {"type": ["object", "null"], "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}}}, "publisher": {"type": ["string", "null"], "example": null}}}, "collective": {"type": "object", "properties": {"code": {"type": ["string", "null"], "example": "ojc"}, "name": {"type": "string", "example": "Open Journals Collective"}, "url": {"type": "string", "format": "uri"}}}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "object", "description": "The subject's works in the collective, in total and by type.", "properties": {"total": {"type": "integer", "minimum": 0, "example": 390}, "articles": {"type": "integer", "minimum": 0, "example": 390}, "books": {"type": "integer", "minimum": 0, "example": 0}, "chapters": {"type": "integer", "minimum": 0, "example": 0}}}, "authors": {"type": "integer", "minimum": 0, "description": "People credited on those works (for an institution or a country, while there).", "example": 516}, "top": {"type": "object", "description": "Where the works are most. For the collective and an institution: journals if most of the works are articles, else publishers. For a publisher: its journals if most are articles, else institutions. Institutions otherwise.", "properties": {"kind": {"type": "string", "enum": ["journals", "publishers", "institutions"], "example": "journals"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "SciPost Physics"}, "works": {"type": "integer", "minimum": 0, "example": 71}, "url": {"type": "string", "format": "uri"}}}}}}, "per_year": {"type": "array", "description": "Works per year of the range, or of the last few years when it is open.", "items": {"type": "object", "properties": {"year": {"type": "integer", "example": 2024}, "works": {"type": "integer", "minimum": 0, "example": 61}}}}, "countries": {"type": "array", "description": "The countries of everyone credited on the works, most people first; the top ten (empty for a country).", "items": {"type": "object", "properties": {"code": {"type": "string", "example": "GB"}, "name": {"type": "string", "example": "United Kingdom"}, "people": {"type": "integer", "minimum": 0, "example": 251}, "works": {"type": "integer", "minimum": 0, "example": 389}}}}, "links": {"type": "object", "properties": {"dashboard": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "properties": {"basis": {"type": "string"}, "updated": {"type": ["string", "null"], "format": "date-time", "description": "When the data was last refreshed from its sources."}}}}}}}}, "404": {"description": "Not found, or nothing in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/works/": {"get": {"operationId": "works", "summary": "Works, filtered", "tags": ["Works and people"], "parameters": [{"name": "type", "in": "query", "required": false, "description": "The kind of work: every kind unless given.", "schema": {"type": "string", "enum": ["all", "article", "book", "chapter"]}}, {"name": "journal", "in": "query", "required": false, "description": "A journal's ID: its articles.", "schema": {"type": "integer", "minimum": 1}}, {"name": "publisher", "in": "query", "required": false, "description": "A publisher's ID: its works.", "schema": {"type": "integer", "minimum": 1}}, {"name": "book", "in": "query", "required": false, "description": "A book's ID: the book and its chapters.", "schema": {"type": "integer", "minimum": 1}}, {"name": "institution", "in": "query", "required": false, "description": "A ROR ID: works by people there when they published.", "schema": {"type": "string", "example": "052gg0110"}}, {"name": "country", "in": "query", "required": false, "description": "An ISO 3166-1 alpha-2 code: works by people there when they published.", "schema": {"type": "string", "example": "GB"}}, {"name": "person", "in": "query", "required": false, "description": "A person's ID: their works.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "page", "in": "query", "required": false, "description": "The page, from 1.", "schema": {"type": "integer", "minimum": 1}}, {"name": "page_size", "in": "query", "required": false, "description": "Results a page.", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}}], "responses": {"200": {"description": "A page of works.", "content": {"application/json": {"schema": {"type": "object", "description": "A page of works, newest first.", "properties": {"count": {"type": "integer", "minimum": 0, "description": "Results in all.", "example": 970}, "page": {"type": "integer", "minimum": 1, "example": 1}, "pages": {"type": "integer", "minimum": 1, "example": 20}, "next": {"type": ["string", "null"], "format": "uri", "example": "https://example.org/api/v1/works/?journal=259&page=2"}, "previous": {"type": ["string", "null"], "format": "uri"}, "filters": {"type": "array", "description": "The filters applied, as the dashboard describes them.", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "journal"}, "value": {"type": "string", "example": "259"}, "label": {"type": "string", "example": "in SciPost Physics"}}}}, "sources": {"type": "object", "description": "The name of each source the provenance names, by its code.", "additionalProperties": {"type": "string"}, "example": {"openalex": "OpenAlex"}}, "results": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 152050}, "type": {"type": "string", "enum": ["article", "book", "chapter"], "example": "article"}, "title": {"type": "string", "example": "Evaporating universes"}, "subtitle": {"type": ["string", "null"]}, "doi": {"type": ["string", "null"], "example": "10.21468/scipostphys.21.4.081"}, "status": {"type": ["string", "null"], "enum": ["published", "forthcoming", null]}, "publication_date": {"type": ["string", "null"], "format": "date", "example": "2026-10-01"}, "acceptance_date": {"type": ["string", "null"], "format": "date"}, "journal": {"type": ["object", "null"], "description": "An article's journal.", "properties": {"id": {"type": "integer", "minimum": 1}, "title": {"type": "string", "example": "SciPost Physics"}, "issn": {"type": ["string", "null"]}, "eissn": {"type": ["string", "null"], "example": "2542-4653"}}}, "book": {"type": ["object", "null"], "description": "A chapter's book.", "properties": {"id": {"type": "integer", "minimum": 1}, "title": {"type": "string"}}}, "publisher": {"type": ["object", "null"], "properties": {"id": {"type": "integer", "minimum": 1}, "name": {"type": "string", "example": "SciPost"}}}, "contributors": {"type": "array", "description": "The authors, editors and others credited, in order, from the work's most trusted source of contributors. People who asked not to be shown are left out.", "items": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 165957}, "name": {"type": "string", "example": "D. Gupta"}, "orcid": {"type": ["string", "null"], "example": "0000-0002-1825-0097"}, "role": {"type": "string", "enum": ["author", "editor", "translator", "other"]}, "affiliations": {"type": "array", "items": {"type": "object", "description": "An institution the person gave on this work, with its ROR ID when it is known, and its country.", "properties": {"name": {"type": "string", "example": "University of Oxford"}, "ror": {"type": ["string", "null"], "example": "052gg0110"}, "country": {"type": ["string", "null"], "example": "GB"}}}}, "url": {"type": "string", "format": "uri"}}}}, "links": {"type": "object", "properties": {"doi": {"type": ["string", "null"], "format": "uri"}, "landing_page": {"type": ["string", "null"], "format": "uri"}, "full_text": {"type": ["string", "null"], "format": "uri"}, "dashboard": {"type": ["string", "null"], "format": "uri", "description": "A book's page (a chapter's book)."}, "self": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "description": "Where the work's facts came from: the code of the source of each field shown (see `sources`), and of its list of contributors, the most trusted source that has one.", "properties": {"fields": {"type": "object", "additionalProperties": {"type": "string"}, "example": {"title": "openalex", "doi": "openalex"}}, "contributors": {"type": ["string", "null"], "example": "openalex"}}}}}}}}}}}, "400": {"description": "A filter or page that cannot be used; the error says why.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/works/{id}/": {"get": {"operationId": "work", "summary": "One work", "tags": ["Works and people"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The ID on the dashboard.", "schema": {"type": "integer", "minimum": 1}}], "responses": {"200": {"description": "The work.", "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 152050}, "type": {"type": "string", "enum": ["article", "book", "chapter"], "example": "article"}, "title": {"type": "string", "example": "Evaporating universes"}, "subtitle": {"type": ["string", "null"]}, "doi": {"type": ["string", "null"], "example": "10.21468/scipostphys.21.4.081"}, "status": {"type": ["string", "null"], "enum": ["published", "forthcoming", null]}, "publication_date": {"type": ["string", "null"], "format": "date", "example": "2026-10-01"}, "acceptance_date": {"type": ["string", "null"], "format": "date"}, "journal": {"type": ["object", "null"], "description": "An article's journal.", "properties": {"id": {"type": "integer", "minimum": 1}, "title": {"type": "string", "example": "SciPost Physics"}, "issn": {"type": ["string", "null"]}, "eissn": {"type": ["string", "null"], "example": "2542-4653"}}}, "book": {"type": ["object", "null"], "description": "A chapter's book.", "properties": {"id": {"type": "integer", "minimum": 1}, "title": {"type": "string"}}}, "publisher": {"type": ["object", "null"], "properties": {"id": {"type": "integer", "minimum": 1}, "name": {"type": "string", "example": "SciPost"}}}, "contributors": {"type": "array", "description": "The authors, editors and others credited, in order, from the work's most trusted source of contributors. People who asked not to be shown are left out.", "items": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 165957}, "name": {"type": "string", "example": "D. Gupta"}, "orcid": {"type": ["string", "null"], "example": "0000-0002-1825-0097"}, "role": {"type": "string", "enum": ["author", "editor", "translator", "other"]}, "affiliations": {"type": "array", "items": {"type": "object", "description": "An institution the person gave on this work, with its ROR ID when it is known, and its country.", "properties": {"name": {"type": "string", "example": "University of Oxford"}, "ror": {"type": ["string", "null"], "example": "052gg0110"}, "country": {"type": ["string", "null"], "example": "GB"}}}}, "url": {"type": "string", "format": "uri"}}}}, "links": {"type": "object", "properties": {"doi": {"type": ["string", "null"], "format": "uri"}, "landing_page": {"type": ["string", "null"], "format": "uri"}, "full_text": {"type": ["string", "null"], "format": "uri"}, "dashboard": {"type": ["string", "null"], "format": "uri", "description": "A book's page (a chapter's book)."}, "self": {"type": "string", "format": "uri"}}}, "provenance": {"type": "object", "description": "Where the work's facts came from: the code of the source of each field shown (see `sources`), and of its list of contributors, the most trusted source that has one.", "properties": {"fields": {"type": "object", "additionalProperties": {"type": "string"}, "example": {"title": "openalex", "doi": "openalex"}}, "contributors": {"type": ["string", "null"], "example": "openalex"}}}, "sources": {"type": "object", "description": "The name of each source the provenance names, by its code.", "additionalProperties": {"type": "string"}, "example": {"openalex": "OpenAlex"}}}}}}}, "404": {"description": "Not found in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/authors/": {"get": {"operationId": "authors", "summary": "People credited, filtered", "tags": ["Works and people"], "parameters": [{"name": "type", "in": "query", "required": false, "description": "The kind of work: every kind unless given.", "schema": {"type": "string", "enum": ["all", "article", "book", "chapter"]}}, {"name": "journal", "in": "query", "required": false, "description": "A journal's ID: its articles.", "schema": {"type": "integer", "minimum": 1}}, {"name": "publisher", "in": "query", "required": false, "description": "A publisher's ID: its works.", "schema": {"type": "integer", "minimum": 1}}, {"name": "book", "in": "query", "required": false, "description": "A book's ID: the book and its chapters.", "schema": {"type": "integer", "minimum": 1}}, {"name": "institution", "in": "query", "required": false, "description": "A ROR ID: works by people there when they published.", "schema": {"type": "string", "example": "052gg0110"}}, {"name": "country", "in": "query", "required": false, "description": "An ISO 3166-1 alpha-2 code: works by people there when they published.", "schema": {"type": "string", "example": "GB"}}, {"name": "person", "in": "query", "required": false, "description": "A person's ID: their works.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "page", "in": "query", "required": false, "description": "The page, from 1.", "schema": {"type": "integer", "minimum": 1}}, {"name": "page_size", "in": "query", "required": false, "description": "Results a page.", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}}], "responses": {"200": {"description": "A page of people.", "content": {"application/json": {"schema": {"type": "object", "description": "A page of people, those credited on the most works first.", "properties": {"count": {"type": "integer", "minimum": 0, "description": "Results in all.", "example": 970}, "page": {"type": "integer", "minimum": 1, "example": 1}, "pages": {"type": "integer", "minimum": 1, "example": 20}, "next": {"type": ["string", "null"], "format": "uri", "example": "https://example.org/api/v1/works/?journal=259&page=2"}, "previous": {"type": ["string", "null"], "format": "uri"}, "filters": {"type": "array", "description": "The filters applied, as the dashboard describes them.", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "journal"}, "value": {"type": "string", "example": "259"}, "label": {"type": "string", "example": "in SciPost Physics"}}}}, "results": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 160989}, "name": {"type": "string", "example": "Sakura Schäfer-Nameki"}, "orcid": {"type": ["string", "null"], "example": "0000-0002-1825-0097"}, "works": {"type": "integer", "minimum": 0, "example": 27}, "institutions": {"type": "array", "description": "The institutions they gave on these works.", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "University of Oxford"}, "ror": {"type": ["string", "null"], "example": "052gg0110"}}}}, "url": {"type": "string", "format": "uri"}}}}}}}}}, "400": {"description": "A filter or page that cannot be used; the error says why.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}, "/authors/{id}/": {"get": {"operationId": "author", "summary": "One person", "tags": ["Works and people"], "parameters": [{"name": "id", "in": "path", "required": true, "description": "The ID on the dashboard.", "schema": {"type": "integer", "minimum": 1}}, {"name": "from", "in": "query", "required": false, "description": "Count only works published in or after this year.", "schema": {"type": "integer", "example": 2020}}, {"name": "to", "in": "query", "required": false, "description": "Count only works published in or before this year.", "schema": {"type": "integer", "example": 2020}}], "responses": {"200": {"description": "The person.", "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "integer", "minimum": 1, "example": 160989}, "name": {"type": "string", "example": "Sakura Schäfer-Nameki"}, "orcid": {"type": ["string", "null"], "example": "0000-0002-1825-0097"}, "years": {"type": "object", "properties": {"from": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}, "to": {"type": ["integer", "null"], "description": "The first or last year counted; null when open."}}}, "works": {"type": "integer", "minimum": 0, "description": "Works in the collective they are credited on.", "example": 27}, "roles": {"type": "object", "description": "Works by the part they had in them.", "additionalProperties": {"type": "integer", "minimum": 0}, "example": {"author": 27}}, "institutions": {"type": "array", "description": "The institutions they gave on those works.", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "University of Oxford"}, "ror": {"type": ["string", "null"], "example": "052gg0110"}}}}, "links": {"type": "object", "properties": {"works": {"type": "string", "format": "uri", "description": "Their works, in this API."}, "dashboard": {"type": "string", "format": "uri", "description": "Their works on the dashboard."}, "self": {"type": "string", "format": "uri"}}}}}}}}, "301": {"description": "A person merged into another record: redirected to it."}, "404": {"description": "Not found in this collective.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}, "429": {"description": "Over the rate limit; see Retry-After.", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string", "example": "No journal with that ID has articles in this collective."}}}}}}}}}}}