Get Books
Overview
You can use this call to get books in the database. You can do a search for all books or use parameters and filters to looks for books that match specific criteria.
URI
\http://|api_url|/api/fab/v3/book/?format=json
Parameters
You can use these parameters in your request for books. The examples sections shows how you can combine different parameters to refine your search.
Parameter | Type | Description |
---|---|---|
ISBN |
String | International Standard Book Number You can
use the following filters with this parameter:
|
booktype |
String | Type of book, e.g. Fiction You can
use the following filters with this parameter:
|
lexile_code |
String | Lexile Code, e.g. GN (graphic novel) |
lexile_code_spanish |
String | Lexile Code for Spanish Lexile measure if available |
word_count |
Integer | Number of words contained in the book You can
use the following filters with this parameter:
|
keyword |
String | List of keywords You can
use the following filters with this parameter:
|
serial |
Integer | Serial Number this Resource was last modified on You can use the
following filters with this parameter:
|
id |
Integer | Identifier |
max_age |
Integer | Max age of book You can
use the following filters with this parameter:
|
call_number |
String | Call Number |
copyright |
String | Copyright year |
author |
String | Book Author(s) You can
use the following filters with this parameter:
|
lexile |
Integer | Lexile Measure You can
use the following filters with this parameter:
|
categories_display |
String | List of categories |
timestamp |
Datetime | Date and time the book record was last modified You can use the
following filters with this parameter:
|
min_age |
Integer | Minimum age of book You can
use the following filters with this parameter:
|
pages |
Integer | Number of pages contained in the book You can
use the following filters with this parameter:
|
categories |
Related | List of URIs or individually nested resource data You can
use the following filters with this parameter:
|
publisher |
String | Book publisher You can
use the following filters with this parameter:
|
language |
String | Book's written language You can
use the following filters with this parameter:
|
ISBN13 |
String | 13-digit ISBN You can
use the following filters with this parameter:
|
lexile_spanish |
Integer | Spanish Lexile Measure |
word_count_spanish |
Integer | Number of words in Spanish version of book |
summary |
String | Summary of the book |
title |
String | Book Title You can
use the following filters with this parameter:
|
resource_uri |
String | The resource url for accessing this resource directly |
Response
{"meta":{"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 1}
Parameter | Description |
---|---|
limit |
By default only 20 objects are sent back in each response. You can increase or decrease this limit by supplying a limit filter on your query. |
next |
The url for you to fetch the next set of results in your query. This url will not be a fully qualified url but instead relative to the base url we discussed earlier. If the value is none there is not another set of results and you have reached the last "page". |
offset |
The number of records you are offsetting this result by. For example if you had a limit of 20 and there were 100 total records. If you had an offset of 60 that would mean you are looking at records 61-80. |
previous |
Same as next but refers to the previous set of results. If this is null there are no previous sets available. |
total_count |
The total number of results in the query. For example if you had a query that generated 100 results this number would be 100. |
resource_uri |
There is a |
Examples
The following are some example queries to get you started.
Find a book by its ISBN:
\http://|api_url|/api/fab/v3/book/?format=json&ISBN=0743906608
Find Books with a lexile measure between 600L and 800L:
\http://|api_url|/api/fab/v3/book/?lexile__lte=800&lexile__gte=600&format=json
\http://|api_url|/api/fab/v3/book/?author__contains=John&format=json
Find Spanish language books with number of pages less than or equal to 30:
\https://|api_url|/api/fab/v3/book/?language=Spanish&pages__lte=30&format=json
Retrieve all the books:
\http://|api_url|/api/fab/v3/book/?format=json
Retrieve all the books last updated on or after May 5th, 2013:
\http://|api_url|/api/fab/v3/book/?timestamp__gte=2013-04-05&format=json