1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="books_v1.html">Books API</a> . <a href="books_v1.onboarding.html">onboarding</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#listCategories">listCategories(locale=None)</a></code></p> 79<p class="firstline">List categories for onboarding experience.</p> 80<p class="toc_element"> 81 <code><a href="#listCategoryVolumes">listCategoryVolumes(pageSize=None, pageToken=None, locale=None, maxAllowedMaturityRating=None, categoryId=None)</a></code></p> 82<p class="firstline">List available volumes under categories for onboarding experience.</p> 83<p class="toc_element"> 84 <code><a href="#listCategoryVolumes_next">listCategoryVolumes_next(previous_request, previous_response)</a></code></p> 85<p class="firstline">Retrieves the next page of results.</p> 86<h3>Method Details</h3> 87<div class="method"> 88 <code class="details" id="listCategories">listCategories(locale=None)</code> 89 <pre>List categories for onboarding experience. 90 91Args: 92 locale: string, ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset. 93 94Returns: 95 An object of the form: 96 97 { 98 "items": [ # A list of onboarding categories. 99 { 100 "badgeUrl": "A String", 101 "categoryId": "A String", 102 "name": "A String", 103 }, 104 ], 105 "kind": "onboarding#category", # Resource type. 106 }</pre> 107</div> 108 109<div class="method"> 110 <code class="details" id="listCategoryVolumes">listCategoryVolumes(pageSize=None, pageToken=None, locale=None, maxAllowedMaturityRating=None, categoryId=None)</code> 111 <pre>List available volumes under categories for onboarding experience. 112 113Args: 114 pageSize: integer, Number of maximum results per page to be included in the response. 115 pageToken: string, The value of the nextToken from the previous page. 116 locale: string, ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset. 117 maxAllowedMaturityRating: string, The maximum allowed maturity rating of returned volumes. Books with a higher maturity rating are filtered out. 118 Allowed values 119 mature - Show books which are rated mature or lower. 120 not-mature - Show books which are rated not mature. 121 categoryId: string, List of category ids requested. (repeated) 122 123Returns: 124 An object of the form: 125 126 { 127 "nextPageToken": "A String", 128 "items": [ # A list of volumes. 129 { 130 "kind": "books#volume", # Resource type for a volume. (In LITE projection.) 131 "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.). 132 "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes. 133 "publicDomain": True or False, # Whether or not this book is public domain in the country listed above. 134 "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API. 135 "downloadAccess": { # Information about a volume's download license access restrictions. 136 "nonce": "A String", # Client nonce for verification. Download access and client-validation only. 137 "kind": "books#downloadAccessRestriction", # Resource type. 138 "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request. 139 "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume. 140 "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). 141 "signature": "A String", # Response signature. 142 "volumeId": "A String", # Identifies the volume for which this entry applies. 143 "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume). 144 "source": "A String", # Client app identifier for verification. Download access and client-validation only. 145 "restricted": True or False, # Whether this volume has any download access restrictions. 146 "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS 147 "message": "A String", # Error/warning message. 148 }, 149 "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.) 150 "quoteSharingAllowed": True or False, # Whether quote sharing is allowed for this volume. 151 "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page. 152 "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. 153 "driveImportedContentLink": "A String", # URL to the Google Drive viewer if this volume is uploaded by the user by selecting the file from Google Drive. 154 "pdf": { # Information about pdf content. (In LITE projection.) 155 "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.) 156 "downloadLink": "A String", # URL to download pdf. (In LITE projection.) 157 "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.) 158 }, 159 "explicitOfflineLicenseManagement": True or False, # Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports it. 160 "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES. 161 "epub": { # Information about epub content. (In LITE projection.) 162 "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.) 163 "downloadLink": "A String", # URL to download epub. (In LITE projection.) 164 "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.) 165 }, 166 "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.) 167 }, 168 "searchInfo": { # Search result information related to this volume. 169 "textSnippet": "A String", # A text snippet containing the search query. 170 }, 171 "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries). 172 "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.) 173 "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.) 174 "amount": 3.14, # Amount in the currency listed below. (In LITE projection.) 175 "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.) 176 }, 177 "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf). 178 "offers": [ # Offers available for this volume (sales and rentals). 179 { 180 "rentalDuration": { # The rental duration (for rental offers only). 181 "count": 3.14, 182 "unit": "A String", 183 }, 184 "retailPrice": { # Offer retail (=discounted) price in Micros 185 "currencyCode": "A String", 186 "amountInMicros": 3.14, 187 }, 188 "listPrice": { # Offer list (=undiscounted) price in Micros. 189 "currencyCode": "A String", 190 "amountInMicros": 3.14, 191 }, 192 "giftable": True or False, # Indicates whether the offer is giftable. 193 "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3) 194 }, 195 ], 196 "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER. 197 "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection) 198 "onSaleDate": "A String", # The date on which this book is available for sale. 199 "listPrice": { # Suggested retail price. (In LITE projection.) 200 "amount": 3.14, # Amount in the currency listed below. (In LITE projection.) 201 "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.) 202 }, 203 }, 204 "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection) 205 "selfLink": "A String", # URL to this resource. (In LITE projection.) 206 "volumeInfo": { # General volume information. 207 "subtitle": "A String", # Volume subtitle. (In LITE projection.) 208 "pageCount": 42, # Total number of pages as per publisher metadata. 209 "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight. 210 "seriesInfo": { 211 "bookDisplayNumber": "A String", # The display number string. This should be used only for display purposes and the actual sequence should be inferred from the below orderNumber. 212 "kind": "books#volume_series_info", # Resource type. 213 "shortSeriesBookTitle": "A String", # Short book title in the context of the series. 214 "volumeSeries": [ 215 { 216 "orderNumber": 42, # The book order number in the series. 217 "seriesId": "A String", # The series id. 218 "issue": [ # List of issues. Applicable only for Collection Edition and Omnibus. 219 { 220 "issueOrderNumber": 42, 221 "issueDisplayNumber": "A String", 222 }, 223 ], 224 "seriesBookType": "A String", # The book type in the context of series. Examples - Single Issue, Collection Edition, etc. 225 }, 226 ], 227 }, 228 "dimensions": { # Physical dimensions of this volume. 229 "width": "A String", # Width of this volume (in cm). 230 "thickness": "A String", # Thickness of this volume (in cm). 231 "height": "A String", # Height or length of this volume (in cm). 232 }, 233 "previewLink": "A String", # URL to preview this volume on the Google Books site. 234 "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection) 235 "industryIdentifiers": [ # Industry standard identifiers for this volume. 236 { 237 "identifier": "A String", # Industry specific volume identifier. 238 "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. 239 }, 240 ], 241 "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.) 242 "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.) 243 "publishedDate": "A String", # Date of publication. (In LITE projection.) 244 "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.) 245 "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection) 246 "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection) 247 "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection) 248 "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection) 249 "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection) 250 "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection) 251 }, 252 "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection) 253 "A String", 254 ], 255 "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc. 256 "A String", 257 ], 258 "panelizationSummary": { # A top-level summary of the panelization info in this volume. 259 "containsEpubBubbles": True or False, 260 "epubBubbleVersion": "A String", 261 "imageBubbleVersion": "A String", 262 "containsImageBubbles": True or False, 263 }, 264 "publisher": "A String", # Publisher of this volume. (In LITE projection.) 265 "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc. 266 "maturityRating": "A String", 267 "allowAnonLogging": True or False, # Whether anonymous logging should be allowed. 268 "title": "A String", # Volume title. (In LITE projection.) 269 "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE. 270 "samplePageCount": 42, # Total number of sample pages as per publisher metadata. 271 "readingModes": "", # The reading modes available for this volume. 272 "printedPageCount": 42, # Total number of printed pages in generated pdf representation. 273 "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0) 274 "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection) 275 "ratingsCount": 42, # The number of review ratings for this volume. 276 }, 277 "recommendedInfo": { # Recommendation related information for this volume. 278 "explanation": "A String", # A text explaining why this volume is recommended. 279 }, 280 "id": "A String", # Unique identifier for a volume. (In LITE projection.) 281 "layerInfo": { # What layers exist in this volume and high level information about them. 282 "layers": [ # A layer should appear here if and only if the layer exists for this book. 283 { 284 "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. 285 "layerId": "A String", # The layer id of this layer (e.g. "geo"). 286 }, 287 ], 288 }, 289 "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book) 290 "isFamilySharedFromUser": True or False, # Whether or not the user shared this volume with the family. 291 "isInMyBooks": True or False, # Whether or not this volume is currently in "my books." 292 "acquisitionType": 42, # How this volume was acquired. 293 "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format). 294 "userUploadedVolumeInfo": { 295 "processingState": "A String", 296 }, 297 "rentalPeriod": { # Period during this book is/was a valid rental. 298 "startUtcSec": "A String", 299 "endUtcSec": "A String", 300 }, 301 "familySharing": { # Information on the ability to share with the family. 302 "isSharingDisabledByFop": True or False, # Whether or not sharing this volume is temporarily disabled due to issues with the Family Wallet. 303 "familyRole": "A String", # The role of the user in the family. 304 "isSharingAllowed": True or False, # Whether or not this volume can be shared with the family by the user. This includes sharing eligibility of both the volume and the user. If the value is true, the user can initiate a family sharing action. 305 }, 306 "rentalState": "A String", # Whether this book is an active or an expired rental. 307 "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.) 308 "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.) 309 "kind": "books#readingPosition", # Resource type for a reading position. 310 "gbImagePosition": "A String", # Position in a volume for image-based content. 311 "epubCfiPosition": "A String", # Position in an EPUB as a CFI. 312 "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). 313 "volumeId": "A String", # Volume id associated with this reading position. 314 "pdfPosition": "A String", # Position in a PDF file. 315 "gbTextPosition": "A String", # Position in a volume for text-based content. 316 }, 317 "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.) 318 "isFamilySharingAllowed": True or False, # Deprecated: Replaced by familySharing. 319 "review": { # This user's review of this volume, if one exists. 320 "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED. 321 "kind": "books#review", # Resource type for a review. 322 "author": { # Author of this review. 323 "displayName": "A String", # Name of this person. 324 }, 325 "title": "A String", # Title for this review. 326 "volumeId": "A String", # Volume that this review is for. 327 "content": "A String", # Review text. 328 "source": { # Information regarding the source of this review, when the review is not from a Google Books user. 329 "extraDescription": "A String", # Extra text about the source of the review. 330 "url": "A String", # URL of the source of the review. 331 "description": "A String", # Name of the source. 332 }, 333 "date": "A String", # Date of this review. 334 "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER. 335 "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web. 336 }, 337 "isFamilySharedToUser": True or False, # Whether or not the user received this volume through family sharing. 338 "entitlementType": 42, # Whether this volume is purchased, sample, pd download etc. 339 "copy": { # Copy/Paste accounting information. 340 "limitType": "A String", 341 "remainingCharacterCount": 42, 342 "updated": "A String", 343 "allowedCharacterCount": 42, 344 }, 345 "isFamilySharingDisabledByFop": True or False, # Deprecated: Replaced by familySharing. 346 "isUploaded": True or False, # Whether or not this volume was user uploaded. 347 "acquiredTime": "A String", # Timestamp when this volume was acquired by the user. (RFC 3339 UTC date-time format) Acquiring includes purchase, user upload, receiving family sharing, etc. 348 }, 349 }, 350 ], 351 "kind": "onboarding#volume", # Resource type. 352 }</pre> 353</div> 354 355<div class="method"> 356 <code class="details" id="listCategoryVolumes_next">listCategoryVolumes_next(previous_request, previous_response)</code> 357 <pre>Retrieves the next page of results. 358 359Args: 360 previous_request: The request for the previous page. (required) 361 previous_response: The response from the request for the previous page. (required) 362 363Returns: 364 A request object that you can call 'execute()' on to request the next 365 page. Returns None if there are no more items in the collection. 366 </pre> 367</div> 368 369</body></html>