Complex Queries and Boolean Operations

Query String Parameters

This section introduces key fields such as q for the query, s for the starting result, and p for the number of results per page. The following query string parameters can be passed to the API to customize how the results are displayed:

ParameterDescriptionRequiredDefault Value
qThe query to be performed by the API. Supports various filters.yes
sReturn results starting at the number specified.no1
pNumber of results to return in the request. (See section Pagination and Limits for more details.)no10
api_keyThe key identifying your application.yes

If the p parameter is not included, 10 results will be returned by default. If the s parameter is omitted, the results will start from the first entry. The q parameter offers flexible options, allowing you to build complex queries.

Boolean Constraints

Using AND, OR, NOT, NEAR in queries

ConstraintExample Query
ANDhttps://api.springernature.com/meta/v2/pam?q=(%22saturn%22%20AND%20%22jupiter%22)%20type:Book&api_key=..
ORhttps://api.springernature.com/meta/v2/pam?q=(%22saturn%22%20OR%20%22jupiter%22)%20type:Book&api_key=..
NOThttps://api.springernature.com/meta/v2/pam?q=(%22saturn%22%20NOT%20%22jupiter%22)%20type:Book&api_key=..
NEARhttps://api.springernature.com/meta/v2/pam?q=(%22saturn%22%20NEAR/10%20%22jupiter%22)%20type:Book&api_key=..

On this page