The API returns all character data as UTF-8, and expects to receive it as UTF-8 as well.
Clients should depend on the numeric HTTP status code only, not the result message. In addition to the documented status codes below, clients should be prepared to handle unexpected 500-level errors in response to any request.
This API service will output XML, JSON, or JSONP depending on the
order of preference expressed by your HTTP client in the Accept
header. This can be overridden by appending one of the extensions
below to the URI.
| URI extension | MIME type | Notes | |
|---|---|---|---|
| XML | .xml | application/xml | XML records are in the http://digital.library.unlv.edu
namespace. They use XLink
for cross-document hyperlinking and XML
Schema for validation. |
| JSON | .json | application/json | |
| JSONP | .jsonp | text/javascript | JSONP wraps JSON output inside a JavaScript
callback function. By default, this function is named
dmBridgeRequest, but a custom function name
can be specified with the callback query
string parameter; e.g. ?callback=myFunction. |
Please be respectful of this server's limited processing and bandwidth resources, and employ caching where possible and appropriate.
| List all objects in a collection | api/1/objects/[alias] |
| List the highest rated objects in a collection | api/1/objects/[alias]/highest_rated |
| View a specific object | api/1/objects/[alias]/[pointer] |
| Search for objects based on their metadata | api/1/search |
| Search for objects by rating | api/1/search_by_rating |
| Retrieve an object's bitstream | api/1/objects/[alias]/[pointer]/bitstream |
| Retrieve an excerpt of an object's bitstream | api/1/objects/[alias]/[pointer]/excerpt |
| Search within the full text of an object | api/1/objects/[alias]/[pointer]/search |
| View an object's rating | api/1/objects/[alias]/[pointer]/rating |
| Rate an object | api/1/objects/[alias]/[pointer]/rating |
| View an object's thumbnail image | api/1/objects/[alias]/[pointer]/thumbnail |
| View a random object | api/1/objects/random |
| Retrieve an object's spatial bounds | api/1/objects/[alias]/[ptr]/bounds |
| Search for objects based on their spatial area | api/1/spatial_search |
| View the highlighted object | api/1/objects/highlighted |
| List all collections | api/1/collections |
| View a specific collection | api/1/collections/[alias] |
| Search for comments | api/1/comments |
| List all comments on an object | api/1/objects/[alias]/[pointer]/comments |
| Post a new comment | api/1/objects/[alias]/[pointer]/comments |
| View a specific comment | api/1/comments/[id] |
| Search for tags | api/1/tags |
| List all tags for an object | api/1/objects/[alias]/[pointer]/tags |
| Post a new tag | api/1/objects/[alias]/[pointer]/tags |
| View a specific tag | api/1/tags/[id] |
| View vocabulary term frequencies within one or multiple fields of a collection | api/1/vocabulary/[alias]/[field] |
| Suggest vocabulary terms that match a given string (search suggestions) | api/1/vocabulary/suggest |
| Retrieve API status information | api/1/status |
Retrieves all objects in a collection in a paginated list. The default number of results per page is 20.
GET api/1/objects/[alias]
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
| sort | No | Nickname of the field by which to sort | ||
| order | No | Sort order |
|
asc |
GET api/1/objects/[alias]/highest_rated
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| rpp | No | Results per page |
|
50 |
View an object identified by collection alias [alias] and pointer [pointer].
GET api/1/objects/[alias]/[pointer]
None
Up to four search terms can be used in a query. Each term is composed of a string (text to search for), a matching mode, and a metadata field in which to search.
GET api/1/search
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| q | No | Simple string query; an alternative to the "CISO" parameters below. If this is supplied, the "CISO" parameters are not necessary. | ||
| CISOOP[1-4] | Yes | Matching mode |
|
|
| CISOBOX[1-4] | Yes | Search string | ||
| CISOFIELD[1-4] | Yes | Nickname of the field in which to search |
|
|
| CISOROOT | Yes | A valid collection alias; multiple aliases separated by commas; or the word "all" to search across all collections | ||
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
| sort | No | Nickname of the field by which to sort | ||
| order | No | Sort order |
|
asc |
Searches for objects based on the specified rating thresholds.
GET api/1/search_by_rating
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
| min_rating | Yes | Minimum rating threshold |
|
|
| max_rating | Yes | Maximum rating threshold |
|
|
| collections | No | Collections |
|
Retrieves an object's bitstream (file).
GET api/1/objects/[alias]/[pointer]/bitstream
None
Retrieves an excerpt of an object's bitstream (file). Currently only works with PDF objects.
GET api/1/objects/[alias]/[pointer]/excerpt
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | Yes | Page number, for PDF objects only | ||
| format | No | Output file format, for PDF objects only. |
GET api/1/objects/[alias]/[pointer]/search
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| term | Yes | Search string |
Returns an object's mean rating along with the number of times it has been rated. Note that this information is also available in the object's representation (objects/[alias]).
GET api/1/objects/[alias]/[pointer]/rating
None
Rates an object on a numeric scale. Note: The client should check (using the status method) whether the server supports object ratings before soliciting them from the user.
POST api/1/objects/[alias]/[pointer]/rating
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| value | Yes | Rating value |
|
Returns an object's thumbnail image.
GET api/1/objects/[alias]/[pointer]/thumbnail
None
GET api/1/objects/random
None
GET api/1/objects/[alias]/[ptr]/bounds
None
GET api/1/spatial_search
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| CISOROOT | Yes | Aliases of collections in which to search | ||
| lat_n | Yes | North latitude, in decimal degrees | ||
| lat_s | Yes | South latitude, in decimal degrees | ||
| long_e | Yes | East longitude, in decimal degrees | ||
| long_w | Yes | West longitude, in decimal degrees | ||
| mode | No | Matching mode, in decimal degrees |
|
within |
| page | No | Page number | 1 | |
| rpp | No | Results per page | 50 | |
| sort | No | Nickname of the field by which to sort | ||
| order | No | Sort order |
|
asc |
GET api/1/objects/highlighted
None
Lists all public collections. Note that this does not list any objects within the collections. To list objects within a single collection, use objects/[alias]. There is currently no way to list all objects within all collections.
GET api/1/collections
None
Returns the collection with alias [alias]. Note that this does not list any objects within the collection; for that, use objects/[alias].
GET api/1/collections/[alias]
None
Returns a paginated list of all approved comments in the system matching the given criteria, sorted in descending order by posting date.
GET api/1/comments
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
| term | No | Search term |
|
|
| collections | No | Collections |
|
|
| objects | No | Objects |
|
Lists all approved comments for an object.
GET api/1/objects/[alias]/[pointer]/comments
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
Posts a new comment. Note: The client should check (using the status method) whether commenting is available before soliciting comments from the user.
POST api/1/objects/[alias]/[pointer]/comments
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| text | Yes | Comment body | ||
| name | Yes | Name or nickname of the person posting the comment | ||
| No | Email address of the person posting the comment |
|
Returns the comment with id [id]. Only approved comments are available.
GET api/1/comments/[id]
None
Returns a paginated list of all tags in the system matching the given criteria, grouped by frequency.
GET api/1/tags
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| page | No | Page number |
|
1 |
| rpp | No | Results per page |
|
50 |
| sort | No | Results sorting method |
|
null |
| term | No | Search term |
|
|
| collections | No | Collections |
|
|
| objects | No | Objects |
|
Lists all approved tags for an object.
GET api/1/objects/[alias]/[pointer]/tags
None
Posts a new tag. Note: The client should check (using the status method) whether tagging is available before soliciting tags from the user.
POST api/1/objects/[alias]/[pointer]/tags
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| value | Yes | Tag text |
|
Returns the tag with id [id]. Only approved tags are available.
GET api/1/tags/[id]
None
Returns counts of vocabulary terms contained within field [field] of collection with alias [alias].
GET api/1/vocabulary/[alias]/[field]
GET api/1/vocabulary/[alias]/[field1,field2]
None
Returns the vocabulary contained within field [field] of collection with alias [alias].
GET api/1/vocabulary/suggest
| Key | Required? | Description | Allowed Values | Default Value |
|---|---|---|---|---|
| CISOFIELD[1..*] | Yes | Nick of the field in which to search; use multiple occurrences of this key (with unique numeric suffixes) to search multiple fields | ||
| CISOROOT | Yes | Alias of a specific collection in which to search | ||
| CISOBOX1 | Yes | String for which suggestions should be provided |