Zum Inhalt springen
API-ReferenzLese-API

Works

Pieces: operas, plays, symphonies, … Not limited by your key's area.

List works

GET
/v1/works

Works (operas, plays, symphonies, …), most highly ranked first. Pages with page and limit; hasMore is exact. Not limited by your key's area or genres.

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
search?string

Full-text search in titles.

lang?string
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
sort?"ranking"

Sort axis. ranking = most relevant first; your organisation's own ranking of a work wins.

Value in"ranking"
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/works'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "title": "string",      "subtitle": "string",      "description": "string",      "shortDescription": "string",      "yearCreated": 0,      "durationMinutes": 0,      "era": "string",      "style": "string",      "themes": [],      "creators": [],      "images": [],      "lang": "string",      "updatedAt": "string"    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

Get works by artist

GET
/v1/works/by-artist/{artistId}

The works an artist is credited on (any role), most highly ranked first.

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Path Parameters

artistId*string
Formatuuid

Query Parameters

limit?number
Range1 <= value <= 100
Default50
page?number
Range1 <= value
Default1
lang?string
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*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/works/by-artist/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "title": "string",      "subtitle": "string",      "description": "string",      "shortDescription": "string",      "yearCreated": 0,      "durationMinutes": 0,      "era": "string",      "style": "string",      "themes": [],      "creators": [],      "images": [],      "lang": "string",      "updatedAt": "string"    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

Get work by ID or slug

GET
/v1/works/{id}

One work by ID (UUID) or slug. A merged record answers 301 with Location set to the record it was merged into.

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Path Parameters

id*string

Query Parameters

lang?string
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/works/string'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "slug": "string",    "title": "string",    "subtitle": "string",    "description": "string",    "shortDescription": "string",    "yearCreated": 0,    "durationMinutes": 0,    "era": "string",    "style": "string",    "themes": [],    "creators": [],    "images": [],    "lang": "string",    "updatedAt": "string"  }}