Skip to content
CrawlfolioSourced research on web data for AI
Menu

To get Google results as seen from a place, send a country and a language to almost any SERP API, and add a city only when your report is per city. All eight vendors whose location parameter docs I read take a country. They split on a city string, an encoded uule, coordinates and a device.

The pages that rank for this are single-vendor docs and blog posts, so I read them side by side. I didn’t send any requests: everything below is what the docs said when I read them on November 23, 2026 (key pages again on November 24), and I mark what they leave out. This guide is part of my search APIs hub, next to the pricing and comparison posts.

Short on time?

Short on time? Here's my pick

You track rankings per country
Send country and language only, on whichever API is cheapest for you
High confidence. Every vendor I read documents it, and it avoids any city surcharge.
You need street or neighbourhood level
Coordinates from SerpApi, SearchApi, DataForSEO or Oxylabs. apiserpent.com documents coordinates on Maps, not on web search
Medium confidence. Radius rules differ by vendor.
You need mobile results
A vendor that documents a device setting: SerpApi, SearchApi, DataForSEO or Bright Data
High confidence on the docs. apiserpent.com's FAQ says desktop only for now.

Prices verified . Sponsors cannot buy a verdict or a position.

What do gl, hl, location and uule each do? #

Four parameters do the work, and each answers a different question. In SerpApi’s docs, gl is the two-letter country to use for the search, hl is the language to use, location is where the search should originate, and uule is the Google encoded location. SerpApi docs.

SerpApi recommends giving location at city level. It cannot be combined with uule, lat or lon. When you set location, gl defaults to that location’s country. SerpApi docs.

You rarely write a uule yourself. SearchApi builds it automatically from location, and Bright Data takes the canonical name as a plain string such as uule=New+York,New+York,United+States. SearchApi, Bright Data. Scrapingdog shows a pre-encoded value in its example, which is the form you’d need if you built it elsewhere. Scrapingdog.

The same word can mean different things across vendors. Google’s own Programmable Search gl only boosts results whose country of origin matches, and its cr restricts by country. Google cse.list. apiserpent.com’s language filters results by content language, while SerpApi describes hl as the language to use for the search. apiserpent.com docs, SerpApi docs.

So set country and language together, then read each vendor’s definition before you trust the label. SerpApi’s own advice is to send location, hl and gl together, and its blog says that gets very close to browser accuracy. That is a vendor claim, and I found no outside test of it. SerpApi blog.

Which city name do you send? #

Send the name your vendor lists, not one you typed from memory. Google publishes a geotargets file with a Criteria ID, a Canonical Name and a Target Type per place, 35 target types in all, including City, State, Postal Code and Neighborhood. The page says the canonical name exists to tell similar names apart, and the latest file is dated 2026-10-06. Google geotargets.

SerpApi’s Locations API is free and returns the canonical name and an id you can pass as location, sorted by reach. SerpApi Locations API. Oxylabs and Decodo accept a numeric Criteria ID in their location parameter. Oxylabs, Decodo.

Does switching to google.de still work? #

No, and I wouldn’t spend time on it. SerpApi’s 2021 post says Google stopped showing local results by country domain, SearchApi says country domains redirect to google.com since April 15, 2025, and Bright Data says localisation comes from gl and hl, not the domain. SerpApi 2021, SearchApi, Bright Data.

Some vendors still document a domain parameter, for example SerpApi’s google_domain and Scrapingdog’s domain. I read that as legacy; use the country parameter.

Which APIs let you set what? #

Every vendor I read documents a country and a city of some kind, and they differ on uule. Here is the first half of the comparison, as the docs read on 2026-11-23 and 2026-11-24.

Vendor Country Language City string Encoded uule
apiserpent.com country (112 codes) language location, 2x, paid balance No (docs say so)
SerpApi gl hl location uule
SearchApi gl hl location (most popular match wins) uule, also built from location
Bright Data gl hl Canonical string in uule uule
DataForSEO Not a separate parameter in what I read language_code or language_name location_name or location_code Not seen
Oxylabs geo_location (name or ISO code) locale geo_location as City,State,Country Not documented on the page
Decodo geo (name or ISO code) Not on the page geo as city,region,country Not documented on the page
Scrapingdog country language location (not with uule) uule

Serper and Brave aren’t in the table because I couldn’t verify them. Serper’s docs didn’t load, and the LangChain wrapper only shows that it passes gl and hl. LangChain wrapper. Brave’s query docs list country, search_lang and ui_lang, and I could not open any page about its location headers. Brave docs.

Soft pale blue and white ribbons flowing in layered curves across the frame
Country is the first dial. City is a second dial, and some APIs charge extra for it. Photo: Debora Pilati / Unsplash · Unsplash License

