An error occured. Details Hide
You have unsaved pages. Restore Cancel

Regions across datasets

 
This endpoint returns all the common regions across the datasets provided by the user by comparing all the optional dataset regions with the base dataset regions. 
 
Input:
At least one unique dataset identifier requiered to fetch up the regions and rest are optional, user can pass any number of datasets separated by comma's to get the common regions out of it. 
 
Ex: http://knoema.com/api/1.0/meta/dataset/CDIACTACHIINDUSAA/regions?ds=WBWDIGDF,EIAIES2012
 
Result:
Name Type  Description 
DatasetId String  Unique dataset Id
geoDimensionId string  Id of geographical dimension 
regions list<regions>

List of common regions contains:
key: Key for the region
name: Name of the region
regionId: Id of the region
fields: Metadat fields of the region

Example:
Get: http://knoema.com/api/1.0/meta/dataset/CDIACTACHIINDUSAA/regions?ds=EIAIES2012
 
[
    {
        "datasetId": "EIAIES2012",
        "geoDimensionId": "location",
        "regions": [
            {
                "key": 1000060,
                "name": "United States",
                "regionId": "US",
                "fields": {
                    "regionId": "US"
                }
            },
            {
                "key": 1001960,
                "name": "China",
                "regionId": "CN",
                "fields": {
                    "regionId": "CN"
                }
            },
            {
                "key": 1002040,
                "name": "India",
                "regionId": "IN",
                "fields": {
                    "regionId": "IN"
                }
            }
        ]
    },
    {
        "datasetId": "CDIACTACHIINDUSAA",
        "geoDimensionId": "Location",
        "regions": [
            {
                "key": 1000020,
                "name": "United States",
                "regionId": "US",
                "fields": {
                    "regionId": "US"
                }
            },
            {
                "key": 1000000,
                "name": "China",
                "regionId": "CN",
                "fields": {
                    "regionId": "CN"
                }
            },
            {
                "key": 1000010,
                "name": "India",
                "regionId": "IN",
                "fields": {
                    "regionId": "IN"
                }
            }
        ]
    }
 
]