Google Books Promooffer API

The Promooffer API from Google Books — 3 operation(s) for promooffer.

GitHub OpenAPI

Operations 3

POST /books/v1/promooffer/dismiss Dismiss promooffer #
POST /books/v1/promooffer/accept Accept promooffer #
GET /books/v1/promooffer/get Get promooffer #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-books:google-books-promooffer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-books-promooffer-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Books API Promooffer API
  version: v1
  description: Generated from Google's published Discovery document for Books API (books v1, revision 20261105). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
externalDocs:
  url: https://code.google.com/apis/books/docs/v1/getting_started.html
servers:
- url: https://books.googleapis.com
paths:
  /books/v1/promooffer/dismiss:
    post:
      operationId: books.promooffer.dismiss
      summary: Dismiss promooffer
      description: Marks the promo offer as dismissed.
      parameters:
      - name: androidId
        in: query
        required: false
        description: device android_id
        schema:
          type: string
      - name: device
        in: query
        required: false
        description: device device
        schema:
          type: string
      - name: manufacturer
        in: query
        required: false
        description: device manufacturer
        schema:
          type: string
      - name: model
        in: query
        required: false
        description: device model
        schema:
          type: string
      - name: offerId
        in: query
        required: false
        description: Offer to dimiss
        schema:
          type: string
      - name: product
        in: query
        required: false
        description: device product
        schema:
          type: string
      - name: serial
        in: query
        required: false
        description: device serial
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content: &id001
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id001
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/books
      - apiKey: []
      tags:
      - Promooffer
  /books/v1/promooffer/accept:
    post:
      operationId: books.promooffer.accept
      summary: Accept promooffer
      description: Accepts the promo offer.
      parameters:
      - name: androidId
        in: query
        required: false
        description: device android_id
        schema:
          type: string
      - name: device
        in: query
        required: false
        description: device device
        schema:
          type: string
      - name: manufacturer
        in: query
        required: false
        description: device manufacturer
        schema:
          type: string
      - name: model
        in: query
        required: false
        description: device model
        schema:
          type: string
      - name: offerId
        in: query
        required: false
        schema:
          type: string
      - name: product
        in: query
        required: false
        description: device product
        schema:
          type: string
      - name: serial
        in: query
        required: false
        description: device serial
        schema:
          type: string
      - name: volumeId
        in: query
        required: false
        description: Volume id to exercise the offer
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content: &id002
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id002
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/books
      - apiKey: []
      tags:
      - Promooffer
  /books/v1/promooffer/get:
    get:
      operationId: books.promooffer.get
      summary: Get promooffer
      description: Returns a list of promo offers available to the user
      parameters:
      - name: androidId
        in: query
        required: false
        description: device android_id
        schema:
          type: string
      - name: device
        in: query
        required: false
        description: device device
        schema:
          type: string
      - name: manufacturer
        in: query
        required: false
        description: device manufacturer
        schema:
          type: string
      - name: model
        in: query
        required: false
        description: device model
        schema:
          type: string
      - name: product
        in: query
        required: false
        description: device product
        schema:
          type: string
      - name: serial
        in: query
        required: false
        description: device serial
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Offers'
        4XX:
          content: &id003
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id003
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/books
      - apiKey: []
      tags:
      - Promooffer
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/books: Manage your books
  schemas:
    Empty:
      description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
        A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc
        Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
      type: object
      properties: {}
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    Offers:
      properties:
        items:
          items:
            type: object
            properties:
              id:
                type: string
              items:
                items:
                  type: object
                  properties:
                    canonicalVolumeLink:
                      type: string
                    title:
                      type: string
                    description:
                      type: string
                    author:
                      type: string
                    coverUrl:
                      type: string
                    volumeId:
                      type: string
                type: array
              gservicesKey:
                type: string
              artUrl:
                type: string
          type: array
          description: A list of offers.
        kind:
          type: string
          description: Resource type.
      type: object
x-provenance:
  method: harvested
  publisher: Google
  source: https://books.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261105)