Geographic region or area within a country with name, country association, description, and area measurements. Used for administrative divisions, geographic classification, and regional data.
https://api.mockly.codes/regions?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/regionsGet a collection of regions
/location/regions/regions/:idGet a single region by ID
/location/regions/:id/regions/metaGet resource metadata and schema
/location/regions/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/regions?q=laptopGET https://api.mockly.codes/regions?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 regions
fetch('https://api.mockly.codes/regions?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/regions?count=10'
)
data = response.json()curl "https://api.mockly.codes/regions?count=10"fetch('https://api.mockly.codes/regions?nocache=true')idintegerUnique identifier for the region
random_intnamestringName of the region (e.g., California, Bavaria, Tuscany)
wordcountrystringCountry where this region is located
countrydescriptionstringDescription of the region's characteristics, geography, or significance
paragraphareanumberTotal area of the region in square kilometers
floatcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request