My read: SerpApi and SearchApi document the most location options on one page, and DataForSEO, Oxylabs and Decodo fold everything into a single location field. If you build LangChain-style agents, also check what the wrapper exposes, which my LangChain web search tools guide covers.

What does apiserpent.com let you set? #

Country, language and, per its docs, a city, with fewer extras than SerpApi on web search. This is its location contract as I could assemble it from its docs, pricing page and FAQ, read on 2026-11-23 and again on 2026-11-24.

  • Country: country defaults to us and takes 112 codes. GET /api/countries lists them with no key, and gb is an alias for uk. An unsupported code returns a 400 unsupported_country. Docs, FAQ.
  • Language: language is a two-letter ISO 639-1 code. It works on web, news, image and shopping search, not video, and coverage is broadest on Yahoo, Bing and Brave and narrower on DuckDuckGo. The docs recommend sending both, for example country=de&language=de. A value that is not a two-letter code returns 400 unsupported_language. Docs.
  • City: location takes a place name such as Austin, TX, up to 200 characters with no quotes, colons or brackets, and needs an explicit country. It exists on the standard /api/search/quick and per-page /api/search endpoints only. Docs.
  • Price: the docs say the city parameter is billed at twice the web price and works on paid balance only. The pricing page says a call targeted to a city counts as 2, and per-page search bills it on every page. Docs, pricing.
  • Refusals: combining location with site:, inurl:, intitle: or filetype: in the query returns a 400 and the docs say you are never charged. Per-page search also refuses it together with include_ai_mode, and bulk and async jobs don’t accept location yet. Docs.

What it doesn’t document on web search: uule, gl and hl, a device setting, ZIP targeting, and coordinates. The docs state flatly that “Standard search does not support uule.” The FAQ says desktop SERPs only for now, with mobile on the roadmap. I searched the docs text and found no lat, lon or device parameter in the standard or per-page tables, which means undocumented and not necessarily unsupported. Docs, FAQ.

Its Google Maps endpoints are different. They take a location text, or a lat and lng pair, or an ll shorthand such as ll=40.7128,-74.0060, plus zoom from 1 to 21. You must not mix ll, lat/lng and location, and the docs say that returns a 400 even when they agree. Docs.

What I’d say in its favour, from the documents: one price for plain search across engines, since the pricing page says setting engine= never changes what you pay (the docs don’t say whether the city location works on the non-Google engines, so check before you rely on it), and a clear contract where unsupported combinations are refused rather than silently ignored. Pricing. The weak spots are the missing device and coordinates on web search, and the likely price rise covered below.

Why do some apiserpent.com pages skip the city setting? #

Because they were written before it. Its local rank tracking page, re-read on November 24, now offers both routes: add location for a city at twice the Web price on paid balance, or put the place in the query text. It also warns that a query isn’t the same as physically standing on that street corner. Two older blog posts, from August 6 and October 23, 2026, put the place in the query text, and the October one says /api/search targets by country only. The FAQ also sends city workflows to its Local or Maps endpoints. Local rank page, Aug post, Oct post, FAQ.

I found no changelog, so I can’t date the change. The docs, pricing page and local rank page now agree, so I treat them as the contract over the older blog posts. Confirm on the playground before you build.

What happens when the value is wrong? #

It depends on the vendor, and it matters more than it sounds: a quiet failure gives you country-level data that looks like city data. Here is what each page says.

Vendor Bad or unknown value
apiserpent.com Unsupported country or language code returns a 400. location with site:, inurl:, intitle: or filetype: returns a 400 and is not charged. Docs
Oxylabs A misspelled or unrecognised geo_location is not rejected: the request succeeds with no location applied. Oxylabs
Decodo Warns the formats may not work in every situation, and you receive an error message. Decodo
SearchApi If several locations match, the most popular is picked. Coordinates in a country the engine doesn’t support are rejected. SearchApi
SerpApi, Bright Data, DataForSEO, Scrapingdog Not documented in what I read.

The Oxylabs row is the one to act on: if your vendor can ignore a wrong value silently, send one deliberately wrong city once to see how the failure looks.

Ambiguous names are the other trap: SearchApi’s most-popular-match rule means you may get a different place than you meant. Copy the canonical name from the vendor’s Locations list or Google’s file.

Can you target a ZIP code, coordinates or a phone? #

Coordinates yes at several vendors, a phone yes at several, and ZIP not documented anywhere I looked. Here is the second half of the table.

