Difference between revisions of "APE API documentation"
(→The /content/descriptiveUnit/{id} service) |
|||
Line 1: | Line 1: | ||
− | |||
The [http://www.archivesportaleurope.net/ Archives Portal Europe] helps people to search for and retrieve archival descriptions harvested from archival institutons throughout Europe. These services are available as an [https://en.wikipedia.org/wiki/Application_programming_interface Application Programming Interface (API)] as well. Request and response parameters are provided and delivered in [https://en.wikipedia.org/wiki/JSON JSON]. This enables every programmer to create an (online) user interface for searching in and retrieving of archival descriptions. | The [http://www.archivesportaleurope.net/ Archives Portal Europe] helps people to search for and retrieve archival descriptions harvested from archival institutons throughout Europe. These services are available as an [https://en.wikipedia.org/wiki/Application_programming_interface Application Programming Interface (API)] as well. Request and response parameters are provided and delivered in [https://en.wikipedia.org/wiki/JSON JSON]. This enables every programmer to create an (online) user interface for searching in and retrieving of archival descriptions. | ||
Line 8: | Line 7: | ||
* have a notion about the way data is copied ('harvested') in EAD-format from Collection Management Systems at archival institutions | * have a notion about the way data is copied ('harvested') in EAD-format from Collection Management Systems at archival institutions | ||
+ | = The services = | ||
+ | In the current version (v1.0), various services are available. The endpoint of the API is [https://api.archivesportaleurope.net/services https://api.archivesportaleurope.net/services] | ||
− | + | Via [https://www.archivesportaleurope.net/ApeApi/#!/search/search https://www.archivesportaleurope.net/ApeApi/#!/search/search] you can access the ApeApi Explorer were you can try the services and see the responses. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | {| class="wikitable" | |
+ | | | ||
+ | ! style="width: 250px;" | Description | ||
+ | ! style="width: 250px;" | EAD | ||
+ | ! style="width: 250px;" | EAC-CPF | ||
+ | |- | ||
+ | | style="vertical-align: top" | search (POST) | ||
+ | | style="vertical-align: top" | Services for searching with a term in the content and filtering on facets | ||
+ | | style="vertical-align: top" | | ||
+ | * [[searchEad | /search/ead]] | ||
+ | <!-- * /search/ead/docList --> | ||
+ | <!-- * /search/ead/descendants --> | ||
+ | <!-- * /search/ead/children --> | ||
+ | | style="vertical-align: top" | | ||
+ | * [[searchEac | /search/eac-cpf]] | ||
+ | |- | ||
+ | | style="vertical-align: top" | content (GET) | ||
+ | | style="vertical-align: top" | Services for getting detailed information about a particular result | ||
+ | | style="vertical-align: top" | | ||
+ | * [[contentEadArchdesc | /content/ead/archdesc/{id}]] | ||
+ | <!-- * /content/ead/archdesc/{id}/children --> | ||
+ | * [[contentEadClevel | /content/ead/clevel/{id}]] | ||
+ | <!-- * /content/ead/clevel/{id}/children --> | ||
+ | <!-- * /content/ead/clevel/{id}/parent --> | ||
+ | | style="vertical-align: top" | | ||
+ | * [[contentEac-cpf | /content/eac-cpf/{id} ]] | ||
+ | |- | ||
+ | | style="vertical-align: top" | download (GET) | ||
+ | | style="vertical-align: top" | Services for downloading XML-files | ||
+ | | style="vertical-align: top" | | ||
+ | * [[downloadEad | /download/ead/{id}]] | ||
+ | | style="vertical-align: top" | | ||
+ | * [[downloadEac-cpf | /download/eac-cpf/{id}]] | ||
+ | |- | ||
+ | |} | ||
− | + | {| class="wikitable" | |
+ | | style="vertical-align: top" | institute (POST / GET) | ||
+ | | style="vertical-align: top" | Services for getting full lists | ||
+ | | | ||
+ | * [[getInstitutes | /institute/getInstitutes/{startIndex}/{count}]] | ||
+ | * [[getDocs | /institute/getDocs]] | ||
+ | |} | ||
− | + | = Future work = | |
− | In the current version search and retrieve of archival descriptions are provided. We plan to expand this functionality with | + | In the current version search and retrieve of archival descriptions are provided. We plan to expand this functionality with: |
− | * | + | * more options for detailed view of a finding aid |
− | + | * searching and retrieving of person names in the archival records | |
− | * person names in the archival records | + | |
− | + | = API Key = | |
− | + | ||
In order for Archives Portal Europe to monitor the use of the API, you need to request an API-key to be able to use the API. The API-key can be requested via the option [https://www.archivesportaleurope.net/information-api API] on the homepage of the portal, or directly via this url: [https://www.archivesportaleurope.net/get-api-key https://www.archivesportaleurope.net/get-api-key]. | In order for Archives Portal Europe to monitor the use of the API, you need to request an API-key to be able to use the API. The API-key can be requested via the option [https://www.archivesportaleurope.net/information-api API] on the homepage of the portal, or directly via this url: [https://www.archivesportaleurope.net/get-api-key https://www.archivesportaleurope.net/get-api-key]. | ||
− | ''Note: you need to be a registered user of the Archives Portal Europe to be able to get an API key, so if you don't have an account for the Archives Portal Europe's My Pages functionality yet, please create one first. You can read more on the My Pages functionality over [ | + | ''Note: you need to be a registered user of the Archives Portal Europe to be able to get an API key, so if you don't have an account for the Archives Portal Europe's My Pages functionality yet, please create one first. You can read more on the My Pages functionality over [http://wiki.archivesportaleurope.net/index.php/Using_My_Pages here].'' |
Using the API you need to add a parameter "APIkey" to the header of your request | Using the API you need to add a parameter "APIkey" to the header of your request | ||
Line 38: | Line 73: | ||
</pre> | </pre> | ||
− | + | = Versioning = | |
− | + | ||
Depending on the version of the API that you want to use, the accept parameter in the header must be set to a specific Content Type. For version 1.0 this is: application/vnd.ape-v1+json | Depending on the version of the API that you want to use, the accept parameter in the header must be set to a specific Content Type. For version 1.0 this is: application/vnd.ape-v1+json | ||
Line 46: | Line 80: | ||
'accept' : 'application/vnd.ape-v1+json' | 'accept' : 'application/vnd.ape-v1+json' | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Technical_documentation]] | [[Category:Technical_documentation]] |
Revision as of 13:03, 11 August 2016
The Archives Portal Europe helps people to search for and retrieve archival descriptions harvested from archival institutons throughout Europe. These services are available as an Application Programming Interface (API) as well. Request and response parameters are provided and delivered in JSON. This enables every programmer to create an (online) user interface for searching in and retrieving of archival descriptions.
We expect readers of this documentation to:
- know how to develop with a RESTful API and JSON
- understand the hierarchical data structures in archival descriptions
- have a notion about the XML-data standard Encoded Archival Description (EAD) 2002
- have a notion about the way data is copied ('harvested') in EAD-format from Collection Management Systems at archival institutions
Contents
The services
In the current version (v1.0), various services are available. The endpoint of the API is https://api.archivesportaleurope.net/services
Via https://www.archivesportaleurope.net/ApeApi/#!/search/search you can access the ApeApi Explorer were you can try the services and see the responses.
Description | EAD | EAC-CPF | |
---|---|---|---|
search (POST) | Services for searching with a term in the content and filtering on facets | ||
content (GET) | Services for getting detailed information about a particular result | ||
download (GET) | Services for downloading XML-files |
institute (POST / GET) | Services for getting full lists |
Future work
In the current version search and retrieve of archival descriptions are provided. We plan to expand this functionality with:
- more options for detailed view of a finding aid
- searching and retrieving of person names in the archival records
API Key
In order for Archives Portal Europe to monitor the use of the API, you need to request an API-key to be able to use the API. The API-key can be requested via the option API on the homepage of the portal, or directly via this url: https://www.archivesportaleurope.net/get-api-key.
Note: you need to be a registered user of the Archives Portal Europe to be able to get an API key, so if you don't have an account for the Archives Portal Europe's My Pages functionality yet, please create one first. You can read more on the My Pages functionality over here.
Using the API you need to add a parameter "APIkey" to the header of your request
eg.
'APIkey' : 'put_your_personal_API-key_here'
Versioning
Depending on the version of the API that you want to use, the accept parameter in the header must be set to a specific Content Type. For version 1.0 this is: application/vnd.ape-v1+json
eg.
'accept' : 'application/vnd.ape-v1+json'