Searching for content in the API
Last updated on November 13, 2024
GuideWhat can I search for?
Currently, you can search for authors, books, characters, lists, prompts, publishers, series, and users. Additional search options will be added in the future.
Search options
query
- The search termquery_type
- The type of content to search for one of (case-insensitive; defaultbook
)author
book
character
list
prompt
publisher
series
user
per_page
- The number of results to return per page (default 25)page
- The page number to return (default 1)
Available fields
id
results
Example searches
Authors
When searching authors, we use the following fields:
alternate_names
- Alternative names for the authorbooks
- A list of books written by the authorname
- The name of the authorname_personal
- The personal name of the authorseries_names
- The names of the different series the author has written
query BooksByRowling { search( query: "rowling", query_type: "Author", per_page: 5, page: 1 ) { results } }
Books
When searching books, we use the following fields:
alternative_titles
- Alternative titles for the bookauthor_names
- The name of the authors or contributors of the bookisbns
- The ISBNs of the bookseries_names
- The name of the series the book belongs totitle
- The title of the book
query LordOfTheRingsBooks { search( query: "lord of the rings", query_type: "Book", per_page: 5, page: 1 ) { results } }
Characters
When searching characters, we use the following fields:
author_names
- The name of the author who wrote the books the character appears inbooks
- A list of books the character appears inname
- The name of the character
query CharactersNamedPeter { search( query: "peter", query_type: "Character", per_page: 5, page: 1 ) { results } }
Lists
When searching lists, we use the following fields:
description
- The description of the listbooks
- A list of books in the listname
- The name of the list
query ListsNamedBest { search( query: "best", query_type: "List", per_page: 5, page: 1 ) { results } }
Prompts
When searching prompts, we use the following fields:
books
- A list of books for the matching promptquestion
- The prompt question
query PromptsAboutLearning { search( query: "learn from", query_type: "Prompt", per_page: 5, page: 1 ) { results } }
Publishers
When searching publishers, we use the following fields:
name
- The name of the publisher
query PublishersNamedPenguin { search( query: "penguin", query_type: "Publisher", per_page: 5, page: 1 ) { results } }
Series
When searching series, we use the following fields:
author_name
- The name of the author who wrote the seriesbooks
- A list of books in the seriesname
- The name of the series
query SeriesNamedHarryPotter { search( query: "harry potter", query_type: "Series", per_page: 7, page: 1 ) { results } }
Users
When searching users, we use the following fields:
location
- The location of the username
- The name of the userusername
- The username of the user
query UsersNamedAdam { search( query: "adam", query_type: "User", per_page: 5, page: 1 ) { results } }