Download OpenAPI specification:
This is a sample OpenAPI definition that conforms to the conformance classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft standard "OGC API - Records - Part 1: Core".
This example is a generic OGC API - Records definition that uses path parameters to describe all record collections and all records. The generic OpenAPI definition does not provide any details on the collections or the record content. This information is only available from accessing the record collection resources.
There is another example that specifies each collection explicitly.
The landing page provides links to the API definition, the conformance statements and to the record collections in this dataset.
{- "title": "string",
- "description": "string",
- "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
]
}Fetch list of catalogs offered by this API
{- "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "collections": [
- {
- "id": "string",
- "title": "string",
- "description": "string",
- "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "extent": {
- "temporal": {
- "interval": [
- [
- "2019-08-24T14:15:22Z",
- "2019-08-24T14:15:22Z"
]
],
}
}, - "itemType": "record",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "Collection",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": "string",
- "roles": [
- "string"
]
}
], - "emails": [
- {
- "value": "user@example.com",
- "roles": [
- "string"
]
}
], - "addresses": [
- {
- "deliveryPoint": [
- "string"
], - "city": "string",
- "administrativeArea": "string",
- "postalCode": "string",
- "country": "string",
- "roles": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string",
- "conformsTo": [
- "string"
], - "recordsArrayName": "records",
- "records": [
- {
- "id": "string",
- "type": "Feature",
- "time": { },
- "geometry": { },
- "conformsTo": [
- "string"
], - "properties": {
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "string",
- "title": "string",
- "description": "string",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
- {
- "id": null,
- "title": null,
- "description": null,
- "url": null
}
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": null,
- "roles": null
}
], - "emails": [
- {
- "value": null,
- "roles": null
}
], - "addresses": [
- {
- "deliveryPoint": [ ],
- "city": null,
- "administrativeArea": null,
- "postalCode": null,
- "country": null,
- "roles": null
}
], - "links": [
- {
- "rel": null,
- "type": null,
- "hreflang": null,
- "title": null,
- "length": null,
- "created": null,
- "updated": null,
- "href": null
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string"
}, - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
]
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
], - "schemes": [
- {
- "scheme-id": "string",
- "namespace": "string",
- "resolver": { }
}
]
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
]
}Fetch a detailed description of a catalog or collection of records
with id catalogId.
| catalogId required | string |
{- "id": "string",
- "title": "string",
- "description": "string",
- "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "extent": {
- "temporal": {
- "interval": [
- [
- "2019-08-24T14:15:22Z",
- "2019-08-24T14:15:22Z"
]
],
}
}, - "itemType": "record",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "Collection",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": "string",
- "roles": [
- "string"
]
}
], - "emails": [
- {
- "value": "user@example.com",
- "roles": [
- "string"
]
}
], - "addresses": [
- {
- "deliveryPoint": [
- "string"
], - "city": "string",
- "administrativeArea": "string",
- "postalCode": "string",
- "country": "string",
- "roles": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string",
- "conformsTo": [
- "string"
], - "recordsArrayName": "records",
- "records": [
- {
- "id": "string",
- "type": "Feature",
- "time": { },
- "geometry": { },
- "conformsTo": [
- "string"
], - "properties": {
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "string",
- "title": "string",
- "description": "string",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": "string",
- "roles": [
- "string"
]
}
], - "emails": [
- {
- "value": "user@example.com",
- "roles": [
- "string"
]
}
], - "addresses": [
- {
- "deliveryPoint": [
- "string"
], - "city": "string",
- "administrativeArea": "string",
- "postalCode": "string",
- "country": "string",
- "roles": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string"
}, - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
]
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
], - "schemes": [
- {
- "scheme-id": "string",
- "namespace": "string",
- "resolver": { }
}
]
}Fetch records from the record collection with id catalogId.
Every record in a dataset belongs to a collection. A dataset may consist of multiple record collections. A record collection is often a collection of records of a similar type, based on a common schema.
Use content negotiation to request HTML or GeoJSON.
| catalogId required | string |
Array of numbers or Array of numbers | |
| datetime | string |
| limit | integer [ 1 .. 10000 ] Default: 10 |
| q | Array of strings |
| type | Array of strings |
| externalId | Array of strings |
| ids | Array of strings |
| sortby | Array of strings non-empty [ items[+|-]?[A-Za-z_].* ] |
{- "type": "FeatureCollection",
- "features": [
- {
- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "properties": {
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "string",
- "title": "string",
- "description": "string",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": "string",
- "roles": [
- "string"
]
}
], - "emails": [
- {
- "value": "user@example.com",
- "roles": [
- "string"
]
}
], - "addresses": [
- {
- "deliveryPoint": [
- "string"
], - "city": "string",
- "administrativeArea": "string",
- "postalCode": "string",
- "country": "string",
- "roles": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string"
}, - "id": "string",
- "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
], - "time": { },
- "conformsTo": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
], - "timeStamp": "2019-08-24T14:15:22Z",
- "numberMatched": 0,
- "numberReturned": 0
}Fetch the record with id recordId from the record collection
with id catalogId.
Use content negotiation to request HTML or GeoJSON.
| catalogId required | string |
| recordId required | string |
{- "id": "string",
- "type": "Feature",
- "time": { },
- "geometry": { },
- "conformsTo": [
- "string"
], - "properties": {
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "string",
- "title": "string",
- "description": "string",
- "keywords": [
- "string"
], - "themes": [
- {
- "concepts": [
], - "scheme": "string"
}
], - "language": {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}, - "languages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "resourceLanguages": [
- {
- "code": "string",
- "name": "string",
- "alternate": "string",
- "dir": "ltr"
}
], - "externalIds": [
- {
- "scheme": "string",
- "value": "string"
}
], - "formats": [
- {
- "name": "string",
- "mediaType": "string"
}
], - "contacts": [
- {
- "identifier": "string",
- "name": "string",
- "position": "string",
- "organization": "string",
- "logo": {
- "rel": "icon",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}, - "phones": [
- {
- "value": "string",
- "roles": [
- "string"
]
}
], - "emails": [
- {
- "value": "user@example.com",
- "roles": [
- "string"
]
}
], - "addresses": [
- {
- "deliveryPoint": [
- "string"
], - "city": "string",
- "administrativeArea": "string",
- "postalCode": "string",
- "country": "string",
- "roles": [
- "string"
]
}
], - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "hoursOfService": "string",
- "contactInstructions": "string",
- "roles": [
- "string"
]
}
], - "license": "string",
- "rights": "string"
}, - "links": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
}
], - "linkTemplates": [
- {
- "rel": "string",
- "type": "string",
- "hreflang": "string",
- "title": "string",
- "length": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "uriTemplate": "string",
- "variables": { }
}
]
}