Vendor Coordinates ZIP Device
apiserpent.com Web: not documented. Maps: lat, lng, ll Not documented Desktop only per its FAQ
SerpApi lat, lon, radius (matching gl for consistent results) Not documented Desktop, tablet, mobile
SearchApi latitude, longitude Not documented Desktop, mobile, tablet
Bright Data lat,lon,radius inside uule (beta) Not covered brd_mobile
DataForSEO location_coordinate as latitude,longitude,radius Not documented device plus os
Oxylabs lat, lng, rad inside geo_location Not covered Not covered on the page
Decodo lat, lng, rad inside geo Not on the page Not on the page
Scrapingdog lat/lon and ll not documented Not documented mob_search, 10 credits per request

Sources: apiserpent.com docs and FAQ, SerpApi, SearchApi, Bright Data, DataForSEO, Oxylabs, Decodo, Scrapingdog.

Radius rules vary. SerpApi’s radius is in metres, 1 to 199 on desktop and 1 to 1,000 on mobile and tablet. SerpApi. DataForSEO shows limits of 199 to 199999 and writes the unit as mm, which looks odd for a radius, so I won’t state one: check its docs. DataForSEO.

ZIP is the honest gap. Google’s file has a Postal Code target type, but no vendor page I opened documents ZIP targeting, so I’d treat it as unsupported until a vendor shows you a working example. Google geotargets.

DataForSEO pairs device with os, so you can ask for iOS or Android as well as desktop. Scrapingdog charges 10 credits per mobile request.

What does city targeting cost? #

Only apiserpent.com states a surcharge on the pages I read: a city call counts as 2. For the others, I found no stated surcharge, which is an absence and not a promise. All prices below are as the pages returned them on 2026-11-23 and again on 2026-11-24, from a fetcher in an unknown location.

Vendor What I found (2026-11-24)
apiserpent.com Google SERP per 1,000 calls: Default $0.60, Growth $0.30, Scale $0.20, Enterprise $0.15, Enterprise Plus $0.03. A city call counts as 2, so $1.20, $0.60, $0.40, $0.30 and $0.06 per 1,000 city calls (my arithmetic). Pricing
SerpApi Free $0 for 250 searches a month (50 an hour), Starter $25 for 1,000, Developer $75 for 5,000, Production $150 for 15,000. No location surcharge on the page, either way. Pricing
Scrapingdog Mobile search (mob_search) is 10 credits per request. Location surcharge: none found. Docs
SearchApi, Bright Data, DataForSEO, Oxylabs, Decodo No location surcharge found on the docs pages I read. I didn’t open their price pages for this post.

A few notes on the apiserpent.com numbers. The pricing page notes that prices may rise from December 2026; nothing on it is final yet. Treat the table as a snapshot dated 2026-11-24 and re-check before you budget. Pricing.

SerpApi’s plans work out to $25, $15 and $10 per 1,000 searches at Starter, Developer and Production, my division of its page. The products differ, since SerpApi documents uule, coordinates and a device and apiserpent.com doesn’t on web search, so the cheaper rate is not like for like. My SerpApi pricing and cheapest SERP API posts go further.

How do you check what a vendor returns? #

Run the same query for two cities and compare the URLs. This is a method written from the docs and not run, since I sent no request.

  1. Pick a query where place should matter, and send it with country and language only. Save the raw JSON.
  2. Send it again, unchanged, to see how much the results move on their own.
  3. Send it for city A and then city B, using the canonical names from the vendor’s list. Save both responses.
  4. Compare the top 10 URLs: how many are shared, and how many change rank. Subtract the movement from step 2 before you credit the city.
  5. Send one deliberately wrong city, as in the section above, and look at what comes back.
Dozens of thin parallel lines fanning out from a central point in a purple-grey curve that meets itself on both sides
The same query sent from two places, then lined up to see what moved. Photo: Vimal S / Unsplash · Unsplash License

Step 2 matters because a city effect only counts above the baseline of results moving on their own. I have no measured result to quote. SerpApi’s blog gives a 50-60% figure for a single city with no source or method, so I leave it out of any plan. SerpApi blog.

The caution on apiserpent.com’s local rank page, that a query is not the same as standing on that street corner, fits any vendor, because no page I read published an accuracy test. Local rank page. If rate limits get in the way of the repeat runs, see my search API rate limits guide.

Do you need city-level at all? #

Not for most tracking. If your report is per country, country plus language is simpler, supported everywhere I looked, and avoids any surcharge.

Pay for city targeting when the thing you report is per city: a multi-location business, a local landing page, a lead-gen audit. For those, the question is whether your own two-city check shows results that differ enough to matter. I can’t tell you the size of the gain, because the only number I found is unsourced.

For the wider picture, see rank tracker versus Search Console, what is a SERP API, best SERP API and the search APIs hub.

So which setup should you pick? #

