With the help of the Application Programming Interface (API), you can query the web service automatically via URL parameters (see below). The results can be used and distributed under the terms of the Creative Commons license CC-BY 4.0.
The correspSearch API (TEI-XML output format) is available in the stable version 1.2.
The correspondence metadata are provided in TEI-XML format. The TEI encoding is generally compliant (apart from two differences) to the Correspondence Metadata Interchange (CMI) format, a highly reduced and restricted subset of the TEI Guidelines. See here for more information about the CMI format. The correspSearch API aggregates letter metadata from different sources which entails two necessary exceptions from the CMI format:
correspDescelements represent different sources, each
correspDescelement has to be linked to the source it refers to. This is done by usage of the attribute
correspDesc/@cs:source, the value of which should be the same as
Example query: https://correspSearch.net/api/v1.2/tei-xml.xql?correspondent=http://d-nb.info/gnd/118540238&startdate=1793-01-01&enddate=1808-02-02
The results are provided as TEI data which come in JSON format. For that purpose the TEI-XML data (see preceding section) are serialized with the help of the "exist-db JSON serializer". For more information about this serialization see the respective Blog post in the eXist-db blog. Due to the fact that the CMI format contains hardly any "mixed content" elements (i.e. XML elements with text and elements as children), the TEI-JSON output has a high correlation to the TEI-XML output.
Example query: https://correspSearch.net/api/v1.2/tei-json.xql?correspondent=http://d-nb.info/gnd/118540238&startdate=1793-01-01&enddate=1808-02-02
Besides the TEI-API the web service correspSearch offers the possibility to create BEACON files (with the same parameters) for every Authority Controlled Files (e.g. VIAF). Thus it is possible to automatically link to all letters from or to a specific person found in the correspSearch collection. The individual link leads the end user to the corresponding search result in correspSearch.
|Authority File||Base URL|
Example query of all correspondents who have a GND identifier: https://correspSearch.net/api/v1.2/gnd-beacon.xql?correspondent=all
To query the BEACON interface you can use all URL parameters as described below. This, for instance, enables queries that output only Authority Controlled IDs of those persons who have sent or received letters in a specific period.
Please note that the BEACON interface will only return the Authority File IDs of the correspondents as definded by the BEACON format. To retrieve the full correspondence metadata please use the TEI-XML or TEI-JSON interface as described above.
The correspondence metadata are outputted in the CSV format. The CSV file uses semicolons (;) as dividers and quotes (") as text delimiters. At the end of the CSV file the data publishers are mentioned in coherence with the CC-BY 4.0 license. The CSV interface was designed so that search results from correspSearch could be saved locally on your own computer for further use. The interface uses (among others) a modified version of the XSLT "cmi2csv", developed by Klaus Rettinghaus (SAW Leipzig).
Please note that the table format isn't standardized yet and will be subject to further developments. For machine-readable requests please use the TEI-XML or TEI-JSON interface as described above.
Searches the database for the given correspondent regardless of his or her role (i.e. as sender or recipient).Possible Values
Unabridged persistent URL from one of the following sets of standardized data:
It is possible to select more than one person by using the parameter several times.
If the search is not restricted to a specific person, the value is set to
correspondent but limited to the sender
correspondent but limited to the recipient
Start date of the time period covered by the queryPossible Values
Dates in machine-readable form. Possible formats are:
Note that due to technical reasons the latter two formats will be mapped to a specific date (i.e. first day of a month/year). Dates may be provided in text form as well. These dates are then automatically mapped to an ISO-date by means of the web service
Dates. Up till now, the PDR-WS Dates web service processes German and Italian dates; a recognizer for English dates is currently under development.
End date of the time period covered by the queryPossible Values
startdate, except ambiguous dates will be mapped automatically to the last day of the month or year.
Location where the letter was created or received.Possible Values
Requires an ID number from Geonames.org as an unabridged URL.Examples
Location where the letter was created.Possible Values
Location where the letter was received.Possible Values
Availability of the published letter: online or printed.Possible Values
Possible parameters are
[leer]. If the parameter is empty or not set then letters from both publication types (digital and print) will be selected.
Strict date search: letters are retrieved that were created completely within the indicated date span. This is opposed to the default search, which also retrieves letters created only partially within the searched date span.Possible Values
The data provided via the TEI-XML or the TEI-JSON API is available for subsequent use under the terms of the Creative Commons license CC-BY 4.0.