Bell/Whittington Public Library - API

Overview

The Portal to Texas History provides public access to a number of Application Programming Interfaces (APIs) to the collections within the system. Below are examples of APIs available for Bell/Whittington Public Library that can be used openly by those interested in programmatically accessing data from this system. You do not need to apply for a special key to use these APIs.

For additional information about these APIs or if you have general questions about machine interaction with The Portal to Texas History please contact .

Note that all example URLs below use the same protocol and server name, https://texashistory.unt.edu/explore/partners/BWPL/ . We only show the URL paths and parameters below to save space.

OAI-PMH

The Open Archives Initiative's Protocol for Metadata Harvesting (OAI-PMH) allows programmatic access to this partner's metadata. Two metadata formats are currently supported, the standard oai_dc and the UNT Libraries native metadata format untl.

Below are example URLs which demonstrate some of the standard views of this OAI-PMH repository:

oai/
base URL for OAI-PMH repository
oai/?verb=Identify
Display information about this repository
oai/?verb=ListMetadataFormats
List available metadata formats
oai/?verb=ListSets
List available sets
oai/?verb=ListRecords&metadataPrefix=oai_dc
Display records in the oai_dc metadata format
oai/?verb=ListRecords&metadataPrefix=untl
Display records in the untl metadata format

International Image Interoperability Framework (IIIF)

The International Image Interoperability Framework (IIIF) is a set of Application Programming Interfaces (APIs) for making image-based collections available in a variety of viewers and applications.

This site's implementation of the IIIF Presentation API makes items from this partner available for other applications. Access to the IIIF Presentation API for this partner can be found here.

In addition to the IIIF Collection level Manifest for this partner each object is made available using the IIIF Presentation API. By adding `manifest` to the end of the URL you can access the IIIF JSON that further links to other resources available in the object.

Here is an example URL that will return the JSON file for a IIIF Presentation Manifest.

https://texashistory.unt.edu/ark:/67531/metapth12412/manifest/

SRU

Search/Retrieval via URL (SRU) can be used to run advanced queries on the content of this partner. A human-readable stylesheet has been added to help demonstrate searches via SRU. You can see this interface at the following URL.

OpenSearch

OpenSearch is a search protocol which enables simple full-text searches to be performed on this partner's content. The availability of this protocol is advertised in a LINK header element of the site's HTML template as "Search Bell/Whittington Public Library," using this OpenSearch Description document.

A human-readable stylesheet has been added to help demonstrate searches via OpenSearch. You can see this interface at the following url.

A custom search can be embedded on your local sites to query The Portal to Texas History. You can copy and paste this code into the page you'd like to feature this search form. Note, you may need to adjust the HTML to match your site's branding/style guidelines.

Thumbnails

Each item in this partner has a convenient way of obtaining the thumbnail image. This is accomplished by appending /thumbnail/ to the end of an objects ARK URL. For example:

The response will be application/jpeg containing a thumbnail for the item requested.

Identifiers

A convenient way to obtain a list of all identifiers for a given Bell/Whittington Public Library is available by appending /identifiers/ to the base of the partner URL.

The response will be application/txt containing one ARK identifier per line.

Titles

A convenient way to obtain a list of all titles for the Bell/Whittington Public Library is to append 'titles.txt' to the base of the collection URL. The response will be application/txt containing one title per line.

A JSON formatted response is also available by appending 'titles.json'. In addition to the title, a link to the search results for just that title in the system and the number of items associated with that title are given. An optional callback parameter can be used if needed.
https://texashistory.unt.edu/explore/partners/BWPL/api/
texashistory.unt.edu
crawl=CC-MAIN-2018-34
55798
application/http; msgtype=response
sha1:LC4MTH44IHGABQFY6GGIGTVY6MSO3USD
<urn:uuid:9eb04220-ec7a-49f1-87c3-ad3c1d929b0d>
2018-08-18T07:42:54Z
129.120.90.158
text/html
sha1:USW6P26Q7TFJIMQODIRAXHVPCGHCE2E3
<urn:uuid:12843aa7-d3ed-482e-9efc-d88fb615ab9b>
https://texashistory.unt.edu/explore/partners/BWPL/api/
response
<urn:uuid:46ec4266-f021-41dd-8504-d375549111ee>
isPartOf: CC-MAIN-2018-34
publisher: Common Crawl
description: Wide crawl of the web for August 2018
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-61-240-216.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 0.11-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/