all-about-apikey/google-books
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

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