Skip to content

Discovery Collection

Jana Rajakumar edited this page Feb 21, 2018 · 5 revisions

Reference: https://iiif.library.utoronto.ca/presentation/v2/#!/Discovery_ActivityStreams/DiscoveryGet2

Reference: https://github.com/IIIF/discovery/blob/crawling/source/api/harvest/0.1/index.md

The Discovery Collection endpoint can be viewed at /discovery.

(Example):

{
  "@context": [
    "http://iiif.io/api/presentation/3/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "http://localhost:8000/discovery",
  "label": "University of Toronto IIIF Discovery Collection",
  "type": "Collection",
  "total": 331,
  "first": {
    "id": "http://localhost:8000/discovery-1",
    "type": "CollectionPage"
  },
  "last": {
    "id": "http://localhost:8000/discovery-17",
    "type": "CollectionPage"
  }
}

The endpoint also supports to search all activities between a specific date-range. /discovery/?from=2017-01-01&to=2017-12-31

{
  "@context": [
    "http://iiif.io/api/presentation/3/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "http://localhost:8000/discovery/?from=2017-01-01&to=2017-12-31",
  "label": "University of Toronto IIIF Discovery Collection",
  "type": "Collection",
  "total": 331,
  "first": {
    "id": "http://localhost:8000/discovery-1/?from=2017-01-01&to=2017-12-31",
    "type": "CollectionPage"
  },
  "last": {
    "id": "http://localhost:8000/discovery-17/?from=2017-01-01&to=2017-12-31",
    "type": "CollectionPage"
  }
}
Clone this wiki locally