Match the parameter to the report, then pick the vendor that documents it.

  • Per-country tracking: country and language on any vendor. On price alone that points to the cheapest of them. Of the two I priced, apiserpent.com’s rate card on 2026-11-24 is lower than SerpApi’s, and its pricing page notes that prices may rise from December 2026.
  • Per-city reports: a canonical city string. I’d take apiserpent.com location at 2x if one price across engines matters to you, and SerpApi location if you value the free Locations API and the uule and coordinates options.
  • Hyperlocal: SerpApi, SearchApi, DataForSEO or Oxylabs coordinates. apiserpent.com’s web search doesn’t document them, though its Maps endpoint does.
  • Mobile SERPs: SerpApi, SearchApi, DataForSEO or Bright Data. apiserpent.com is desktop only according to its FAQ.

My confidence is medium on the city and hyperlocal picks, because nobody has shown me an accuracy test, and high on the docs-based ones.

What I would do #

I’d start with country and language on whichever API is cheapest. I’d add a city only for per-city reports, copy the vendor’s canonical name, and run the two-city check above before trusting it. I’d also send one wrong value on purpose, and date every price in the budget: for apiserpent.com that means 2026-11-24 and the pricing-page note about a possible rise from December 2026.

FAQ

Do I still need uule?

Usually not. SearchApi builds it from location, and SerpApi, Bright Data and Scrapingdog accept one if you have it. apiserpent.com's docs say its standard search does not support uule, and it offers a city location parameter instead.

What is the difference between gl and hl?

In SerpApi's docs, gl is the two-letter country to use for the search and hl is the language to use. Vendors name and define these differently, so read each one: apiserpent.com's language parameter filters results by content language.

Does apiserpent.com support city targeting?

Its docs and pricing page, last read on 2026-11-24, document a city location parameter on standard and per-page web search, billed at 2x on paid balance. Its local rank tracking page says the same, and also offers putting the place in the query text. Two older blog posts predate the parameter, so confirm on its playground before you build.

Can I target by ZIP code?

I found no vendor page that documents it. Google's geotargets file lists postal codes as a target type, but whether a given API accepts one is not something I could verify.

Does switching to google.de or another country domain work?

Not as a location setting. SearchApi says country domains redirect to google.com since April 15, 2025, Bright Data says its localisation comes from gl and hl and not the domain, and SerpApi's 2021 post says Google stopped giving local results by domain.

How much do results differ between cities?

I couldn't establish it. SerpApi's blog gives a 50-60% figure with no source or method, so I would not plan around it. The check in this post lets you measure it for your own keywords.

Is the free tier enough to test location?

Probably for a few checks. SerpApi's free plan is 250 searches a month. apiserpent.com gives one free run a day and 10 free calls with an account, but its city location works on paid balance only, so a deposit is needed to try it.

Sources

24 sources, accessed to .

Official pricing, docs, changelogs and status pages 19

  1. apiserpent.com API docs: country, language, location, error codes, Maps apiserpent.com · accessed
  2. apiserpent.com pricing apiserpent.com · accessed
  3. apiserpent.com FAQ apiserpent.com · accessed
  4. apiserpent.com SERP API page apiserpent.com · accessed
  5. apiserpent.com local rank tracking page apiserpent.com · accessed
  6. SerpApi Google Search API docs serpapi.com · accessed
  7. SerpApi Locations API docs serpapi.com · accessed
  8. SerpApi pricing serpapi.com · accessed
  9. SearchApi Google Search docs searchapi.io · accessed
  10. Bright Data SERP API: Google query parameters docs.brightdata.com · accessed
  11. DataForSEO Google organic live advanced docs docs.dataforseo.com · accessed
  12. Oxylabs SERP localization docs developers.oxylabs.io · accessed
  13. Decodo Web Scraping API: Google geolocation help.decodo.com · accessed
  14. Scrapingdog Google Search API docs scrapingdog.com · accessed
  15. Google Ads geographical targeting file (latest file 2026-10-06) developers.google.com · accessed
  16. Google Programmable Search cse.list reference developers.google.com · accessed
  17. Google Programmable Search JSON API overview developers.google.com · accessed
  18. Brave Web Search API: query parameters api-dashboard.search.brave.com · accessed
  19. Brave Web Search API: get started api-dashboard.search.brave.com · accessed

GitHub code, issues and releases 1

  1. LangChain Serper wrapper source (archived langchain-community) raw.githubusercontent.com · accessed

Last updated November 24, 2026. Researched and drafted with AI tools; editorial review by the site owner is pending.

What readers say

Used one of the tools in this guide? Tell other readers how it went. I read every review before it goes up, and I never turn one down for being negative. How reviews work.

No reader reviews yet. Yours could be the first.

Write a review
Your rating

What did you use it for, what worked, and what didn't? 30 to 1500 characters. Please don't include links.

Your connection to the company

Your review appears with the name you enter, after I approve it. I don't ask for your email. Privacy.