getDocs

From Archives Portal Europe Wiki
Revision as of 08:35, 1 November 2016 by Admin (Talk | contribs)

Jump to: navigation, search

Request url: https://api.archivesportaleurope.net/services/institute/getDocs This service is a POST-request.

This institute service delivers a list of Finding Aids, Holding Guide and Source Guides provided through the API. Remember that this only contains document of institutes that have enabled Open Data in the APE Dashboard.



Request parameters

eg.

{
  "count": 0,
  "startIndex": 0
  "instituteId": "361",
  "docType": "fa",
}

count

The resultlist is delivered in chunks of a certain size. Request parameter "count" describes the number of results that are in one chunk. Optional. Default value is 5.

startIndex

Request parameter "startIndex" enables you to select the results that you want to have. Counting starts at zero. If "count" = 5, the second chunk starts with startIndex 5, the following at startIndex 10, etc. Optional. Default value is 0.

instituteId

APE-identifier for the repository from which you want to get the list of documents. Required.

docType

Depending on which type of archival description you want, use "fa" for finding aid, "hg" for holdingsguide or "sg" for sourceguide. Required.

Response parameters

eg.

{
  "totalResults": 6714,
  "startIndex": 0,
  "totalPages": 1343,
  "eadResults": [
    {
      "id": "F11649",
      "fondsUnitTitle": "Inventaris van de Burgerlijke Stand der gemeente Sommelsdijk",
      "fondsUnitId": "3.198.07",
      "repository": "Nationaal Archief",
      "country": "NETHERLANDS",
      "language": "",
      "langMaterial": "",
      "unitDate": "1812-1932",
      "repositoryCode": "NL-HaNA",
      "hasDigitalObject": false,
      "docType": "Finding Aid",
      "docTypeId": "fa",
      "level": "archdesc",
      "indexDate": "Sun Dec 13 16:07:22 UTC 2015"
    }
  ]
}

totalResults

The response parameter "totalResults" gives the number of results.

startIndex

The response parameter "startIndex" gives the number of the chunk you requested.

totalPages

The response parameter "totalPages" gives the number of chunks.

eadResults

Enumeration of the results. Depending on the value of Request parameter 'docType', result could be a holdings guide, a source guide or a finding aid.

(table)