{
  "components": {
    "schemas": {
      "Error": {
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      },
      "apiKeyQuery": {
        "description": "The Custom Search drop-in's way: ?key=\u003ckey\u003e.",
        "in": "query",
        "name": "key",
        "type": "apiKey"
      },
      "bearer": {
        "description": "Your Serpbit key: Authorization: Bearer \u003ckey\u003e.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "url": "https://serpbit.com/docs/"
  },
  "info": {
    "contact": {
      "email": "support@serpbit.com",
      "url": "https://serpbit.com/"
    },
    "description": "Google Search, AI Mode, AI Overview, Shopping, Maps, News, Images, Videos and Autocomplete as JSON or Markdown, on one API key. Failed calls are free.",
    "termsOfService": "https://serpbit.com/terms/",
    "title": "Serpbit API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/customsearch/v1": {
      "get": {
        "description": "Google's Custom Search JSON API stops searching the whole web on January 1, 2027. Serpbit takes the same request and answers the same JSON: change the host to https://api.serpbit.com and key to your Serpbit key. Cost: 1 credit a Google page read, 2 for pictures.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#cse"
        },
        "operationId": "cse",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "Your Serpbit key; a header works too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results, 1 to 10.",
            "schema": {
              "default": 10,
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The first result, up to 100 in all. A window across two of Google's pages (start=5) reads two.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "As Custom Search has them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "As Custom Search has them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "As Custom Search has them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "As Custom Search has them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "As Custom Search has them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateRestrict",
            "in": "query",
            "description": "d7, w2, m1, y1.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exactTerms",
            "in": "query",
            "description": "Written into the query as Google's operators.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeTerms",
            "in": "query",
            "description": "Written into the query as Google's operators.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orTerms",
            "in": "query",
            "description": "Written into the query as Google's operators.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hq",
            "in": "query",
            "description": "Written into the query as Google's operators.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "siteSearch",
            "in": "query",
            "description": "One site (or not, siteSearchFilter=e); one file type: pdf.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileType",
            "in": "query",
            "description": "One site (or not, siteSearchFilter=e); one file type: pdf.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchType",
            "in": "query",
            "description": "image for pictures, with imgSize, imgType, imgColorType, imgDominantColor.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cx",
            "in": "query",
            "description": "Accepted and not needed: the results are the whole web's. The site-restricted list, /customsearch/v1/siterestrict, answers 404: ask with siteSearch for one site.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lowRange",
            "in": "query",
            "description": "A range written into the query as low..high, as Custom Search does: 100, $50.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "highRange",
            "in": "query",
            "description": "A range written into the query as low..high, as Custom Search does: 100, $50.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "googlehost",
            "in": "query",
            "description": "Deprecated by Custom Search, or its default: accepted and not used.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "relatedSite",
            "in": "query",
            "description": "Deprecated by Custom Search, or its default: accepted and not used.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "c2coff",
            "in": "query",
            "description": "Deprecated by Custom Search, or its default: accepted and not used.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "In Custom Search's shape; out of credits is 429 quotaExceeded."
                    },
                    "items": {
                      "description": "As Custom Search: title, link, displayLink, snippet and their html… forms, mime and fileFormat for a PDF or an Office document; no pagemap.",
                      "items": {},
                      "type": "array"
                    },
                    "queries": {
                      "description": "request and nextPage."
                    },
                    "searchInformation": {
                      "properties": {
                        "totalResults": {
                          "description": "The last result known, plus 10 when there is more: not Google's estimate."
                        }
                      },
                      "type": "object"
                    },
                    "spelling": {
                      "description": "When Google showed results for a corrected query: correctedQuery, and htmlCorrectedQuery with the changed words in bold italics."
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's Custom Search JSON API stops searching the whole web on January 1, 2027."
      }
    },
    "/v1/ai-mode": {
      "get": {
        "description": "Google's AI Mode answer. Usually 5 to 20 seconds, up to a minute: set a 120-second timeout. A call that gets no answer is free. Cost: 2 credits an answer.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#ai-mode"
        },
        "operationId": "ai_mode",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The question.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code.",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Language.",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, as in the common parameters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "local_results": {
                      "description": "Places the answer names: rating, address, phone, Google Maps ids, and kgmid, the place's Knowledge Graph id.",
                      "items": {},
                      "type": "array"
                    },
                    "markdown": {
                      "description": "The whole answer as Markdown. output=md returns it on its own, its sources listed at the end."
                    },
                    "references": {
                      "description": "The sources: title, link, domain, snippet, source. link is the page, or Google's /goto to it when Google would not resolve it (it lets a page resolve only its first few); domain, the site's host, is there either way. An answer about things to buy cites products: such a source's link is the product's Google Shopping page and its product_id is what /v1/shopping/product takes for the product's stores. An answer about places can cite Google's own page of a place: such a source's link is that page and its kgmid is the place's Knowledge Graph id, as in local_results; its source is Google when Google names one. A product or a place has no domain: its link is a Google page. A citation Google names nothing for has no source; Google's own page does not show it either.",
                      "items": {},
                      "type": "array"
                    },
                    "search_sources": {
                      "description": "The sources Google lists beside the answer, in its order, each as in references and with its index there.",
                      "items": {},
                      "type": "array"
                    },
                    "text_blocks": {
                      "description": "The answer in Google's order: paragraph, heading, list, code, table.",
                      "items": {
                        "properties": {
                          "reference_indexes": {
                            "description": "A block's citations, as indexes into references."
                          },
                          "snippet_links": {
                            "description": "The links in a block's text: text and link. A citation's chip is one of them, marked citation: true: the source's name, and the page of its first source. Like a source's link, a link Google would not resolve stays its /goto.",
                            "items": {},
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's AI Mode answer."
      }
    },
    "/v1/autocomplete": {
      "get": {
        "description": "Google's search-box suggestions for text as typed. Cost: 1 credit a call.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#autocomplete"
        },
        "operationId": "autocomplete",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The text as typed, spaces kept: how to asks what follows.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client",
            "in": "query",
            "description": "chrome: 15 suggestions with relevance. gws-wiz: the box's 10, with things Google knows.",
            "schema": {
              "default": "chrome",
              "type": "string"
            }
          },
          {
            "name": "cp",
            "in": "query",
            "description": "Where the cursor is in q.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code.",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Language.",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "suggestions": {
                      "description": "position, value, type (QUERY or ENTITY).",
                      "items": {
                        "properties": {
                          "relevance": {
                            "description": "Google's score, with client=chrome."
                          },
                          "title": {
                            "description": "For a thing Google knows, with description and thumbnail (gws-wiz)."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's search-box suggestions for text as typed."
      }
    },
    "/v1/batches": {
      "post": {
        "description": "Up to 1,000 calls in one request, run in the background at the key's own limits. Each call is the API's own, billed as it would be alone. Cost: each call's credits.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#batches"
        },
        "operationId": "batches",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "requests": {
                    "description": "The calls: path (/v1/search, /v1/news, /v1/shopping, /v1/shopping/product, /v1/images, /v1/videos, /v1/maps, /v1/autocomplete, /v1/ai-mode), params as that endpoint takes them (no html), and an id of yours.",
                    "items": {},
                    "type": "array"
                  },
                  "webhook": {
                    "description": "An https address that gets each answer as it comes, then the batch's end."
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Up to 1,000 calls in one request, run in the background at the key's own limits."
      }
    },
    "/v1/images": {
      "get": {
        "description": "Google's Images tab: about 100 pictures a page, 50 on a phone. Cost: 2 credits a page.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#images"
        },
        "operationId": "images",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "description": "large, medium, icon.",
            "schema": {
              "default": "any",
              "type": "string"
            }
          },
          {
            "name": "color",
            "in": "query",
            "description": "color, gray, transparent, or a color: red, blue, green…",
            "schema": {
              "default": "any",
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "photo, clipart, lineart, animated, face.",
            "schema": {
              "default": "any",
              "type": "string"
            }
          },
          {
            "name": "license",
            "in": "query",
            "description": "creative_commons, commercial.",
            "schema": {
              "default": "any",
              "type": "string"
            }
          },
          {
            "name": "aspect",
            "in": "query",
            "description": "tall, square, wide, panoramic.",
            "schema": {
              "default": "any",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "images": {
                      "description": "The pictures: title, url (the page it is on), source.",
                      "items": {
                        "properties": {
                          "original": {
                            "description": "The picture itself, with original_width and original_height."
                          },
                          "product": {
                            "description": "For a picture sold as a product: its store, price and product_id."
                          },
                          "thumbnail": {
                            "description": "Google's copy."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's Images tab: about 100 pictures a page, 50 on a phone."
      }
    },
    "/v1/maps": {
      "get": {
        "description": "Places as Google Maps lists them: 20 a page on the desktop, 10 on a phone. Cost: 1 credit a page.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#maps"
        },
        "operationId": "maps",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "places": {
                      "description": "The places: title, type, rating, reviews, price. type_id is Google's id of the place's main category, the same in every language (coffee_shop). It can differ from type: a place shown as \"Small business\" can be an auto_repair_shop.",
                      "items": {
                        "properties": {
                          "address": {
                            "description": "With hours, phone, website. Google sends the address as one line, with no separate street, city or postal code."
                          },
                          "business_status": {
                            "description": "OPERATIONAL, CLOSED_TEMPORARILY or CLOSED_PERMANENTLY, on the desktop. Some desktop pages show places as tiles instead of a list (4 of the 54 we checked, in three languages; the same search can get either), and tiles have no business_status, address, phone or website."
                          },
                          "gps_coordinates": {
                            "description": "latitude and longitude."
                          },
                          "open_state": {
                            "description": "Google's line on whether it is open, as Google writes it: hours, or Permanently closed, Temporarily closed."
                          },
                          "place_id": {
                            "description": "Google's ids: also data_id, data_cid, provider_id (the knowledge graph's), and link to Google Maps."
                          },
                          "thumbnail": {
                            "description": "The place's first photo, 92 by 92 pixels; a Street View picture keeps its own size. Also user_review, the line of a review Google quotes, and description, Google's line about the place where it shows one."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "search_information": {
                      "description": "total_results: the number in Google's line \"About 220 results\", on the desktop's first page. Google's estimate, not the number of places you can page through."
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Places as Google Maps lists them: 20 a page on the desktop, 10 on a phone."
      }
    },
    "/v1/news": {
      "get": {
        "description": "Google's News tab, and with content the articles' text. Cost: 1 credit a page, +1 an article read.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#news"
        },
        "operationId": "news",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "date puts the newest first.",
            "schema": {
              "default": "relevance",
              "type": "string"
            }
          },
          {
            "name": "content",
            "in": "query",
            "description": "As on /v1/search: the first N articles' text in news[].content, 1 credit an article read.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "content_chars",
            "in": "query",
            "description": "As on /v1/search: the first N articles' text in news[].content, 1 credit an article read.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "news": {
                      "description": "The articles: title, url, domain (\"\" while the link is still Google's redirect), source, snippet (mostly empty on phones: Google's phone page has none), thumbnail.",
                      "items": {
                        "properties": {
                          "content": {
                            "description": "With content, as on /v1/search. Its byline is the name the article's page gives as its author: a person in 39 of the 45 news articles we read on 3 December 2026, otherwise the publisher or \"Staff\". Google's News tab names no author."
                          },
                          "date": {
                            "description": "As Google writes it: 4 hours ago."
                          },
                          "published_at": {
                            "description": "When it came out, in UTC."
                          },
                          "story_id": {
                            "description": "The same on every article of one story."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's News tab, and with content the articles' text."
      }
    },
    "/v1/search": {
      "get": {
        "description": "Google's results page, and with content the text of the pages it links to. Cost: 1 credit a page, +1 a page read.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#search"
        },
        "operationId": "search",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "ai_overview",
            "in": "query",
            "description": "Left out: the AI Overview the page has, at once. 1: also one Google loads after the page, which takes a few seconds more. 0: none.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "content",
            "in": "query",
            "description": "Also read the first N results' pages, 1 to 10 (true: 10), and give each one's main text as Markdown in organic[].content. A page read is 1 credit; one that could not be read is free.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "content_chars",
            "in": "query",
            "description": "The most characters of each text, 500 to 100000; a longer one is cut at a paragraph and marked truncated.",
            "schema": {
              "default": 20000,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ads": {
                      "description": "The text ads on each page asked, above the results and below them: position (its place in its block), block_position (top or bottom), page, title, url (the landing page when the page names it, else the advertiser's site; \"\" for an ad that opens a form on Google), tracking_link (Google's click address: opening it counts as a click on the ad), domain (the advertiser's, from url), displayed_url, source (the advertiser's name), snippet, favicon, sitelinks (title, url, tracking_link, snippet), extensions (the ad's other lines, such as a deal or an address) and its seller rating and reviews. On a phone, a later page that follows its Web tab, as later pages mostly do, has its ads only with html=1: the tab is asked as the desktop app, which gets the desktop's ads, and the phone's own page is asked beside it only for its HTML. Absent when the pages have none; at present Google shows few ads on the pages it sends us.",
                      "items": {},
                      "type": "array"
                    },
                    "ai_overview": {
                      "description": "Its text and sources: each source's title and url, the page itself, with Google's link to it kept as redirect_link."
                    },
                    "discussions_and_forums": {
                      "description": "Threads: title, url, source (the forum), date, replies (as Google counts them), and the answers it shows: snippet, url, extensions (\"Top answer\", votes, age)."
                    },
                    "immersive_products": {
                      "description": "Popular products and the page's other product rows, each as /v1/shopping gives one: title, product_id, product_link, price, source, rating, reviews. The AI Overview's products are not in it."
                    },
                    "inline_images": {
                      "description": "The page's Images, each as /v1/images gives one: title, url (the page it is on), source, original, its size, thumbnail, image_id."
                    },
                    "inline_videos": {
                      "description": "The page's Videos, each as /v1/videos gives one: title, url, platform, channel, date, duration, thumbnail, video_id."
                    },
                    "knowledge_graph": {
                      "description": "The knowledge panel: title, type, description, facts, profiles (its pages on other sites: name, link), and each list it shows as a field of its own: songs, albums, movies, tv_shows, books, cast and the like, each entry a name, Google's search for it as link, image when the page carries one, and extensions (\"Lover\", \"2019\"; a role)."
                    },
                    "local_results": {
                      "description": "The local pack: places, each as /v1/maps gives a place (place_id, data_cid, link, rating, reviews, type, address, hours, open_state, phone, website, gps_coordinates, thumbnail, user_review; a phone's page has no address, phone or website in it), and more_locations_link, Google's list of more."
                    },
                    "organic": {
                      "description": "The results: position (counted across pages), page, title, url (past Google's redirect; in the rare case it could not be followed, the redirect itself), domain (from the link, else from the address shown under the result; \"\" when neither names the site), displayed_url, snippet.",
                      "items": {
                        "properties": {
                          "content": {
                            "description": "With content: text (Markdown), title, byline, site_name, published_at, chars, truncated, url when a redirect moved it; or error: timeout, blocked, not_found, not_html, unreadable, unresolved, failed."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pages": {
                      "items": {
                        "properties": {
                          "check": {
                            "description": "How the page stands against poisoned results, against Google's Web tab, the clean results a signed-out searcher gets: clean, the page matched its Web tab, or (a page after the first) came from it; replaced, the page did not match its Web tab or had too few results, so its results are the tab's (with html=1 its HTML carries them too, when its blocks could be read); unchecked, the check could not run, and the page is as Google sent it. Not on a tab's pages."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "people_also_search_for": {
                      "description": "The entities Google suggests beside the panel: name, link (its search), image, extensions."
                    },
                    "perspectives": {
                      "description": "Posts of What people are saying and Latest posts from …: title (the post's text), url, author, author_title, source (the site), date, published_at, stats, duration for a video, thumbnail, section (the block's heading)."
                    },
                    "recipes_results": {
                      "description": "Recipes: title, url, source, rating, reviews, total_time, ingredients (the main ones, when the card lists them), thumbnail."
                    },
                    "related_questions": {
                      "description": "People also ask: the questions."
                    },
                    "related_search_links": {
                      "description": "The same searches, in the same order, each with its link: query, and link, Google's search for it as the page links it (with the gl and hl asked).",
                      "items": {},
                      "type": "array"
                    },
                    "related_searches": {
                      "description": "Google's suggested searches, from the block at the foot of the page and from the blocks among the results that a phone's page often has. The cards of people and things some of these blocks show are not searches and are not in it. On a phone with html=1 they are those of the page in pages[0].html, the phone browser's page, which often lists other searches than the page a phone's answer is read from without html."
                    },
                    "search_information": {
                      "description": "What the call's first page says of the search, each part absent when the page has none. total_results: the number in Google's line \"About 1,230 results\", or on a later page \"Page 2 of about 1,230 results\". It is Google's estimate, not the number of results you can page through: most first pages we get say about 50 to 200. time_taken_displayed: the seconds Google gives beside it. Google writes this line on desktop pages only; a phone's later page has it only when its pages[].html is the desktop page, which we return when we could not get the phone's own. spelling_fix: the query Google suggests for yours, from \"Did you mean:\" (the results are still your query's), or the one it searched instead (then showing_results_for says the same). search_instead_for: your query as Google links it back beside its correction (\"Search instead for\"); nfpr=1 asks for its results, and a page asked so has no correction and no search_instead_for."
                    },
                    "short_videos": {
                      "description": "Short videos (YouTube Shorts, reels), the same fields."
                    },
                    "showing_results_for": {
                      "description": "Google's correction of the query."
                    },
                    "things_to_know": {
                      "description": "Things to know: each aspect's title and the question under it. Google loads the answer only when a line is opened, so it is not here."
                    },
                    "top_stories": {
                      "description": "News on the page: title, url, source, date."
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's results page, and with content the text of the pages it links to."
      }
    },
    "/v1/shopping": {
      "get": {
        "description": "Google's Shopping tab, without sponsored products. Cost: 2 credits a page.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#shopping"
        },
        "operationId": "shopping",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "shoprs",
            "in": "query",
            "description": "A filter's token from filters[]; send it with that option's q.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "filters": {
                      "description": "The tab's filters by group (Price, Brand…), each option with text, q, shoprs.",
                      "items": {},
                      "type": "array"
                    },
                    "shopping": {
                      "description": "The products: title, source (the store), price, rating, reviews, delivery, thumbnail.",
                      "items": {
                        "properties": {
                          "extracted_price": {
                            "description": "The price as a number; old_price when it is on sale."
                          },
                          "multiple_sources": {
                            "description": "Other stores sell it too (the card's \"\u0026 more\"): their offers are what /v1/shopping/product lists."
                          },
                          "product_id": {
                            "description": "What /v1/shopping/product takes for all the product's stores."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's Shopping tab, without sponsored products."
      }
    },
    "/v1/shopping/product": {
      "get": {
        "description": "A product and the stores that sell it, for US buyers in English. An unknown product is 404 and free. Cost: 1 credit a product.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#product"
        },
        "operationId": "product",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "description": "From /v1/shopping. Required, or url.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "A Google Shopping link to the product, instead of product_id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "more_stores",
            "in": "query",
            "description": "Presses of \"More stores\", 0 to 15; each adds up to ten stores.",
            "schema": {
              "default": 3,
              "type": "integer"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "complete": {
                      "description": "Whether sellers is the whole list."
                    },
                    "product": {
                      "description": "title, brand, images.",
                      "properties": {
                        "description": {
                          "description": "The text under the title."
                        },
                        "features": {
                          "description": "The attributes Google gives no name: \"Noise Canceling\", \"Cordless\".",
                          "items": {},
                          "type": "array"
                        },
                        "specifications": {
                          "description": "The product's attributes as name and value: \"max battery life\", \"30 hours\". Each store lists its own. An attribute is here when more than half of the stores list it and fewer than a fifth list that name with other values only. A name can come twice, with two values. Names are in lower case but for a brand's: \"Oral-B product line\".",
                          "items": {},
                          "type": "array"
                        },
                        "typical_prices": {
                          "description": "What the product usually costs across stores, from Google's Price Insights: low and high as Google prints them, mostly to the dollar, and extracted_low, extracted_high to the cent."
                        }
                      },
                      "type": "object"
                    },
                    "sellers": {
                      "description": "The stores: name, link, price, currency, condition, delivery_price (0 when free).",
                      "items": {
                        "properties": {
                          "store_rating": {
                            "description": "The store's rating with Google, out of 5, and how many reviews it rests on. The store's, not the product's; absent when Google shows none."
                          },
                          "store_reviews": {
                            "description": "The store's rating with Google, out of 5, and how many reviews it rests on. The store's, not the product's; absent when Google shows none."
                          },
                          "total_price": {
                            "description": "The price with delivery_price, when both are known."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "product_not_found: Google has no such product."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "A product and the stores that sell it, for US buyers in English."
      }
    },
    "/v1/videos": {
      "get": {
        "description": "Google's Videos tab, ten a page. Cost: 1 credit a page.",
        "externalDocs": {
          "url": "https://serpbit.com/docs/#videos"
        },
        "operationId": "videos",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The query, up to 2,048 bytes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "description": "Country code: us, gb, de…",
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "hl",
            "in": "query",
            "description": "Interface language: en, de, ja…",
            "schema": {
              "default": "en",
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "A place by Google's name, down to a ZIP code: Austin,Texas,United States. Or uule, Google's encoding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "mobile, iphone or ipad for the phone's page.",
            "schema": {
              "default": "desktop",
              "type": "string"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "description": "Pages 1 to N in one call, up to 10 (100 results). Each page is billed. The results come as one list, numbered across the pages, each with its page and a result Google repeats on a later page shown once; pages[] says how many each page gave.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "num",
            "in": "query",
            "description": "Results wanted, up to 100, for Search and News: Google gives ten a page since September 2025, so num=30 is pages 1-3. Not with pages.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "One later page: 10 is page 2, up to 190.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "/v1/search only: a Google results address as a browser shows it, read into these parameters and its tab (News, Shopping, Images, Videos, Maps). Not with the parameters it sets; device, pages, output, html and location go beside it. What it carried and was not read comes back in search.url_ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_cache",
            "in": "query",
            "description": "true asks Google again instead of the hour's cache (see Retries and cache).",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "safe",
            "in": "query",
            "description": "active turns SafeSearch on.",
            "schema": {
              "default": "off",
              "type": "string"
            }
          },
          {
            "name": "lr",
            "in": "query",
            "description": "Result languages: lang_de, up to five joined by |.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfpr",
            "in": "query",
            "description": "1 searches the query as typed, without Google's correction.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "0 keeps similar results.",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "tbs",
            "in": "query",
            "description": "Time range: qdr:h, qdr:d, qdr:w, qdr:m, qdr:y, or dates: cdr:1,cd_min:1/1/2026,cd_max:1/31/2026.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "description": "md returns Markdown, ready for a language model.",
            "schema": {
              "default": "json",
              "type": "string"
            }
          },
          {
            "name": "html",
            "in": "query",
            "description": "1 adds each page's HTML as pages[].html.",
            "schema": {
              "default": 0,
              "type": "integer"
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "short (under 4 min), medium (4 to 20), long.",
            "schema": {
              "default": "any",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "videos": {
                      "description": "The videos: title, url, snippet, thumbnail.",
                      "items": {
                        "properties": {
                          "date": {
                            "description": "When it was put up, as Google writes it: Jan 8, 2026, 1 day ago."
                          },
                          "duration": {
                            "description": "As Google shows it; duration_seconds in seconds."
                          },
                          "platform": {
                            "description": "Where it is: YouTube, Instagram, TikTok…; channel who put it up."
                          },
                          "video_id": {
                            "description": "YouTube's id of the video."
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "bad_request: Fix the parameter the message names."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "unauthorized: Check the key."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "out_of_credits: Top up or upgrade in the dashboard."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "rate_limited: Wait the seconds in Retry-After."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "no_results_page, no_answer, unavailable: Google gave nothing in time. Retry."
          }
        },
        "summary": "Google's Videos tab, ten a page."
      }
    }
  },
  "security": [
    {
      "bearer": []
    },
    {
      "apiKeyHeader": []
    },
    {
      "apiKeyQuery": []
    }
  ],
  "servers": [
    {
      "url": "https://api.serpbit.com"
    }
  ]
}