Skip to content

Dataset Type

RudiThoeni edited this page Nov 28, 2024 · 2 revisions

What is the Type Property

Each dataset is identified by its Type. This type is used also in other Api Endpoints like the Distinct, Deprecated, Search Api.

The Types are visible in the _Meta Property of each Object by the Property Type.

"_Meta": {
"Id": "5CEA544EE3463...",
"Type": "accommodation",   -->Type
"Source": "noi",
"LastUpdate": "2024-03-06T16:45:06.2251485+00:00",
},

How to get all available Types

With this Call all available Types can be retrieved:
https://tourism.api.opendatahub.com/v1/Distinct?type=odhmetadata&fields=Type&getasarray=true

Clone this wiki locally