all-about-apikey/google-books/README.md

1.1 KiB

Google Books

Description

Google Books

Example Request

  • Curl
curl "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC?key={{token}}"
  • Raw
GET /books/v1/volumes/zyTCAlFPjgYC?key={{token}} HTTP/1.1
Host: www.googleapis.com

Response

  • Success
{
    "error": {
        "code": 400,
        "message": "API key not valid. Please pass a valid API key.",
        "errors": [
            {
            "message": "API key not valid. Please pass a valid API key.",
            "domain": "global",
            "reason": "badRequest"
            }
        ],
        "status": "INVALID_ARGUMENT"
    }
}
  • Error
{
    "kind": "books#volume",
    "id": "zyTCAlFPjgYC",
    "etag": "f0zKg75Mx/I",
    "selfLink": "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC",
    "volumeInfo": {
        "title": "The Google story",
        "authors": [
            "David A. Vise",
            "Mark Malseed"
        ],
    ...

Regex

AIza[0-9A-Za-z-_]{35}

Example API key

AIzaSyAtUXpd8JxrpUH2Sd-xO2U_vWGVfoF5-XM