Zum Inhalt springen
API-ReferenzLese-API

Genres

Genres in two levels: parent groups and their genres. Reference data: answers may be kept for a day.

List genres

GET
/v1/genres

All genres, parent groups and their genres alike, ordered by slug. Pages with page and limit; hasMore is exact. translations holds the name in every language.

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Query Parameters

limit?number
Range1 <= value <= 100
Default50
page?number
Range1 <= value
Default1
parentId?string

Only the genres of this parent group.

Formatuuid
domains?string

Comma-separated domains (culture,leisure): only genres used in one of them. Your key's domain limit always applies.

lang?string

Language of name: the requested language, then German, English, any (default de).

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

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

Formatdate-time
format?string

jsonld = schema.org JSON-LD (application/ld+json), json = the JSON shape (default). Wins over the Accept header; without it, JSON-LD is sent only when Accept prefers application/ld+json over application/json and */*.

Value in"json""jsonld"

Response Body

Successful response

  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/genres'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "slug": "string",      "translations": {        "property1": {          "name": "string"        },        "property2": {          "name": "string"        }      },      "parent": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "slug": "string",        "translations": {          "property1": {            "name": "string"          },          "property2": {            "name": "string"          }        },        "domains": [          "culture"        ]      },      "domains": [        "culture"      ],      "lang": "string",      "updatedAt": "string"    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

List genres grouped by category

GET
/v1/genres/grouped

Every parent group with its genres, the whole tree in one answer (no paging). A group without genres is left out.

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Query Parameters

domains?string

Comma-separated domains (culture,leisure): only genres used in one of them. Your key's domain limit always applies.

lang?string

Language of name: the requested language, then German, English, any (default de).

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

Response Body

Successful response

application/json
  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/genres/grouped'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "slug": "string",      "translations": {        "property1": {          "name": "string"        },        "property2": {          "name": "string"        }      },      "domains": [        "culture"      ],      "lang": "string",      "updatedAt": "string",      "genres": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "slug": "string",          "translations": {            "property1": {              "name": "string"            },            "property2": {              "name": "string"            }          },          "parent": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "name": "string",            "slug": "string",            "translations": {              "property1": {                "name": "string"              },              "property2": {                "name": "string"              }            },            "domains": [              "culture"            ]          },          "domains": [            "culture"          ],          "lang": "string",          "updatedAt": "string"        }      ]    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

Get genre by ID

GET
/v1/genres/{id}

One genre or parent group. A genre outside your key's domains answers 404.

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Path Parameters

id*string
Formatuuid

Query Parameters

domains?string

Comma-separated domains (culture,leisure): only genres used in one of them. Your key's domain limit always applies.

lang?string

Language of name: the requested language, then German, English, any (default de).

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

jsonld = schema.org JSON-LD (application/ld+json), json = the JSON shape (default). Wins over the Accept header; without it, JSON-LD is sent only when Accept prefers application/ld+json over application/json and */*.

Value in"json""jsonld"

Response Body

Successful response

  1. response
data*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/genres/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "slug": "string",    "translations": {      "property1": {        "name": "string"      },      "property2": {        "name": "string"      }    },    "parent": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "slug": "string",      "translations": {        "property1": {          "name": "string"        },        "property2": {          "name": "string"        }      },      "domains": [        "culture"      ]    },    "domains": [      "culture"    ],    "lang": "string",    "updatedAt": "string"  }}