Activities
GET /api/activities
Returns activities stored in OSIRIS.
This endpoint can be used to retrieve activity records, select specific fields, filter results, aggregate records by a field, or export full activity data.
The API key can be passed as query parameter:
1 | |
or as HTTP header:
1 | |
Parameters
| Parameter | Type | Description |
|---|---|---|
apikey |
string | API key, if required. |
json |
string | JSON-encoded MongoDB filter. Overrides filter if both are provided. |
filter |
object/array | Alternative filter parameter. Mainly useful for internal calls. |
columns[] |
array | Optional list of fields to return. |
aggregate |
string | Groups activities by the given field and returns counts. |
full |
boolean | Returns full activity records as streamed JSON. |
limit |
integer | Limits the number of returned records. |
offset |
integer | Skips records when limit is used. |
Default Response
Without additional parameters, the endpoint returns a compact activity list.
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Default fields:
| Field | Description |
|---|---|
id |
Activity ID as string. |
activity |
Rendered HTML representation for web display. |
icon |
Icon representing the activity type. |
type |
Rendered activity type. |
subtype |
Rendered activity subtype. |
year |
Activity year. |
Selecting Columns
Use columns[] to request specific fields.
1 | |
Some fields are read from the rendered activity representation:
1 | |
All other fields are read directly from the activity record.
Example:
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
Filtering
Use the json parameter to pass a MongoDB filter.
1 | |
URL-encoded:
1 | |
Example: publications from 2025:
1 2 3 4 | |
Example with MongoDB operator:
1 2 3 4 5 | |
Pagination
Pagination is available through the global limit and offset parameters.
1 | |
The count field contains the total number of matching records before pagination is applied.
1 2 3 4 5 6 7 | |
Aggregation
Use aggregate to group activities by one field.
1 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Aggregation can be combined with filters:
1 | |
If the aggregation field contains authors, OSIRIS unwinds the authors array before grouping.
Example:
1 | |
Full Export
Use full=1 to retrieve full activity records.
1 | |
This returns streamed JSON:
1 2 3 4 5 6 7 8 9 10 11 | |
This mode is intended for exports or synchronization. It may return large datasets.
GET /api/html
Returns publication records as pre-rendered HTML citations.
This endpoint is intended for websites and external systems that want to display publication lists without implementing their own citation formatting.
The returned HTML is generated by OSIRIS and can be embedded directly into web pages.
Parameters
| Parameter | Type | Description |
|---|---|---|
apikey |
string | API key, if required. |
limit |
integer | Maximum number of publications returned. |
Returned Publications
The endpoint currently returns publications matching the following criteria:
- Activity type is
publication - Publication year is greater than or equal to the start year (OSIRIS setting)
- At least one author is marked as affiliated
Example Request
1 | |
Example Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Returned Fields
| Field | Description |
|---|---|
id |
Activity ID |
html |
Pre-rendered publication citation in HTML format |
year |
Publication year |
departments |
Associated departments |
link |
DOI, PubMed, or external URL if available |
Link Resolution
The link field is automatically generated using the following priority:
- DOI
- PubMed ID
- External URL stored in the publication record
If none of these values are available, link is returned as null.
Typical Use Cases
- Institutional publication lists
- Research group websites
- Personal profile pages
- Public publication portals
- Automated content integration into CMS systems