Get article
get_articleReturns one article: headline, slug, status, target keyword, meta description, cover image and its alt text (main_image_alt, shared by every locale), dashboard URL and the list of its translations. Set include_content=true to also get the markdown body (can be long). Pass locale to read a translation instead of the default-language version; the base status and slug are shared by every locale. Never contacts the CMS. Pass website_id when the account has several websites (see get_account).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Translation locale (e.g. "fr") to target instead of the default-language article. | |
| article_id | Yes | Article id from list_articles. | |
| website_id | No | Website id from get_account. Optional when the account has a single website. | |
| include_content | No | Also return the article body as markdown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| locale | Yes | Locale of the returned version; null for the default language. | |
| status | Yes | Raw status; status_label is the human reading. | |
| excerpt | Yes | ||
| headline | Yes | ||
| is_on_cms | Yes | true once the article exists on a connected CMS. | |
| article_id | Yes | ||
| created_at | Yes | ||
| website_id | Yes | ||
| preview_text | Yes | First 200 characters of the body. | |
| published_at | Yes | ||
| status_label | Yes | Status as shown in the app, e.g. Published, Draft on CMS, Failed to publish. | |
| translations | Yes | ||
| dashboard_url | Yes | Article page in the app. | |
| default_locale | Yes | ||
| is_out_of_sync | Yes | Edited since the last push to the CMS; sync_article_to_cms clears it. | |
| main_image_alt | Yes | Cover alt text, shared by every locale. | |
| main_image_url | Yes | Cover image URL. | |
| target_keyword | Yes | ||
| last_updated_at | Yes | ||
| includes_content | Yes | true when markdown_content holds the body. | |
| markdown_content | Yes | The article body in markdown when include_content=true, null otherwise. | |
| meta_description | Yes | ||
| target_keyword_id | Yes | ||
| main_image_description | Yes | Brief the cover image was generated from. |