BetaSearch fields, inferred by the search params. If not supplied, a default set of fields will be returned
BetaCreate a new advanced search
Search fields, inferred by the search params. If not supplied, a default set of fields will be returned
Session to use for API requests
Search query
Optionalfields?: FieldsFields to include in the results. If not supplied, a standard set of fields will be returned.
Regardless of which fields are supplied, the "identifier" field will always be included.
Optionallimit?: numberMaximum number of retries for each API call (default: 5)
OptionalmaxRetries?: numberOptionalrows?: numberOptionalscope?: IaScopeThe scope of the query.
Possible values are 'standard' or 'all'.
The 'all' scope requires authorization
Optionalsorts?: Up to 3 sort options
Protected Readonly BetabasicProtected Optional Readonly BetafieldsProtected Optional Readonly BetalimitProtected Readonly BetamaxProtected BetanumProtected Readonly BetaparamsProtected BetaqueryProtected Readonly BetasessionProtected Readonly BetasortsProtected Readonly BetaurlProtectedfetchBetaFetches the number of results for the query of this instance.
Number of results for this search
BetaReturn aggregations for the specified fields For each supplied field, up to 25 buckets will be returned.
This only works on specific fields. These are defined in IA_AGGREGATABLE_FIELDS
Array of fields to aggregate
fields to return aggregations for
OptionalaggsSize: numbernumber of aggregations to return (Default 25)
Record where the keys are the requested fields and the values are object containing the corresponding aggregations
BetaA wrapper for IaAdvancedSearch.getResultsGenerator which fetches the corresponding IaItem for each result and yields it
Generator which yields Items
BetaGet the number if items found by this query.
Note that this number can change over time. The number also gets updated with every call to the search API.
Number of items found
BetaGet a single page of results.
This method also updates the numFound value.
Optionalpage: numberPage number
Search Result object
BetaCreate a generator that yields search results.
The maximum amount of results returned can be defined by limit.
If limit is not set, all results will be returned, which may
require a lot of slow requests to be made to fetch all results.
AsyncGenerator which yields one search result at a time.
BetaBeta
This class represents an archive.org item search using the advancedSearch API endpoint.
Example