Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Business Use
KAPSARC Data Portal
Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Business Use
Overview
The KAPSARC Data Portal API enables seamless integration with the KAPSARC Data Portal, providing access to energy economics and related datasets for applications such as data analytics, research tools, and visualization platforms. The API supports dataset enumeration, record queries, data exports, and facet-based navigation, advancing energy economics research with datasets like oil databases, consumer price indices, and natural gas data. It is organized around REST, supports only HTTP GET methods, returns JSON responses, and uses the Opendatasoft Query Language (ODSQL) for querying.
Integration Overview
This document outlines each integration point, its purpose, configuration, and supported workflows using the KAPSARC Data Portal API. Free registration is required for full access, including advanced filters, downloadable data, and API authentication via an API key.
Supported Integration Action Points
Detailed Integration Documentation
Catalog Datasets Retrieval
Action
getDatasets
Purpose
Retrieves a comprehensive list of all datasets in the catalog, serving as the entry point for exploring data like Saudi Arabia Oil Database or Consumer Price Index datasets.
Parameters
Configuration
Requires registration and API key setup for authentication. Ensure environment variables are configured for connectivity.
Output
Workflow Example
1. Configure the API with an API key.
2. Execute the getDatasets operation to fetch datasets.
3. Process the response to identify datasets (e.g., saudi-arabia-oil-database) for further actions.
Catalog Exports Listing
Operation ID
listExportFormats
Purpose
Lists available export formats for the dataset catalog, enabling users to select formats like CSV or JSON.
Parameters
Configuration
Requires API key authentication
Output
Workflow Example
1. Execute the listExportFormats operation to retrieve export formats.
2. Review formats (e.g., csv) to proceed with catalog export.
3. Use the exportDatasets operation for export.
Catalog Export by Format
Operation ID
exportDatasets
Purpose
Exports the entire dataset catalog in a specified format (e.g., JSON, CSV) for research or analysis.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the listExportFormats operation to identify supported formats.
2. Execute the exportDatasets operation with format=csv and limit=10.
3. Save the CSV file for analysis.
Catalog CSV Export
Operation ID
exportCatalogCSV
Purpose
Exports the dataset catalog in CSV format with customizable parameters for tailored data extraction.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the exportCatalogCSV operation with delimiter=,.
2. Save the CSV file containing catalog metadata.
3. Use the file for research or reporting.
Catalog DCAT Export
Operation ID
exportCatalogDCAT
Purpose
Exports catalog metadata in RDF/XML (DCAT-AP) format for integration with metadata systems
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the exportCatalogDCAT operation with dcat_ap_format=_ap_ch.
2. Save the RDF/XML file.
3. Integrate with DCAT-compatible systems.
Catalog Facets Retrieval
Operation ID
getDatasetsFacets
Purpose
Retrieves facet values for datasets (e.g., theme, publisher) to aid navigation and filtering.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the getDatasetsFacets operation with facet=theme.
2. Use facet values (e.g., Energy) to refine dataset queries.
3. Filter results in subsequent operations.
Dataset Metadata Retrieval
Operation ID
getDataset
Purpose
Retrieves detailed metadata for a specific dataset (e.g., fields, endpoints) to plan further queries or exports.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the getDatasets operation to identify a dataset (e.g., saudi-arabia-oil-database).
2. Execute the getDataset operation with dataset_id.
3. Review metadata for further actions.
Dataset Records Retrieval
Operation ID
getRecords
Purpose
Queries records from a specific dataset for detailed data analysis (e.g., oil production data).
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the getDataset operation to select a dataset (e.g., saudi-arabia-oil-database).
2. Execute the getRecords operation with dataset_id and where=year:2020.
3. Process the response for analysis or visualization.
Dataset Record Retrieval
Operation ID
getRecord
Purpose
Retrieves a single record from a dataset for detailed data inspection.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the getRecords operation to identify a record in saudi-arabia-oil-database.
2. Execute the getRecord operation with dataset_id and record_id=oil_001.
3. Review the record details for processing.
Dataset Exports Listing
Operation ID
listDatasetExportFormats
Purpose
Lists available export formats for a specific dataset, aiding format selection for export.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the getDataset operation to select a dataset (e.g., saudi-arabia-oil-database).
2. Execute the listDatasetExportFormats operation with dataset_id.
3. Review formats (e.g., csv, json) for export.
Dataset Export by Format
Operation ID
exportRecords
Purpose
Exports a dataset in a specified format (e.g., CSV, JSON, Parquet) for diverse applications.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the listDatasetExportFormats operation to identify formats for saudi-arabia-oil-database.
2. Execute the exportRecords operation with dataset_id and format=csv.
3. Save the exported file for use.
Dataset CSV Export
Operation ID
exportRecordsCSV
Purpose
Exports a dataset in CSV format with customizable parameters for tailored data extraction.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the exportRecordsCSV operation with dataset_id=saudi-arabia-oil-database and delimiter=,.
2. Save the CSV file containing dataset records.
3. Use the file for analysis or reporting.
Dataset Parquet Export
Operation ID
exportRecordsParquet
Purpose
Exports a dataset in Parquet format, ideal for efficient storage and processing in analytics platforms.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the exportRecordsParquet operation with dataset_id=saudi-arabia-oil-database.
2. Save the Parquet file.
3. Use the file for data processing in compatible systems.
Dataset GPX Export
Operation ID
exportRecordsGPX
Purpose
Exports a dataset in GPX format, suitable for geographic data visualization and GPS applications.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Execute the exportRecordsGPX operation with dataset_id=saudi-arabia-oil-database and name_field=region.
2. Save the GPX file.
3. Use the file for geographic data visualization.
Dataset Facets Retrieval
Operation ID
getRecordsFacets
Purpose
Retrieves facet values for records in a specific dataset, aiding in filtering and navigation.
Parameters
Configuration
Requires API key authentication
Output
Workflow Example
1. Use the getDataset operation to select saudi-arabia-oil-database.
2. Execute the getRecordsFacets operation with dataset_id and facet=year.
3. Use facet values to refine record queries.
Dataset Attachments Retrieval
Operation ID
getDatasetAttachments
Purpose
Retrieves files or attachments related to a specific dataset, providing access to supplementary resources.
Parameters
Configuration
Requires API key authentication.
Output
Workflow Example
1. Use the getDataset operation to select saudi-arabia-oil-database.
2. Execute the getDatasetAttachments operation with dataset_id.
3. Download attachments (e.g., oil_report.pdf) for further use.
Workflow Creation with the API
Example Workflow: Exploring and Exporting Oil Production Data
Retrieve Catalog Datasets:
Refine Dataset Exploration:
Execute the getRecordsFacets operation with dataset_id=saudi-arabia-oil-database and facet=year to filter records
Query Dataset Records:
Use the getRecords operation with dataset_id=saudi-arabia-oil-database and where=year:2020 to fetch records.
Export Dataset Data:
Retrieve Metadata and Attachments:
Export Catalog Metadata
Pricing
iSolution logo - white - transparent 250 px
Register To The Future Fabric Event
[forminator_form id=”14485″]
[forminator_form id=”14419″]
[forminator_form id=”14298″]
[forminator_form id=”13094″]