site

Site global namespace

Fetch site activity, optionally filtered by user of org

GET//www.data.gouv.fr/api/1/activity
Query parameters
Header parameters
Response

Success

Body
dataarray of Activity (object)

The page data

next_pagestring

The next page URL if exists

page*integer

The current page

page_size*integer

The page size used for pagination

previous_pagestring

The previous page URL if exists

total*integer

The total paginated items

Request
const response = await fetch('//www.data.gouv.fr/api/1/activity', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "data": [
    {
      "actor": {
        "class": "text",
        "id": "text",
        "avatar": "text",
        "avatar_thumbnail": "text",
        "first_name": "text",
        "last_name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      },
      "created_at": "2024-10-23T15:29:51.395Z",
      "icon": "text",
      "key": "text",
      "label": "text",
      "organization": {
        "class": "text",
        "id": "text",
        "acronym": "text",
        "badges": [
          {
            "kind": "text"
          }
        ],
        "logo": "text",
        "logo_thumbnail": "text",
        "name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      },
      "related_to": "text",
      "related_to_id": "text",
      "related_to_kind": "text",
      "related_to_url": "text"
    }
  ],
  "next_page": "text",
  "previous_page": "text"
}

Site-wide variables

GET//www.data.gouv.fr/api/1/site/
Header parameters
Response

Success

Body
id*string

The Site unique identifier

metricsobject

The associated metrics

title*string

The site display title

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "text",
  "title": "text"
}

Root RDF endpoint with content negociation handling

GET//www.data.gouv.fr/api/1/site/catalog
Response

Success

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/catalog', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

GET//www.data.gouv.fr/api/1/site/catalog.{format}
Path parameters
format*string
Response

Success

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/catalog.{format}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

GET//www.data.gouv.fr/api/1/site/context.jsonld
Response

Success

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/context.jsonld', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Root RDF endpoint with content negociation handling

GET//www.data.gouv.fr/api/1/site/data.{format}
Path parameters
format*string
Response

Success

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/data.{format}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

List homepage datasets

GET//www.data.gouv.fr/api/1/site/home/datasets/
Header parameters
Response

Success

Body
acronymstring

An optional dataset acronym

archivedstring (date-time)

The archival date if archived

badgesarray of Badge (object)

The dataset badges

community_resourcesarray of all of
contact_pointall of

The dataset's contact points

created_at*string (date-time)

This date is computed between harvested creation date if any and site's internal creation date

deletedstring (date-time)

The deletion date if deleted

description*string (markdown)

The dataset description in markdown

extrasobject

Extras attributes as key-value pairs

featuredboolean

Is the dataset featured

frequency*enum

The update frequency

Example: "unknown"
unknownpunctualcontinuoushourlyfourTimesADaythreeTimesADaysemidailydailyfourTimesAWeekthreeTimesAWeeksemiweeklyweeklybiweeklythreeTimesAMonthsemimonthlymonthlybimonthlyquarterlythreeTimesAYearsemiannualannualbiennialtriennialquinquennialirregular
frequency_datestring (date-time)

Next expected update date, you will be notified once that date is reached.

harvestall of

Dataset harvest metadata attributes

idstring

The dataset identifier

internalall of

Site internal and specific object's data

last_modified*string (date-time)

The dataset last modification date

last_update*string (date-time)

The resources last modification date

licensestring

The dataset license

metricsobject

The dataset metrics

organizationall of

The producer organization

ownerall of

The user information

page*string

The dataset page URL

privateboolean

Is the dataset private to the owner or the organization

qualityobject

The dataset quality

resourcesarray of all of
schemaall of

Reference to the associated schema

slug*string

The dataset permalink string

spatialall of

The spatial coverage

tagsarray of string
temporal_coverageall of

The temporal coverage

title*string

The dataset title

uri*string

The dataset API URI

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/home/datasets/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "acronym": "text",
    "archived": "2024-10-23T15:29:51.395Z",
    "badges": [
      {
        "kind": "text"
      }
    ],
    "community_resources": [
      {
        "checksum": {
          "type": "sha1",
          "value": "text"
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "filetype": "file",
        "format": "text",
        "harvest": {
          "created_at": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "latest": "text",
        "mime": "text",
        "preview_url": "text",
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "title": "text",
        "type": "main",
        "url": "text",
        "dataset": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "page": "text",
          "title": "text",
          "uri": "text"
        },
        "organization": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "badges": [
            {
              "kind": "text"
            }
          ],
          "logo": "text",
          "logo_thumbnail": "text",
          "name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "owner": {
          "class": "text",
          "id": "text",
          "avatar": "text",
          "avatar_thumbnail": "text",
          "first_name": "text",
          "last_name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        }
      }
    ],
    "contact_point": {
      "email": "text",
      "id": "text",
      "name": "text",
      "organization": {
        "class": "text",
        "id": "text",
        "acronym": "text",
        "badges": [
          {
            "kind": "text"
          }
        ],
        "logo": "text",
        "logo_thumbnail": "text",
        "name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      },
      "owner": {
        "class": "text",
        "id": "text",
        "avatar": "text",
        "avatar_thumbnail": "text",
        "first_name": "text",
        "last_name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      }
    },
    "created_at": "2024-10-23T15:29:51.395Z",
    "deleted": "2024-10-23T15:29:51.395Z",
    "description": "text",
    "featured": false,
    "frequency": "unknown",
    "frequency_date": "2024-10-23T15:29:51.395Z",
    "harvest": {
      "archived": "text",
      "archived_at": "2024-10-23T15:29:51.395Z",
      "backend": "text",
      "ckan_name": "text",
      "ckan_source": "text",
      "created_at": "2024-10-23T15:29:51.395Z",
      "dct_identifier": "text",
      "domain": "text",
      "last_update": "2024-10-23T15:29:51.395Z",
      "modified_at": "2024-10-23T15:29:51.395Z",
      "remote_id": "text",
      "remote_url": "text",
      "source_id": "text",
      "uri": "text"
    },
    "id": "text",
    "internal": {
      "created_at_internal": "2024-10-23T15:29:51.395Z",
      "last_modified_internal": "2024-10-23T15:29:51.395Z"
    },
    "last_modified": "2024-10-23T15:29:51.395Z",
    "last_update": "2024-10-23T15:29:51.395Z",
    "license": "notspecified",
    "organization": {
      "class": "text",
      "id": "text",
      "acronym": "text",
      "badges": [
        {
          "kind": "text"
        }
      ],
      "logo": "text",
      "logo_thumbnail": "text",
      "name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "owner": {
      "class": "text",
      "id": "text",
      "avatar": "text",
      "avatar_thumbnail": "text",
      "first_name": "text",
      "last_name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "page": "text",
    "private": false,
    "resources": [
      {
        "checksum": {
          "type": "sha1",
          "value": "text"
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "filetype": "file",
        "format": "text",
        "harvest": {
          "created_at": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "latest": "text",
        "mime": "text",
        "preview_url": "text",
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "title": "text",
        "type": "main",
        "url": "text"
      }
    ],
    "schema": {
      "name": "text",
      "url": "text",
      "version": "text"
    },
    "slug": "text",
    "spatial": {
      "geom": {
        "coordinates": [],
        "type": "Point"
      },
      "granularity": "other",
      "zones": [
        "text"
      ]
    },
    "tags": [
      "text"
    ],
    "temporal_coverage": {
      "end": "2024-10-23T15:29:51.395Z",
      "start": "2024-10-23T15:29:51.395Z"
    },
    "title": "text",
    "uri": "text"
  }
]

Set the homepage datasets editorial selection

PUT//www.data.gouv.fr/api/1/site/home/datasets/
Header parameters
Body

Dataset IDs to put in homepage

itemsstring
Response

Success

Body
acronymstring

An optional dataset acronym

archivedstring (date-time)

The archival date if archived

badgesarray of Badge (object)

The dataset badges

community_resourcesarray of all of
contact_pointall of

The dataset's contact points

created_at*string (date-time)

This date is computed between harvested creation date if any and site's internal creation date

deletedstring (date-time)

The deletion date if deleted

description*string (markdown)

The dataset description in markdown

extrasobject

Extras attributes as key-value pairs

featuredboolean

Is the dataset featured

frequency*enum

The update frequency

Example: "unknown"
unknownpunctualcontinuoushourlyfourTimesADaythreeTimesADaysemidailydailyfourTimesAWeekthreeTimesAWeeksemiweeklyweeklybiweeklythreeTimesAMonthsemimonthlymonthlybimonthlyquarterlythreeTimesAYearsemiannualannualbiennialtriennialquinquennialirregular
frequency_datestring (date-time)

Next expected update date, you will be notified once that date is reached.

harvestall of

Dataset harvest metadata attributes

idstring

The dataset identifier

internalall of

Site internal and specific object's data

last_modified*string (date-time)

The dataset last modification date

last_update*string (date-time)

The resources last modification date

licensestring

The dataset license

metricsobject

The dataset metrics

organizationall of

The producer organization

ownerall of

The user information

page*string

The dataset page URL

privateboolean

Is the dataset private to the owner or the organization

qualityobject

The dataset quality

resourcesarray of all of
schemaall of

Reference to the associated schema

slug*string

The dataset permalink string

spatialall of

The spatial coverage

tagsarray of string
temporal_coverageall of

The temporal coverage

title*string

The dataset title

uri*string

The dataset API URI

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/home/datasets/', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify([
      "text"
    ]),
});
const data = await response.json();
Response
[
  {
    "acronym": "text",
    "archived": "2024-10-23T15:29:51.395Z",
    "badges": [
      {
        "kind": "text"
      }
    ],
    "community_resources": [
      {
        "checksum": {
          "type": "sha1",
          "value": "text"
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "filetype": "file",
        "format": "text",
        "harvest": {
          "created_at": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "latest": "text",
        "mime": "text",
        "preview_url": "text",
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "title": "text",
        "type": "main",
        "url": "text",
        "dataset": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "page": "text",
          "title": "text",
          "uri": "text"
        },
        "organization": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "badges": [
            {
              "kind": "text"
            }
          ],
          "logo": "text",
          "logo_thumbnail": "text",
          "name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "owner": {
          "class": "text",
          "id": "text",
          "avatar": "text",
          "avatar_thumbnail": "text",
          "first_name": "text",
          "last_name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        }
      }
    ],
    "contact_point": {
      "email": "text",
      "id": "text",
      "name": "text",
      "organization": {
        "class": "text",
        "id": "text",
        "acronym": "text",
        "badges": [
          {
            "kind": "text"
          }
        ],
        "logo": "text",
        "logo_thumbnail": "text",
        "name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      },
      "owner": {
        "class": "text",
        "id": "text",
        "avatar": "text",
        "avatar_thumbnail": "text",
        "first_name": "text",
        "last_name": "text",
        "page": "text",
        "slug": "text",
        "uri": "text"
      }
    },
    "created_at": "2024-10-23T15:29:51.395Z",
    "deleted": "2024-10-23T15:29:51.395Z",
    "description": "text",
    "featured": false,
    "frequency": "unknown",
    "frequency_date": "2024-10-23T15:29:51.395Z",
    "harvest": {
      "archived": "text",
      "archived_at": "2024-10-23T15:29:51.395Z",
      "backend": "text",
      "ckan_name": "text",
      "ckan_source": "text",
      "created_at": "2024-10-23T15:29:51.395Z",
      "dct_identifier": "text",
      "domain": "text",
      "last_update": "2024-10-23T15:29:51.395Z",
      "modified_at": "2024-10-23T15:29:51.395Z",
      "remote_id": "text",
      "remote_url": "text",
      "source_id": "text",
      "uri": "text"
    },
    "id": "text",
    "internal": {
      "created_at_internal": "2024-10-23T15:29:51.395Z",
      "last_modified_internal": "2024-10-23T15:29:51.395Z"
    },
    "last_modified": "2024-10-23T15:29:51.395Z",
    "last_update": "2024-10-23T15:29:51.395Z",
    "license": "notspecified",
    "organization": {
      "class": "text",
      "id": "text",
      "acronym": "text",
      "badges": [
        {
          "kind": "text"
        }
      ],
      "logo": "text",
      "logo_thumbnail": "text",
      "name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "owner": {
      "class": "text",
      "id": "text",
      "avatar": "text",
      "avatar_thumbnail": "text",
      "first_name": "text",
      "last_name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "page": "text",
    "private": false,
    "resources": [
      {
        "checksum": {
          "type": "sha1",
          "value": "text"
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "filetype": "file",
        "format": "text",
        "harvest": {
          "created_at": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "latest": "text",
        "mime": "text",
        "preview_url": "text",
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "title": "text",
        "type": "main",
        "url": "text"
      }
    ],
    "schema": {
      "name": "text",
      "url": "text",
      "version": "text"
    },
    "slug": "text",
    "spatial": {
      "geom": {
        "coordinates": [],
        "type": "Point"
      },
      "granularity": "other",
      "zones": [
        "text"
      ]
    },
    "tags": [
      "text"
    ],
    "temporal_coverage": {
      "end": "2024-10-23T15:29:51.395Z",
      "start": "2024-10-23T15:29:51.395Z"
    },
    "title": "text",
    "uri": "text"
  }
]

List homepage featured reuses

GET//www.data.gouv.fr/api/1/site/home/reuses/
Header parameters
Response

Success

Body
archivedstring (date-time)
badgesarray of all of
created_at*string (date-time)
datasetsarray of Dataset (object)
deletedstring (date-time)
description*string (markdown)
extrasobject
featuredboolean
id*string
imagestring

URL of the image

image_thumbnailstring

URL of the cropped and squared image (500x500)

last_modified*string (date-time)
metricsobject
organizationall of

Only present if owner is not set. Can only be set to an organization of the current authenticated user.

ownerall of

Only present if organization is not set. Can only be set to the current authenticated user.

pagestring

Link to the udata web page for this reuse

privateboolean
slug*string
tagsarray of string
title*string
topic*enum
Example: "health"
healthtransport_and_mobilityhousing_and_developmentfood_and_agricultureculture_and_recreationeconomy_and_businessenvironment_and_energywork_and_trainingpolitics_and_public_lifesafety_and_securityeducation_and_researchsociety_and_demographylaw_and_justiceopen_data_toolsothers
type*enum
Example: "api"
apiapplicationideanews_articlepaperpostvisualizationhardware
uristring

Link to the API endpoint for this reuse

url*string

The remote URL (website)

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/home/reuses/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "archived": "2024-10-23T15:29:51.395Z",
    "badges": [
      {
        "kind": "text"
      }
    ],
    "created_at": "2024-10-23T15:29:51.395Z",
    "datasets": [
      {
        "acronym": "text",
        "archived": "2024-10-23T15:29:51.395Z",
        "badges": [
          {
            "kind": "text"
          }
        ],
        "community_resources": [
          {
            "checksum": {
              "type": "sha1",
              "value": "text"
            },
            "created_at": "2024-10-23T15:29:51.395Z",
            "description": "text",
            "filetype": "file",
            "format": "text",
            "harvest": {
              "created_at": "2024-10-23T15:29:51.395Z",
              "modified_at": "2024-10-23T15:29:51.395Z",
              "uri": "text"
            },
            "id": "text",
            "internal": {
              "created_at_internal": "2024-10-23T15:29:51.395Z",
              "last_modified_internal": "2024-10-23T15:29:51.395Z"
            },
            "last_modified": "2024-10-23T15:29:51.395Z",
            "latest": "text",
            "mime": "text",
            "preview_url": "text",
            "schema": {
              "name": "text",
              "url": "text",
              "version": "text"
            },
            "title": "text",
            "type": "main",
            "url": "text",
            "dataset": {
              "class": "text",
              "id": "text",
              "acronym": "text",
              "page": "text",
              "title": "text",
              "uri": "text"
            },
            "organization": {
              "class": "text",
              "id": "text",
              "acronym": "text",
              "badges": [
                {
                  "kind": "text"
                }
              ],
              "logo": "text",
              "logo_thumbnail": "text",
              "name": "text",
              "page": "text",
              "slug": "text",
              "uri": "text"
            },
            "owner": {
              "class": "text",
              "id": "text",
              "avatar": "text",
              "avatar_thumbnail": "text",
              "first_name": "text",
              "last_name": "text",
              "page": "text",
              "slug": "text",
              "uri": "text"
            }
          }
        ],
        "contact_point": {
          "email": "text",
          "id": "text",
          "name": "text",
          "organization": {
            "class": "text",
            "id": "text",
            "acronym": "text",
            "badges": [
              {
                "kind": "text"
              }
            ],
            "logo": "text",
            "logo_thumbnail": "text",
            "name": "text",
            "page": "text",
            "slug": "text",
            "uri": "text"
          },
          "owner": {
            "class": "text",
            "id": "text",
            "avatar": "text",
            "avatar_thumbnail": "text",
            "first_name": "text",
            "last_name": "text",
            "page": "text",
            "slug": "text",
            "uri": "text"
          }
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "deleted": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "featured": false,
        "frequency": "unknown",
        "frequency_date": "2024-10-23T15:29:51.395Z",
        "harvest": {
          "archived": "text",
          "archived_at": "2024-10-23T15:29:51.395Z",
          "backend": "text",
          "ckan_name": "text",
          "ckan_source": "text",
          "created_at": "2024-10-23T15:29:51.395Z",
          "dct_identifier": "text",
          "domain": "text",
          "last_update": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "remote_id": "text",
          "remote_url": "text",
          "source_id": "text",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "last_update": "2024-10-23T15:29:51.395Z",
        "license": "notspecified",
        "organization": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "badges": [
            {
              "kind": "text"
            }
          ],
          "logo": "text",
          "logo_thumbnail": "text",
          "name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "owner": {
          "class": "text",
          "id": "text",
          "avatar": "text",
          "avatar_thumbnail": "text",
          "first_name": "text",
          "last_name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "page": "text",
        "private": false,
        "resources": [
          {
            "checksum": {
              "type": "sha1",
              "value": "text"
            },
            "created_at": "2024-10-23T15:29:51.395Z",
            "description": "text",
            "filetype": "file",
            "format": "text",
            "harvest": {
              "created_at": "2024-10-23T15:29:51.395Z",
              "modified_at": "2024-10-23T15:29:51.395Z",
              "uri": "text"
            },
            "id": "text",
            "internal": {
              "created_at_internal": "2024-10-23T15:29:51.395Z",
              "last_modified_internal": "2024-10-23T15:29:51.395Z"
            },
            "last_modified": "2024-10-23T15:29:51.395Z",
            "latest": "text",
            "mime": "text",
            "preview_url": "text",
            "schema": {
              "name": "text",
              "url": "text",
              "version": "text"
            },
            "title": "text",
            "type": "main",
            "url": "text"
          }
        ],
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "slug": "text",
        "spatial": {
          "geom": {
            "coordinates": [],
            "type": "Point"
          },
          "granularity": "other",
          "zones": [
            "text"
          ]
        },
        "tags": [
          "text"
        ],
        "temporal_coverage": {
          "end": "2024-10-23T15:29:51.395Z",
          "start": "2024-10-23T15:29:51.395Z"
        },
        "title": "text",
        "uri": "text"
      }
    ],
    "deleted": "2024-10-23T15:29:51.395Z",
    "description": "text",
    "featured": false,
    "id": "text",
    "image": "text",
    "image_thumbnail": "text",
    "last_modified": "2024-10-23T15:29:51.395Z",
    "organization": {
      "class": "text",
      "id": "text",
      "acronym": "text",
      "badges": [
        {
          "kind": "text"
        }
      ],
      "logo": "text",
      "logo_thumbnail": "text",
      "name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "owner": {
      "class": "text",
      "id": "text",
      "avatar": "text",
      "avatar_thumbnail": "text",
      "first_name": "text",
      "last_name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "page": "text",
    "private": false,
    "slug": "text",
    "tags": [
      "text"
    ],
    "title": "text",
    "topic": "health",
    "type": "api",
    "uri": "text",
    "url": "text"
  }
]

Set the homepage reuses editorial selection

PUT//www.data.gouv.fr/api/1/site/home/reuses/
Header parameters
Body

Reuse IDs to put in homepage

itemsstring
Response

Success

Body
archivedstring (date-time)
badgesarray of all of
created_at*string (date-time)
datasetsarray of Dataset (object)
deletedstring (date-time)
description*string (markdown)
extrasobject
featuredboolean
id*string
imagestring

URL of the image

image_thumbnailstring

URL of the cropped and squared image (500x500)

last_modified*string (date-time)
metricsobject
organizationall of

Only present if owner is not set. Can only be set to an organization of the current authenticated user.

ownerall of

Only present if organization is not set. Can only be set to the current authenticated user.

pagestring

Link to the udata web page for this reuse

privateboolean
slug*string
tagsarray of string
title*string
topic*enum
Example: "health"
healthtransport_and_mobilityhousing_and_developmentfood_and_agricultureculture_and_recreationeconomy_and_businessenvironment_and_energywork_and_trainingpolitics_and_public_lifesafety_and_securityeducation_and_researchsociety_and_demographylaw_and_justiceopen_data_toolsothers
type*enum
Example: "api"
apiapplicationideanews_articlepaperpostvisualizationhardware
uristring

Link to the API endpoint for this reuse

url*string

The remote URL (website)

Request
const response = await fetch('//www.data.gouv.fr/api/1/site/home/reuses/', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify([
      "text"
    ]),
});
const data = await response.json();
Response
[
  {
    "archived": "2024-10-23T15:29:51.395Z",
    "badges": [
      {
        "kind": "text"
      }
    ],
    "created_at": "2024-10-23T15:29:51.395Z",
    "datasets": [
      {
        "acronym": "text",
        "archived": "2024-10-23T15:29:51.395Z",
        "badges": [
          {
            "kind": "text"
          }
        ],
        "community_resources": [
          {
            "checksum": {
              "type": "sha1",
              "value": "text"
            },
            "created_at": "2024-10-23T15:29:51.395Z",
            "description": "text",
            "filetype": "file",
            "format": "text",
            "harvest": {
              "created_at": "2024-10-23T15:29:51.395Z",
              "modified_at": "2024-10-23T15:29:51.395Z",
              "uri": "text"
            },
            "id": "text",
            "internal": {
              "created_at_internal": "2024-10-23T15:29:51.395Z",
              "last_modified_internal": "2024-10-23T15:29:51.395Z"
            },
            "last_modified": "2024-10-23T15:29:51.395Z",
            "latest": "text",
            "mime": "text",
            "preview_url": "text",
            "schema": {
              "name": "text",
              "url": "text",
              "version": "text"
            },
            "title": "text",
            "type": "main",
            "url": "text",
            "dataset": {
              "class": "text",
              "id": "text",
              "acronym": "text",
              "page": "text",
              "title": "text",
              "uri": "text"
            },
            "organization": {
              "class": "text",
              "id": "text",
              "acronym": "text",
              "badges": [
                {
                  "kind": "text"
                }
              ],
              "logo": "text",
              "logo_thumbnail": "text",
              "name": "text",
              "page": "text",
              "slug": "text",
              "uri": "text"
            },
            "owner": {
              "class": "text",
              "id": "text",
              "avatar": "text",
              "avatar_thumbnail": "text",
              "first_name": "text",
              "last_name": "text",
              "page": "text",
              "slug": "text",
              "uri": "text"
            }
          }
        ],
        "contact_point": {
          "email": "text",
          "id": "text",
          "name": "text",
          "organization": {
            "class": "text",
            "id": "text",
            "acronym": "text",
            "badges": [
              {
                "kind": "text"
              }
            ],
            "logo": "text",
            "logo_thumbnail": "text",
            "name": "text",
            "page": "text",
            "slug": "text",
            "uri": "text"
          },
          "owner": {
            "class": "text",
            "id": "text",
            "avatar": "text",
            "avatar_thumbnail": "text",
            "first_name": "text",
            "last_name": "text",
            "page": "text",
            "slug": "text",
            "uri": "text"
          }
        },
        "created_at": "2024-10-23T15:29:51.395Z",
        "deleted": "2024-10-23T15:29:51.395Z",
        "description": "text",
        "featured": false,
        "frequency": "unknown",
        "frequency_date": "2024-10-23T15:29:51.395Z",
        "harvest": {
          "archived": "text",
          "archived_at": "2024-10-23T15:29:51.395Z",
          "backend": "text",
          "ckan_name": "text",
          "ckan_source": "text",
          "created_at": "2024-10-23T15:29:51.395Z",
          "dct_identifier": "text",
          "domain": "text",
          "last_update": "2024-10-23T15:29:51.395Z",
          "modified_at": "2024-10-23T15:29:51.395Z",
          "remote_id": "text",
          "remote_url": "text",
          "source_id": "text",
          "uri": "text"
        },
        "id": "text",
        "internal": {
          "created_at_internal": "2024-10-23T15:29:51.395Z",
          "last_modified_internal": "2024-10-23T15:29:51.395Z"
        },
        "last_modified": "2024-10-23T15:29:51.395Z",
        "last_update": "2024-10-23T15:29:51.395Z",
        "license": "notspecified",
        "organization": {
          "class": "text",
          "id": "text",
          "acronym": "text",
          "badges": [
            {
              "kind": "text"
            }
          ],
          "logo": "text",
          "logo_thumbnail": "text",
          "name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "owner": {
          "class": "text",
          "id": "text",
          "avatar": "text",
          "avatar_thumbnail": "text",
          "first_name": "text",
          "last_name": "text",
          "page": "text",
          "slug": "text",
          "uri": "text"
        },
        "page": "text",
        "private": false,
        "resources": [
          {
            "checksum": {
              "type": "sha1",
              "value": "text"
            },
            "created_at": "2024-10-23T15:29:51.395Z",
            "description": "text",
            "filetype": "file",
            "format": "text",
            "harvest": {
              "created_at": "2024-10-23T15:29:51.395Z",
              "modified_at": "2024-10-23T15:29:51.395Z",
              "uri": "text"
            },
            "id": "text",
            "internal": {
              "created_at_internal": "2024-10-23T15:29:51.395Z",
              "last_modified_internal": "2024-10-23T15:29:51.395Z"
            },
            "last_modified": "2024-10-23T15:29:51.395Z",
            "latest": "text",
            "mime": "text",
            "preview_url": "text",
            "schema": {
              "name": "text",
              "url": "text",
              "version": "text"
            },
            "title": "text",
            "type": "main",
            "url": "text"
          }
        ],
        "schema": {
          "name": "text",
          "url": "text",
          "version": "text"
        },
        "slug": "text",
        "spatial": {
          "geom": {
            "coordinates": [],
            "type": "Point"
          },
          "granularity": "other",
          "zones": [
            "text"
          ]
        },
        "tags": [
          "text"
        ],
        "temporal_coverage": {
          "end": "2024-10-23T15:29:51.395Z",
          "start": "2024-10-23T15:29:51.395Z"
        },
        "title": "text",
        "uri": "text"
      }
    ],
    "deleted": "2024-10-23T15:29:51.395Z",
    "description": "text",
    "featured": false,
    "id": "text",
    "image": "text",
    "image_thumbnail": "text",
    "last_modified": "2024-10-23T15:29:51.395Z",
    "organization": {
      "class": "text",
      "id": "text",
      "acronym": "text",
      "badges": [
        {
          "kind": "text"
        }
      ],
      "logo": "text",
      "logo_thumbnail": "text",
      "name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "owner": {
      "class": "text",
      "id": "text",
      "avatar": "text",
      "avatar_thumbnail": "text",
      "first_name": "text",
      "last_name": "text",
      "page": "text",
      "slug": "text",
      "uri": "text"
    },
    "page": "text",
    "private": false,
    "slug": "text",
    "tags": [
      "text"
    ],
    "title": "text",
    "topic": "health",
    "type": "api",
    "uri": "text",
    "url": "text"
  }
]

Dernière mise à jour

Revision created

Update faq-cadastre.md