Resource Search Aggregations
Fetch resources search aggregations for a given query. Note that aggregations are not "self-filtered" in order to aid expanding one's filtered search. For example, the subjectLiteral aggregation is built without any subjectLiteral filters.
Request
- Base URLhttps://platform.nypl.org/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
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 )
Specify what (group of) fields to match against
Specify a hash of filters to apply, where key is: 'buildingLocation', 'owner', 'subjectLiteral', 'holdingLocation', 'deliveryLocation', 'language', 'materialType', 'mediaType', 'carrierType', 'publisher', 'contributor', 'creator', 'contributorNameTitle', 'issuance', 'createdYear', 'dateAfter', or 'dateBefore'
Response
An array of resources search aggregations
Changes
No recorded changes to this operation across all 15 revisions of this API.