Please note that the documentation contained on this page is outdated. 

The following documention outlines the API calls for the Ontario Data Extraction Service and Infrastructure Application (ODESI) which harvests data from several sources including IPCSR, CORA, Dataverse, etc. These API calls are the same as used by the ODESI application itself and can be used by your institution to provide your users with an alternate interface to access these resources. 


Searching for records in ODESI can be done by calling the Base URL '' followed by your search parameters as outlined below, and ending with the URL encoded string '%26options%3Dodesi-opts2%26format%3Djson' which specifies the search options and format type (either json or xml). 

The entire search request is to be surrounded in round brackets with each search term also surrounded with round brackets.
E.g to search for 'smoking' you would add '((smoking))' to the Base URL as follows


To filter your search, prefix one of the following two letter codes to your search term; VL for Variable/Category Label, TI for Title, KW for Keywords, AB for Abstract, SE for Series.
E.g to search for 'smoking' in the title of a record, add  '((TI:smoking))' to the end of the Base URL as follows


To sort the search results by 'date', add 'AND (sort:date)' within the search request as follows AND (sort:date)%26options%3Dodesi-opts2%26format%3Djson

Limiting Results 

To restrict the search results after a specific year (say 1999), add 'AND (date GE 1999)' within the search request as follows AND (date GE 1999)%26options%3Dodesi-opts2%26format%3Djson 

To restrict the search results before a specific year (say 1999), add 'AND (date LE 1999)' within the search request as follows AND (date LE 1999)%26options%3Dodesi-opts2%26format%3Djson 

Paging Results

By default, the first page of results is returned. To go to another page of results, append "%26start%3D" plus the page number to be returned. E.g. for page 2.

More Results Pre Page

Also, by default, only 10 results are returned at a time. To increase the number of results to another amount append "%26pageLength%3D" plus the number results desired (noting the maximum number of results is dependant on your search criteria). E.g. for 100 results.

Searches can be quite complex afforded by the underlying MarkLogic database. See for examples of more complex searches.

To retrieve the metadata for a record, take the URI of a record and append to the end of the GetDetails Base URL ''.
E.g to show the metadata for the first record of the 'smoking' search results, add '/odesi/sos-82M0008E-E-1994.xml' to the end of the GetDetails Base URL as follows


The returned search response is comprised of the following pertinent information

totalThe total number of resultsnumeric
startThe starting record of the results pagenumeric
page-lengthThe number of results from the requestnumeric
resultsThe search records returnedObject

The search records returned are comprised of the following information.

indexThe response numberNumeric
idThe internal id of the recordString
uriThe unique resource identifierString
matchesThe node in the XML file where the search word was found. Includes 'path and 'match-text' attributesObject

Houses the 'abstract' attribute for the record,

the 'AuthEnty_affiliation' listing the party(s) responsible for the record,

the 'AuthEnty' listing the Authoritative Entity(s),

the 'prodPlac' listing the production place(s),


'producer' where the data was produced,

the 'date' showing the production year for the data,

and 'TI-facet' attribute which represents the title


News Feed

The ODESI harvesters run nightly looking for updates across multiple data repositories. When new resources are made available, the RSS News Feed is updated. To stay abreast of the latest resources available through ODESI please connect your prefered RSS Feed Reader to for XML and for json

Additional Documentation

One of the systems which ODESI harvests from is Nesstar. To harvest directly from Nesstar please refer to the following documentation

  • No labels