The /get/region/{id} endpoint retrieves detailed information about a specific geographic region by its ID.
GET /get/region/{id}
id (string, required)The region's WordPress ID. Can be provided with or without the "1_" prefix.
Formats:
{wp_id} - WordPress ID only (e.g., "123")1_{wp_id} - Legacy format with site prefix (e.g., "1_123")Examples:
id=123 - Region with WordPress ID 123id=1_123 - Same region using legacy format (prefix is stripped)Validation: Must be numeric or in format "1{number}". The "1" prefix is automatically removed if present.
sourceFields (string, optional)Return only specific fields from the _source object using dot notation (comma-separated).
Purpose: Optimize response payload size by requesting only needed fields
Examples:
sourceFields=title,subtitle,descriptionsourceFields=title,resortssourceFields=title,images,region_icon{
"_index": "fnugg_blog",
"_type": "region",
"_id": "1_123",
"_version": 1,
"found": true,
"_source": {
"id": 123,
"title": "Trysil",
"subtitle": "Norges største alpinområde",
"description": "Trysil er den mest populære skidestinasjon i Norge med over 70 nedfarter og moderne fasiliteter...",
"type": "region",
"resorts": [14, 89, 102],
"images": [
{
"url": "https://example.com/region-image.jpg",
"caption": "Utsikt over Trysil",
"width": 1920,
"height": 1080
}
],
"region_icon": {
"url": "https://example.com/icons/trysil-icon.svg",
"type": "svg"
},
"automatic": ""
}
}
{
"error": "Region with ID '999' was not found.",
"error_key": "region_not_found",
"id": "999"
}
_index (string): Index name, always "fnugg_blog"_type (string): Type name, always "region"_id (string): Region's ID in format "1_{wp_id}"_version (integer): Document version, always 1found (boolean): Whether region was found, always true on success_source (object): The region data objectid (integer): Region's WordPress ID (without "1_" prefix)title (string): Region namesubtitle (string): Short descriptive taglinedescription (string): Full description of the regiontype (string): Content type, always "region"resorts (array): Array of resort site_ids within this region
images (array): Region photos
url (string), caption (string), width (integer), height (integer)region_icon (object): Region icon/logo for branding
url (string): Icon file URLtype (string): File type (e.g., "svg", "png")automatic (string): Legacy field, always empty stringGET /get/region/123
Returns all fields for region with WordPress ID 123.
GET /get/region/1_123
Returns same result as above (the "1_" prefix is automatically stripped).
GET /get/region/123?sourceFields=title,subtitle,resorts
Returns only title, subtitle, and list of resort IDs.
GET /get/region/123?sourceFields=title,description,images
Returns basic information with images for display purposes.
resorts array to fetch all resorts in a regionsourceFields=title,subtitle,region_icon for navigation menusresorts arraysourceFields=title,description,images for page metadataid parameter accepts both formats: 123 or 1_123 (legacy format)resorts array contains site_ids that can be used with /get/resort/{id} or /search?include=...images array may be empty if the region has no imagesregion_icon is used for branding and UI purposes (logos, navigation icons)automatic field is a legacy field and always contains an empty stringsubtitle provides a short tagline or description suitable for preview cardsdescription field may contain HTML markup depending on the source contentsourceFields parameter uses dot notation to access nested fields (e.g., region_icon.url)