SPC Digital Library Documentation

Search Interface (SPC) Documentation index OAI-PMH Digital Library API

GetEvents

Summary

Returns event metadata (and nested presentations, documents and links) filtered by repository code, SEF page name or event id.

Results are camel-cased JSON and ordered by year then startDate.

HTTP

Query parameters

Behavior

Response (200 JSON)

Top-level: JSON array of event objects. Each event contains:

Example request

curl "https://www.spc.int/DigitalLibrary/Api/GetEvents?repositoryCode=FAME&SEFPageName=HOF_15"

Example response (truncated)


[
    {
        "id": "115645ae-5913-4558-a719-14100164a656",
        "sefPageName": "HOF_15",
        "year": 2023,
        "title": "15th SPC Heads of Fisheries Meeting",
        "siteURL": null,
        "bannerURL": null,
        "venue": null,
        "startDate": "2023-03-20T00:00:00",
        "endDate": "2023-03-24T00:00:00",
        "publishAtDate": null,
        "description": "The SPC Heads of Fisheries Meeting provides technical oversight of all SPC work in the field of fisheries and aquaculture(...)",
        "eventTypeId": "1730f4fb-37c7-42e0-b11e-ded22246fe49",
        "dateCreated": "2023-03-17T14:26:49.073",
        "lastModified": "2023-03-17T14:26:49.073",
        "keywords": [],
        "presentations": [
            {
                "id": "44178f9e-7ca1-4145-b944-61d0d7601470",
                "title": "Day 2 - Progress report against outcomes from HoF14 and RFMM3 \r\n",
                "language": "EN",
                "presenters": "Terry Opa",
                "organizations": "The Pacific Community",
                "reference": null,
                "index": 201,
                "dateCreated": "2023-03-19T18:25:02.563",
                "lastModified": "2023-03-19T18:25:02.563",
                "documents": [
                    {
                        "id": "c5a90318-dc6d-4b8f-904b-cf971a167874",
                        "name": "Day2_01_IP1.pptx",
                        "filetype": "PPTX",
                        "size": 884806,
                        "mimeType": "application/vnd.openxmlformats",
                        "url": "https://www.spc.int/digitallibrary/get/kpwma",
                        "md5": "748b81bcd2af5d074a07c1375391b812",
                        "dateCreated": "2023-03-19T18:25:19.6",
                        "lastModified": "2023-03-20T16:31:34.01"
                    }
                ],
                "links": []
            }
            
        ]
    }
]