sumber
sumber

Jelajahi Sumber

Data Indonesia dengan sumber yang dapat ditelusuri.


Developer / Referensi

Fetch a first-class entity by kind + slug

GET /v1/entities/{kind}/{id}

Isi referensi

Canonical endpoint for entity records per MD-2. Generalizes `/v1/companies/{ticker}` to all entity kinds.

Phase 1.0 cut: the entities table is empty until the Tayang Group A migration backfill (TAYANG_MIGRATION_SPEC.md §7.6) and Sumber-side scraper port sprint A (§7.3). Calls return `404` with the standard error envelope until then. Build against the contract — populated data lands without shape changes.

Series IDs that reference this entity (per MD-3 cinema domain conventions) are returned in the `series` array. `relations` (cast/crew, production companies, etc.) populate as the relevant ent_* relational tables fill in.

Deskripsi endpoint berasal dari spesifikasi dan masih berbahasa Inggris.

Parameter

Parameter
ParameterLokasiTipeAturan
kindpathcompany | movie | cinema | person | production_company | athlete | club | league | federation | venue | event | sponsor | agent | content_assetWajib
idpathstringWajib

Hak redistribusi mengikuti lisensi seri. Data tampilan saja tidak tersedia sebagai baris mentah.

Respons

Respons
KodeKeterangan
200Entity envelope (MD-2 shape)
400Invalid request parameters
401Missing or invalid API key
404Resource not found
429Quota exceeded; retry after the window resets

Dibangkitkan dari openapi.yaml, spesifikasi yang sama dengan /v1/openapi.yaml.

Permintaan / contoh

curl -H "x-api-key: $SUMBER_KEY" \
  "https://api.sumber.io/v1/entities/<kind>/<id>"
Minta API key