William Edson Photograph Collection - API
The Gateway to Oklahoma 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 William Edson Photograph Collection 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 Gateway to Oklahoma History please contact Mark Phillips.
Note that all example URLs below use the same protocol and server name, https://gateway.okhistory.org/explore/collections/WEPC/ . We only show the URL paths and parameters below to save space.
The Open Archives Initiative's Protocol for Metadata Harvesting (OAI-PMH) allows programmatic access to this collection'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:
- base URL for OAI-PMH repository
- Display information about this repository
- List available metadata formats
- List available sets
- Display records in the oai_dc metadata format
- 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 collection available for other applications. Access to the IIIF Presentation API for this collection can be found here.
In addition to the IIIF Collection level Manifest for this collection 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.
If you are interested in following along with new additions to the collection you can subscribe to one of its feeds. We make use of the ATOM Syndication Format for our feeds.
New Item Feed - feed/
Recent Edit Feed - edit-feed/
OpenSearch is a search protocol which enables simple full-text searches to be performed on this collection's content. The availability of this protocol is advertised in a LINK header element of the site's HTML template as "Search William Edson Photograph Collection," 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 Gateway to Oklahoma 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.
<!-- Start of Custom Search code --> <form role="search" method="GET" action="https://gateway.okhistory.org/explore/collections/WEPC/browse/"> <label for="q">Search - William Edson Photograph Collection - The Gateway to Oklahoma History</label> <input type="text" name="q" /> <input type="hidden" name="t" value="fulltext" /> <input type="hidden" name="source" value="custom" /> <input type="submit" value="submit" /> </form> <!-- End of Custom Search code -->
Each item in this collection 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.
A convenient way to obtain a list of all identifiers for a given William Edson Photograph Collection is available by appending /identifiers/ to the base of the collection URL.
The response will be application/txt containing one ARK identifier per line.
A convenient way to obtain a list of all titles for the William Edson Photograph Collection 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.