The /get/blog_post/{id} endpoint retrieves detailed information about a specific blog post or article by its ID.
GET /get/blog_post/{id}
id (string, required)The article's composite ID in the format <site_id>_<wp_id>.
Format: {site_id}_{wordpress_id}
site_id: The site/resort identifier (numeric)wordpress_id: The WordPress post ID (numeric)Examples:
id=1_12345 - Article with site_id=1 and WordPress ID=12345id=14_98765 - Article with site_id=14 and WordPress ID=98765Validation: Must match the pattern {number}_{number}. Invalid formats will return an error.
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,description,datesourceFields=title,images,authorsourceFields=title,description,video{
"_index": "fnugg_blog",
"_type": "blog_post",
"_id": "1_12345",
"_version": 1,
"found": true,
"_source": {
"title": "Guide til Trysil: Alt du trenger å vite",
"description": "Komplett guide til Norges største alpinområde. Her får du alle tips og råd for en perfekt skiopplevelse i Trysil...",
"images": [
{
"url": "https://example.com/article-image.jpg",
"caption": "Fantastisk utsikt fra toppen",
"width": 1920,
"height": 1080
}
],
"video": {
"url": "https://youtube.com/watch?v=abc123",
"provider": "youtube",
"thumbnail": "https://img.youtube.com/vi/abc123/maxresdefault.jpg"
},
"timezone": "Europe/Oslo",
"date": "2024-11-01T10:30:00",
"modified": "2024-11-05T14:20:00",
"type": "blog_post",
"site_id": "1",
"id": 12345,
"author": {
"first_name": "Ole",
"last_name": "Hansen",
"name": "Ole Hansen"
}
}
}
{
"error": "Invalid article ID. Must follow the format <resort_id>_<article_id>."
}
{
"error": "Article with ID '1_99999' was not found.",
"error_key": "article_not_found",
"id": "1_99999"
}
_index (string): Index name, always "fnugg_blog"_type (string): Type name, always "blog_post"_id (string): Article's composite ID in format {site_id}_{wp_id}_version (integer): Document version, always 1found (boolean): Whether article was found, always true on success_source (object): The article data objecttitle (string): Article headline/titledescription (string): Full article content (HTML or plain text)type (string): Content type, always "blog_post"id (integer): WordPress post ID (numeric part after underscore)site_id (string): Site/resort identifier (numeric part before underscore)images (array): Article images
url (string), caption (string), width (integer), height (integer)video (object |
null): Embedded video information |
|---|
provider (string): Video platform (e.g., "youtube", "vimeo")thumbnail (string): Video thumbnail URLdate (string): Publication date (ISO 8601 format without Z)modified (string): Last modification date (ISO 8601 format without Z)timezone (string): Timezone identifier, always "Europe/Oslo"author (object): Article author information
first_name (string|null): Author's first namelast_name (string|null): Author's last namename (string|null): Author's full display nameGET /get/blog_post/1_12345
Returns all fields for article with ID "1_12345".
GET /get/blog_post/1_12345?sourceFields=title,description,date,author
Returns only title, description, publication date, and author information.
GET /get/blog_post/14_98765?sourceFields=title,description,images,date
Returns data suitable for article previews/cards (title, excerpt, image, date).
GET /get/blog_post/1_12345?sourceFields=images,video
Returns only media assets (images and video).
sourceFields=title,description,images,date for list viewssourceFields=title,description,images for metadatasourceFields=title,description,date,author for feed itemssourceFields=title,description for search result snippetsid parameter must follow the format {number}_{number} (e.g., "1_12345")date and modified fields use ISO 8601 format without the trailing "Z" (unlike resort dates)timezone field is always "Europe/Oslo" for consistencyimages array may be empty if the article has no imagesvideo field is null if no video is embeddeddescription field may contain HTML markup depending on the source contentauthor object fields (first_name, last_name) may be null if author information is not availablesourceFields parameter uses dot notation to access nested fields (e.g., author.first_name)