Developer API
Public, read-only access to published data: open data, the service catalogue and health probes. No authentication is needed and there are no write operations.
Base URL
https://dga-portal.appclouders.comA machine-readable OpenAPI 3.1 description you can import into tools such as Postman or Swagger.
Notes
- Every endpoint is public and read-only (GET). No key or sign-in is required.
- Only published data is served. Drafts and administration endpoints are not available.
- Responses are cacheable, carry an ETag and allow cross-origin reads.
Open data
The catalogue of published datasets as DCAT-AP 2 and a read-only CKAN-compatible API.
Open data catalogue (JSON-LD)
/api/open-data/catalog.jsonldDCAT-AP 2 catalogue of every published dataset as JSON-LD.
Parameters
No parameters.
Responses
200application/ld+json: The catalogue.
Open data catalogue (Turtle)
/api/open-data/catalog.ttlThe same DCAT-AP 2 catalogue as Turtle.
Parameters
No parameters.
Responses
200text/turtle: The catalogue.
One dataset
/api/open-data/datasets/{slug}A published dataset as DCAT-AP 2 JSON-LD, or Turtle with format=ttl. Drafts are never served.
Parameters
slug(path, Required): Dataset slug.format(query, Optional): Use ttl to get Turtle.
Responses
200application/ld+json: The dataset.404application/json: Not found, or not published.
Download a data file
/api/open-data/download/{slug}/{distribution}Downloads one file of a published dataset, or redirects to its external link. Counted anonymously (a number only).
Parameters
slug(path, Required): Dataset slug.distribution(path, Required): Distribution id inside the dataset.
Responses
200application/octet-stream: The file content.302: Redirect to the external link.404application/json: Not found, or not published.
Read-only CKAN action API
/api/open-data/ckan/{action}CKAN-compatible read actions: package_list, package_show, package_search, site_read and status_show. No write actions exist.
Parameters
action(path, Required): Action name.id(query, Optional): Dataset id or slug (with package_show).q(query, Optional): Search text (with package_search).rows(query, Optional): Results per page.start(query, Optional): Offset of the first result.lang(query, Optional): Language of the text fields. Defaults to ar.
Responses
200application/json: CKAN envelope.404application/json: Unknown action or dataset.
Service catalogue
Every published service with stable identifiers and Arabic and English names.
Service catalogue (JSON)
/api/services/catalog.jsonEvery published service: stable ids, Arabic and English names and descriptions, channels, fees, requirements and categories.
Parameters
No parameters.
Responses
200application/json: The catalogue.
Service catalogue (CSV)
/api/services/catalog.csvThe same catalogue as UTF-8 CSV with a byte order mark so Excel reads Arabic correctly.
Parameters
No parameters.
Responses
200text/csv: CSV file.
Health
Liveness and readiness probes for load balancers and monitoring.
Liveness probe
/api/health/liveAnswers while the process runs. Does not touch the database.
Parameters
No parameters.
Responses
200application/json: Alive.
Readiness probe
/api/health/readyChecks that the database answers and every migration is applied. The body never says why it is not ready.
Parameters
No parameters.
Responses
200application/json: Ready.503application/json: Not ready.
API description
The OpenAPI document itself.
OpenAPI document
/api/openapi.jsonThis API described as OpenAPI 3.1.
Parameters
No parameters.
Responses
200application/json: The document.