Get a dataset
GET
/dsp/catalog/datasets/{id}
const url = 'https://example.com/dsp/catalog/datasets/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/dsp/catalog/datasets/example \ --header 'Authorization: Bearer <token>'One dataset of the catalog, if it is visible to the caller.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The id of the dataset.
Responses
Section titled “Responses”A dcat:Dataset.
Media typeapplication/json
object
Example generated
{}Not authenticated.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}Not found.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}