discovery
Get a specific resources aggregation
Fetch a specific resources search aggregation. This provides ability to consume the long tail of values for a given aggregation.
get/v0.1/discovery/resources/aggregation/{id}
Request
- Base URLhttps://platform.nypl.org/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Identifies field being aggregated, e.g. "language"
Query parameters
qstring
Terms to match (and/or structured ES "Query String Query" https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax )
pageinteger
Page number to return
per_pageinteger
Number of results to return
search_scope'all' | 'title' | 'contributor' | 'subject' | 'series' | 'callnumber'
Specify what (group of) fields to match against
Response
An array of resources search aggregations
Changes
No recorded changes to this operation across all 15 revisions of this API.