UULE Codes for Cities in Libya

A UULE code makes Google show results as if you were searching from a given place. Below are the v1 codes for 9 cities in Libya with at least 15,000 people, largest first. Copy one, or open the search on Google to check it.

9 cities

UULE v1 codes for cities in Libya
CityRegionPopulationUULE (v1)Use
TripoliTripoli District1,302,947w+CAIQICIeVHJpcG9saSxUcmlwb2xpIERpc3RyaWN0LExpYnlh Google
BenghaziBenghazi district757,490w+CAIQICIgQmVuZ2hhemksQmVuZ2hhemkgZGlzdHJpY3QsTGlieWE= Google
Az-ZawiyahZawiya District200,000w+CAIQICIgQXotWmF3aXlhaCxaYXdpeWEgRGlzdHJpY3QsTGlieWE= Google
JanzurTripoli District154,389w+CAIQICIdSmFuenVyLFRyaXBvbGkgRGlzdHJpY3QsTGlieWE= Google
SabhaSabha District149,329w+CAIQICIaU2FiaGEsU2FiaGEgRGlzdHJpY3QsTGlieWE= Google
Al-JawfKufra District42,079w+CAIQICIcQWwtSmF3ZixLdWZyYSBEaXN0cmljdCxMaWJ5YQ== Google
Murzuq‎Murzuq District30,491w+CAIQICIfTXVyenVx4oCOLE11cnp1cSBEaXN0cmljdCxMaWJ5YQ== Google
HunJufra District24,431w+CAIQICIYSHVuLEp1ZnJhIERpc3RyaWN0LExpYnlh Google
BrakWadi al Shatii District16,200w+CAIQICIiQnJhayxXYWRpIGFsIFNoYXRpaSBEaXN0cmljdCxMaWJ5YQ== Google

Use a Libya UULE with the API

Send the code to /v1/google/search and you get structured results for that city. This example searches “pharmacy” from Tripoli, the largest city in the list, with gl=ly and hl=ar.

Request for Tripoli, Tripoli District

curl -G "https://api.justserp.com/v1/google/search" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "q=pharmacy" \
  --data-urlencode "uule=w+CAIQICIeVHJpcG9saSxUcmlwb2xpIERpc3RyaWN0LExpYnlh" \
  --data-urlencode "gl=ly" \
  --data-urlencode "hl=ar"

Or pass the location name

You do not have to encode anything. The location parameter takes the canonical name and JustSERP does the rest.

Request with location

curl -G "https://api.justserp.com/v1/google/search" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "q=personal injury lawyer" \
  --data-urlencode "location=Tripoli,Tripoli District,Libya" \
  --data-urlencode "gl=ly" \
  --data-urlencode "hl=ar"

Replace YOUR_API_KEY with your key. See the API docs for every parameter.

Need a street or neighbourhood?

These are v1 codes, built from Google's canonical city name. A v2 code uses coordinates instead, so it can point at a street or a neighbourhood. The UULE generator and decoder creates one for any coordinates.

Other countries

See all 208 countries

Canonical names from Google's public geo targets list. City list and population from GeoNames (CC BY 4.0). Only cities that match one Google location exactly are listed. Results can still differ from what a person in the city sees, because Google also personalises.

JustSERP

JustSERP was born out of our own need to scrape google search results to parse data for analytical and processing needs. We have gone through the excruciating process of running automated web search queries by bypassing bot filters, solving captchas and parsing convoluted HTML. It is our pleasure to share our expertise with others through this affordable, fast and reliable SERP API. Don't hesitate to contact us with any questions at [email protected].

© Copyright 2026, JustSERP
Made for Search Enthusiasts ❤