harvest
Harvest related operations
/harvest/backends
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/backends'
{
"id": "text",
"label": "text",
"extra_configs": [
{
"default": "text",
"description": "text",
"key": "text",
"label": "text"
}
],
"features": [
{
"default": "text",
"description": "text",
"key": "text",
"label": "text"
}
],
"filters": [
{
"description": "text",
"key": "text",
"label": "text",
"type": "text"
}
]
}
Success
/harvest/job/{ident}//
The page to fetch
The page size to fetch
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/job/{ident}/'
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
}
Success
/harvest/source/preview
An optional fields mask
Is this source active
If enabled, datasets not present on the remote source will be automatically archived
The configuration as key-value pairs
The source creation date
The source deletion date
The source description
The source unique identifier
The source display name
The source schedule (interval or cron expression)
The source base URL
The source backend
csw-dcat
csw-dcat
, csw-iso-19139
, dcat
, ckan
, dkan
, maaf
The last job for this source
The producer organization
The owner information
Has the source been validated
curl -L \
--request POST \
--url '//www.data.gouv.fr/api/1/harvest/source/preview' \
--header 'Content-Type: application/json' \
--data '{"active":false,"autoarchive":true,"config":{},"created_at":"2025-02-20T19:08:10.903Z","name":"text","url":"text","backend":"csw-dcat","last_job":{"created":"2025-02-20T19:08:10.903Z","id":"text","source":"text","status":"pending","errors":[{"level":"text","message":"text"}],"items":[{"created":"2025-02-20T19:08:10.903Z","ended":"2025-02-20T19:08:10.903Z","remote_id":"text","started":"2025-02-20T19:08:10.903Z","status":"pending","kwargs":{},"args":[],"errors":[{"level":"text","message":"text"}],"logs":[{"level":"text","message":"text"}],"dataservice":{"acronym":"text","archived_at":"2025-02-20T19:08:10.903Z","authorization_request_url":"text","availability":"99.99","base_api_url":"text","business_documentation_url":"text","created_at":"2025-02-20T19:08:10.903Z","datasets":{},"deleted_at":"2025-02-20T19:08:10.903Z","description":"text","endpoint_description_url":"text","extras":{},"has_token":true,"id":"text","is_restricted":true,"license":"text","metadata_modified_at":"2025-02-20T19:08:10.903Z","metrics":{},"private":true,"rate_limiting":"text","self_api_url":"text","self_web_url":"text","slug":"text","title":"My awesome API","format":"REST","contact_points":[{"contact_form":"text","email":"text","id":"text","name":"text","role":"text","organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}],"tags":["text"],"harvest":{"archived_at":"2025-02-20T19:08:10.903Z","backend":"text","created_at":"2025-02-20T19:08:10.903Z","domain":"text","id":"text","last_update":"2025-02-20T19:08:10.903Z","remote_id":"text","remote_url":"text","source_id":"text","source_url":"text","uri":"text"},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}},"dataset":{"class":"text","id":"text","acronym":"text","page":"text","title":"text","uri":"text"}}]},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"},"validation":{"state":"pending","by":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}}'
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"acronym": "text",
"archived": "2025-02-20T19:08:10.903Z",
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"featured": true,
"frequency_date": "2025-02-20T19:08:10.903Z",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"last_update": "2025-02-20T19:08:10.903Z",
"license": "notspecified",
"metrics": {},
"page": "text",
"private": true,
"quality": {},
"slug": "text",
"title": "text",
"uri": "text",
"frequency": "unknown",
"badges": [
{
"kind": "text"
}
],
"tags": [
"text"
],
"harvest": {
"archived": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"ckan_name": "text",
"ckan_source": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"dct_identifier": "text",
"domain": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"spatial": {
"granularity": "other",
"zones": [
"text"
],
"geom": {
"type": "Point",
"coordinates": [
{}
]
}
},
"temporal_coverage": {
"end": "2025-02-20T19:08:10.903Z",
"start": "2025-02-20T19:08:10.903Z"
},
"community_resources": [
{
"created_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"filesize": 1,
"format": "text",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"latest": "text",
"metrics": {},
"mime": "text",
"preview_url": "text",
"title": "text",
"url": "text",
"filetype": "file",
"type": "main",
"checksum": {
"value": "text",
"type": "sha1"
},
"harvest": {
"created_at": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"resources": [
{
"created_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"filesize": 1,
"format": "text",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"latest": "text",
"metrics": {},
"mime": "text",
"preview_url": "text",
"title": "text",
"url": "text",
"filetype": "file",
"type": "main",
"checksum": {
"value": "text",
"type": "sha1"
},
"harvest": {
"created_at": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
}
}
]
}
}
]
}
Success
/harvest/source/{ident}
A source ID or slug
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/source/{ident}
A source ID or slug
An optional fields mask
Is this source active
If enabled, datasets not present on the remote source will be automatically archived
The configuration as key-value pairs
The source creation date
The source deletion date
The source description
The source unique identifier
The source display name
The source schedule (interval or cron expression)
The source base URL
The source backend
csw-dcat
csw-dcat
, csw-iso-19139
, dcat
, ckan
, dkan
, maaf
The last job for this source
The producer organization
The owner information
Has the source been validated
curl -L \
--request PUT \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}' \
--header 'Content-Type: application/json' \
--data '{"active":false,"autoarchive":true,"config":{},"created_at":"2025-02-20T19:08:10.903Z","name":"text","url":"text","backend":"csw-dcat","last_job":{"created":"2025-02-20T19:08:10.903Z","id":"text","source":"text","status":"pending","errors":[{"level":"text","message":"text"}],"items":[{"created":"2025-02-20T19:08:10.903Z","ended":"2025-02-20T19:08:10.903Z","remote_id":"text","started":"2025-02-20T19:08:10.903Z","status":"pending","kwargs":{},"args":[],"errors":[{"level":"text","message":"text"}],"logs":[{"level":"text","message":"text"}],"dataservice":{"acronym":"text","archived_at":"2025-02-20T19:08:10.903Z","authorization_request_url":"text","availability":"99.99","base_api_url":"text","business_documentation_url":"text","created_at":"2025-02-20T19:08:10.903Z","datasets":{},"deleted_at":"2025-02-20T19:08:10.903Z","description":"text","endpoint_description_url":"text","extras":{},"has_token":true,"id":"text","is_restricted":true,"license":"text","metadata_modified_at":"2025-02-20T19:08:10.903Z","metrics":{},"private":true,"rate_limiting":"text","self_api_url":"text","self_web_url":"text","slug":"text","title":"My awesome API","format":"REST","contact_points":[{"contact_form":"text","email":"text","id":"text","name":"text","role":"text","organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}],"tags":["text"],"harvest":{"archived_at":"2025-02-20T19:08:10.903Z","backend":"text","created_at":"2025-02-20T19:08:10.903Z","domain":"text","id":"text","last_update":"2025-02-20T19:08:10.903Z","remote_id":"text","remote_url":"text","source_id":"text","source_url":"text","uri":"text"},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}},"dataset":{"class":"text","id":"text","acronym":"text","page":"text","title":"text","uri":"text"}}]},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"},"validation":{"state":"pending","by":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}}'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/source/{ident}
A source ID or slug
An optional fields mask
curl -L \
--request DELETE \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/source/{ident}/jobs/
The page to fetch
The page size to fetch
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}/jobs/'
{
"next_page": "text",
"page": 1,
"page_size": 1,
"previous_page": "text",
"total": 1,
"data": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
}
]
}
Success
/harvest/source/{ident}/preview
A source ID or slug
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}/preview'
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"acronym": "text",
"archived": "2025-02-20T19:08:10.903Z",
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"featured": true,
"frequency_date": "2025-02-20T19:08:10.903Z",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"last_update": "2025-02-20T19:08:10.903Z",
"license": "notspecified",
"metrics": {},
"page": "text",
"private": true,
"quality": {},
"slug": "text",
"title": "text",
"uri": "text",
"frequency": "unknown",
"badges": [
{
"kind": "text"
}
],
"tags": [
"text"
],
"harvest": {
"archived": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"ckan_name": "text",
"ckan_source": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"dct_identifier": "text",
"domain": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"spatial": {
"granularity": "other",
"zones": [
"text"
],
"geom": {
"type": "Point",
"coordinates": [
{}
]
}
},
"temporal_coverage": {
"end": "2025-02-20T19:08:10.903Z",
"start": "2025-02-20T19:08:10.903Z"
},
"community_resources": [
{
"created_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"filesize": 1,
"format": "text",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"latest": "text",
"metrics": {},
"mime": "text",
"preview_url": "text",
"title": "text",
"url": "text",
"filetype": "file",
"type": "main",
"checksum": {
"value": "text",
"type": "sha1"
},
"harvest": {
"created_at": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"resources": [
{
"created_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"extras": {},
"filesize": 1,
"format": "text",
"id": "text",
"last_modified": "2025-02-20T19:08:10.903Z",
"latest": "text",
"metrics": {},
"mime": "text",
"preview_url": "text",
"title": "text",
"url": "text",
"filetype": "file",
"type": "main",
"checksum": {
"value": "text",
"type": "sha1"
},
"harvest": {
"created_at": "2025-02-20T19:08:10.903Z",
"modified_at": "2025-02-20T19:08:10.903Z",
"uri": "text"
},
"internal": {
"created_at_internal": "2025-02-20T19:08:10.903Z",
"last_modified_internal": "2025-02-20T19:08:10.903Z"
},
"schema": {
"name": "text",
"url": "text",
"version": "text"
}
}
]
}
}
]
}
Success
/harvest/source/{ident}/schedule
A source ID or slug
An optional fields mask
curl -L \
--request POST \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}/schedule' \
--header 'Content-Type: application/json'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/source/{ident}/schedule
A source ID or slug
An optional fields mask
curl -L \
--request DELETE \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}/schedule'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/source/{ident}/validate
A source ID or slug
An optional fields mask
A comment about the validation. Required on rejection
Date date on which validation was performed
Is it validated or not
pending
pending
, accepted
, refused
Who performed the validation
curl -L \
--request POST \
--url '//www.data.gouv.fr/api/1/harvest/source/{ident}/validate' \
--header 'Content-Type: application/json' \
--data '{"state":"pending","by":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
/harvest/sources/
The page to fetch
The page size to fetch
The organization or user ID to filter on
Include sources flaggued as deleted
An optional fields mask
curl -L \
--url '//www.data.gouv.fr/api/1/harvest/sources/'
[
{
"next_page": "text",
"page": 1,
"page_size": 1,
"previous_page": "text",
"total": 1,
"data": [
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
]
}
]
Success
/harvest/sources/
An optional fields mask
Is this source active
If enabled, datasets not present on the remote source will be automatically archived
The configuration as key-value pairs
The source creation date
The source deletion date
The source description
The source unique identifier
The source display name
The source schedule (interval or cron expression)
The source base URL
The source backend
csw-dcat
csw-dcat
, csw-iso-19139
, dcat
, ckan
, dkan
, maaf
The last job for this source
The producer organization
The owner information
Has the source been validated
curl -L \
--request POST \
--url '//www.data.gouv.fr/api/1/harvest/sources/' \
--header 'Content-Type: application/json' \
--data '{"active":false,"autoarchive":true,"config":{},"created_at":"2025-02-20T19:08:10.903Z","name":"text","url":"text","backend":"csw-dcat","last_job":{"created":"2025-02-20T19:08:10.903Z","id":"text","source":"text","status":"pending","errors":[{"level":"text","message":"text"}],"items":[{"created":"2025-02-20T19:08:10.903Z","ended":"2025-02-20T19:08:10.903Z","remote_id":"text","started":"2025-02-20T19:08:10.903Z","status":"pending","kwargs":{},"args":[],"errors":[{"level":"text","message":"text"}],"logs":[{"level":"text","message":"text"}],"dataservice":{"acronym":"text","archived_at":"2025-02-20T19:08:10.903Z","authorization_request_url":"text","availability":"99.99","base_api_url":"text","business_documentation_url":"text","created_at":"2025-02-20T19:08:10.903Z","datasets":{},"deleted_at":"2025-02-20T19:08:10.903Z","description":"text","endpoint_description_url":"text","extras":{},"has_token":true,"id":"text","is_restricted":true,"license":"text","metadata_modified_at":"2025-02-20T19:08:10.903Z","metrics":{},"private":true,"rate_limiting":"text","self_api_url":"text","self_web_url":"text","slug":"text","title":"My awesome API","format":"REST","contact_points":[{"contact_form":"text","email":"text","id":"text","name":"text","role":"text","organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}],"tags":["text"],"harvest":{"archived_at":"2025-02-20T19:08:10.903Z","backend":"text","created_at":"2025-02-20T19:08:10.903Z","domain":"text","id":"text","last_update":"2025-02-20T19:08:10.903Z","remote_id":"text","remote_url":"text","source_id":"text","source_url":"text","uri":"text"},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}},"dataset":{"class":"text","id":"text","acronym":"text","page":"text","title":"text","uri":"text"}}]},"organization":{"class":"text","id":"text","acronym":"text","logo":"text","logo_thumbnail":"text","name":"text","page":"text","slug":"text","uri":"text","badges":[{"kind":"text"}]},"owner":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"},"validation":{"state":"pending","by":{"class":"text","id":"text","avatar":"text","avatar_thumbnail":"text","first_name":"text","last_name":"text","page":"text","slug":"text","uri":"text"}}}'
{
"active": false,
"autoarchive": true,
"config": {},
"created_at": "2025-02-20T19:08:10.903Z",
"deleted": "2025-02-20T19:08:10.903Z",
"description": "text",
"id": "text",
"name": "text",
"schedule": "text",
"url": "text",
"backend": "csw-dcat",
"last_job": {
"created": "2025-02-20T19:08:10.903Z",
"id": "text",
"source": "text",
"status": "pending",
"errors": [
{
"level": "text",
"message": "text"
}
],
"items": [
{
"created": "2025-02-20T19:08:10.903Z",
"ended": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"started": "2025-02-20T19:08:10.903Z",
"status": "pending",
"kwargs": {},
"args": [],
"errors": [
{
"level": "text",
"message": "text"
}
],
"logs": [
{
"level": "text",
"message": "text"
}
],
"dataservice": {
"acronym": "text",
"archived_at": "2025-02-20T19:08:10.903Z",
"authorization_request_url": "text",
"availability": "99.99",
"base_api_url": "text",
"business_documentation_url": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"datasets": {},
"deleted_at": "2025-02-20T19:08:10.903Z",
"description": "text",
"endpoint_description_url": "text",
"extras": {},
"has_token": true,
"id": "text",
"is_restricted": true,
"license": "text",
"metadata_modified_at": "2025-02-20T19:08:10.903Z",
"metrics": {},
"private": true,
"rate_limiting": "text",
"self_api_url": "text",
"self_web_url": "text",
"slug": "text",
"title": "My awesome API",
"format": "REST",
"contact_points": [
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"role": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"tags": [
"text"
],
"harvest": {
"archived_at": "2025-02-20T19:08:10.903Z",
"backend": "text",
"created_at": "2025-02-20T19:08:10.903Z",
"domain": "text",
"id": "text",
"last_update": "2025-02-20T19:08:10.903Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"source_url": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
}
}
]
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text",
"badges": [
{
"kind": "text"
}
]
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"validation": {
"state": "pending",
"by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
}
Success
Dernière mise à jour
Cet article vous a-t-il été utile ?