## Location in the HTML The location is in the HTML we return, but not as static markup. Google serves the result page with an empty footer (`<div id="fbar"></div>`). The footer's content, location line included, comes later in the page as a script chunk: ```javascript [{id:'fbar'},function(){jsl.dh(this.id,"\x3cdiv ... 10007, New York, NY ... From your device ...")}] ``` Google's own JavaScript writes it into the footer when the page runs on google.com. A parser reading the HTML, or a render of the file outside google.com, therefore shows an empty footer. The missing "Goooogle" logo in your render has the same cause: the page's relative resources do not load outside google.com. This is how google.com serves the page, and v1 returns the same; the HTML you usually compare against was most likely saved after the page's scripts had run. `output=html` returns the page exactly as Google served it, so we do not rewrite it. Two ways to get the location: ### a) Read it from the chunk. This matches our own parser on every page in our test set, desktop and mobile: ```python import html, json, re CHUNK = re.compile(r"jsl\.dh\(this\.id,(\"(?:[^\"\\]|\\.)*\")\)") PLACE = re.compile( r"<span[^>]*>([^<]{1,120})</span>\s*</div>\s*<div[^>]*>\s*<span>(?:&nbsp;|\s)*-(?:&nbsp;|\s)*</span>" r"\s*<span[^>]*>\s*<span[^>]*>(From your device|From your IP address|Based on your past activity|From your places)" ) def footer_location(page_html): """Google's footer location, e.g. ('10007, New York, NY', 'From your device'), or None.""" for chunk in CHUNK.finditer(page_html): fragment = json.loads(chunk.group(1).replace("\\x", "\\u00")) place = PLACE.search(fragment) if place: return html.unescape(place.group(1)), place.group(2) return None ``` ### b) Rely on the API's check. Every page requested with a location is checked against that footer before we return it. If Google did not apply the location, the request fails with 424 `location_not_honoured` and is not billed. A request with a location that returns 200 has passed that check whenever the page carries the footer: in our load tests that was 1,266 of 1,266 pages requested with coordinates and 5,499 of 5,500 requested with a named location.

Releases

Last updated 2026-11-04
  1. 2026-10-27

    Organic results now carry `discussion`, which for a forum thread (a Reddit thread or a Facebook group post) holds its answer count, its top answer and the other threads listed under it with their answer counts and dates; such results also carry their domain.

  2. 2026-10-24

    Searches for a quoted phrase with no exact match now return Google's results for the phrase without quotes, with `showing_results_for` set to that query, instead of failing with `search_failed`.

  3. 2026-10-06

    Full SERP v2 returns Google's map pack as `local_pack` on each page: the places with their rating, review count, category, address, phone, hours, website, place ID, CID and coordinates, and the sponsored places apart.

  4. 2026-10-06

    Full SERP v2: /v2/serp, /v2/serp/tasks and /v2/serp/task return each result page as an entry of `pages` (a single page too), and `paa_answers=true` adds the answers to the first page's people-also-ask questions at one unit per answer; v1 keeps working as before.

  5. 2026-10-06

    Knowledge panels now carry kgmid, the entity's Knowledge Graph id (a Freebase /m/… id or a /g/… id; both map to Wikidata).