Zum Inhalt springen
API-ReferenzLese-API

Articles

Your organisation's published articles, as JSON blocks or neutral HTML. Costs no credits.

List published articles

GET
/v1/articles

Published articles of your organisation, hydrated for delivery: newest publication first. Filter by channel, section (slugs) or tag, pick the language with lang. With updatedSince, only articles changed or gone live since then; GET /articles/withdrawn lists those no longer delivered.

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Query Parameters

lang?string
Value in"de""en""fr""it""es""ru""zh""ja""ko""ar"
channel?string

Only articles in this channel (its slug, as the console shows it).

section?string

Only articles in this section (its slug, as the console shows it).

tag?string

Only articles with exactly this tag.

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 50
Default20
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

updatedSince?string

Only records changed at or after this instant (compare with updatedAt). Removed records are listed by GET /changes.

Formatdate-time

Response Body

Successful response

application/json
  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "title": "string",      "excerpt": "string",      "coverImage": {        "host": "cixtra",        "thumbnailUrl": "string",        "thumbnailWidth": 0,        "placeholder": "string",        "width": 0,        "height": 0,        "crops": {          "square": {            "x": 0,            "y": 0,            "w": 0,            "h": 0,            "source": "auto"          },          "landscape": {            "x": 0,            "y": 0,            "w": 0,            "h": 0,            "source": "auto"          },          "portrait": {            "x": 0,            "y": 0,            "w": 0,            "h": 0,            "source": "auto"          }        },        "ladder": [          {            "url": "string",            "width": 0,            "height": 0          }        ],        "credit": "string",        "sourcePageUrl": "string",        "licenseIdentifier": "string",        "licenseUrl": "string",        "aiGenerated": true,        "decorative": true,        "rightsTier": "full",        "conditions": "string",        "creditLinkOnly": true,        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "url": "string",        "copyright": "string",        "alt": "string"      },      "channels": [        "string"      ],      "sections": [        "string"      ],      "tags": [        "string"      ],      "lang": "string",      "availableLangs": [        "string"      ],      "publishedAt": "string",      "updatedAt": "string",      "document": null    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

List articles no longer delivered

GET
/v1/articles/withdrawn

Articles that were live and since since were unpublished, archived, deleted or moved to a later publication date. Oldest first. Drop them from your copy; one that comes back appears in the list again with updatedSince.

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Query Parameters

since*string

Instant (ISO 8601 with Z or an offset).

Formatdate-time
page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 100
Default50
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

Response Body

Successful response

application/json
  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles/withdrawn?since=2019-08-24T14%3A15%3A22Z'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "withdrawnAt": "string"    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

Article feed (RSS 2.0)

GET
/v1/articles/feed.rss

Your organisation's published articles as RSS 2.0, newest publication first, full HTML in content:encoded. Filter by channel, section or tag. Pages with atom:link rel="next". Send the ETag in If-None-Match (or Last-Modified in If-Modified-Since) to get 304.

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Query Parameters

lang?string

Language of the texts. Without it, each article in its original language.

Value in"de""en""fr""it""es""ru""zh""ja""ko""ar"
channel?string

Only articles in this channel (its slug, as the console shows it).

section?string

Only articles in this section (its slug, as the console shows it).

tag?string

Only articles with exactly this tag.

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 50
Default20
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

Response Body

Successful response

response?stringapplication/rss+xml
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles/feed.rss'
Example Response
"string"

Article feed (JSON Feed 1.1)

GET
/v1/articles/feed.json

Your organisation's published articles as JSON Feed 1.1, newest publication first, full HTML in content_html. Filter by channel, section or tag. Pages with next_url. Conditional requests as on the RSS feed.

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Query Parameters

lang?string

Language of the texts. Without it, each article in its original language.

Value in"de""en""fr""it""es""ru""zh""ja""ko""ar"
channel?string

Only articles in this channel (its slug, as the console shows it).

section?string

Only articles in this section (its slug, as the console shows it).

tag?string

Only articles with exactly this tag.

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 50
Default20
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

Response Body

Successful response

response?stringapplication/feed+json
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles/feed.json'
Example Response
"string"

Render published article as HTML

GET
/v1/articles/{slug}/render

Semantic, hydrated article HTML with stable CIXTRA classes. When the publishing organisation (or a parent) has a brand, the page wears it: colours, shape and self-hosted fonts. Without a brand, or with branded=false, only minimal structural CSS is included and typography, colours and branding remain host-controlled.

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Path Parameters

slug*string
Length1 <= length <= 255

Query Parameters

lang?string
Value in"de""en""fr""it""es""ru""zh""ja""ko""ar"
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

branded?boolean

Apply the organisation's brand (default true). false returns the neutral HTML.

Response Body

Successful response

response?stringtext/html
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles/string/render'
Example Response
"string"

Get published article by slug

GET
/v1/articles/{slug}

Authorization

ApiKeyAuth
headerX-API-Key<token>

Organisation API key (sk_org_…), created in the organisation settings of the CIXTRA console.

Path Parameters

slug*string
Length1 <= length <= 255

Query Parameters

lang?string
Value in"de""en""fr""it""es""ru""zh""ja""ko""ar"
includeSubOrgs?boolean

Also the published articles of your sub-organisations.

Response Body

Successful response

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/articles/string'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "slug": "string",    "title": "string",    "excerpt": "string",    "coverImage": {      "host": "cixtra",      "thumbnailUrl": "string",      "thumbnailWidth": 0,      "placeholder": "string",      "width": 0,      "height": 0,      "crops": {        "square": {          "x": 0,          "y": 0,          "w": 0,          "h": 0,          "source": "auto"        },        "landscape": {          "x": 0,          "y": 0,          "w": 0,          "h": 0,          "source": "auto"        },        "portrait": {          "x": 0,          "y": 0,          "w": 0,          "h": 0,          "source": "auto"        }      },      "ladder": [        {          "url": "string",          "width": 0,          "height": 0        }      ],      "credit": "string",      "sourcePageUrl": "string",      "licenseIdentifier": "string",      "licenseUrl": "string",      "aiGenerated": true,      "decorative": true,      "rightsTier": "full",      "conditions": "string",      "creditLinkOnly": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "url": "string",      "copyright": "string",      "alt": "string"    },    "channels": [      "string"    ],    "sections": [      "string"    ],    "tags": [      "string"    ],    "lang": "string",    "availableLangs": [      "string"    ],    "publishedAt": "string",    "updatedAt": "string",    "document": null  }}