For the complete documentation index, see llms.txt. This page is also available as Markdown.

topics

Topics related operations

List all topics

get
Paramètres de requête
qstringOptionnel

The search query

sortstring · enumOptionnel

The field (and direction) on which sorting apply

Valeurs possibles:
pageintegerOptionnel

The page to fetch

Default: 1
page_sizeintegerOptionnel

The page size to fetch

Default: 20
privatebooleanOptionnel

If set to true, it will filter on private topics only. If set to false, it will exclude private topics. User must be authenticated and results are limited to user visibility

tagstring[]Optionnel
geozonestringOptionnel
granularitystringOptionnel
organizationstringOptionnel
ownerstringOptionnel
featuredbooleanOptionnel
datasetstringOptionnel

A dataset id to filter topics containing it

reusestringOptionnel

A reuse id to filter topics containing it

dataservicestringOptionnel

A dataservice id to filter topics containing it

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
pageinteger · min: 1Requis

The current page

page_sizeintegerRequis

The page size used for pagination

totalintegerRequis

The total paginated items

next_pagestringOptionnel

The next page URL if exists

previous_pagestringOptionnel

The previous page URL if exists

get/topics/
GET /api/2/topics/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
200

Success

{
  "data": [
    {
      "id": "text",
      "owner": {
        "slug": "text",
        "first_name": "text",
        "last_name": "text",
        "avatar": "text",
        "avatar_thumbnail": "text",
        "deleted": "2026-01-01T00:00:00.000Z",
        "page": "text",
        "uri": "text"
      },
      "organization": {
        "badges": [
          {
            "kind": "text"
          }
        ],
        "name": "text",
        "acronym": "text",
        "slug": "text",
        "logo": "text",
        "logo_thumbnail": "text",
        "page": "text",
        "permissions": {
          "edit": true,
          "delete": true,
          "members": true,
          "harvest": true,
          "private": true
        },
        "uri": "text"
      },
      "created_at": "2026-01-01T00:00:00.000Z",
      "last_modified": "2026-01-01T00:00:00.000Z",
      "name": "text",
      "slug": "text",
      "description": "text",
      "tags": [
        "text"
      ],
      "color": 1,
      "featured": true,
      "private": true,
      "extras": {},
      "spatial": {
        "geom": {
          "type": "Point",
          "coordinates": [
            {}
          ]
        },
        "zones": {},
        "granularity": "other"
      },
      "page": "text",
      "uri": "text",
      "elements": {}
    }
  ],
  "page": 1,
  "page_size": 1,
  "total": 1,
  "next_page": "text",
  "previous_page": "text"
}

Create a topic

post
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
ownerstringOptionnel

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

organizationstringOptionnel

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

namestringRequis
descriptionstring · markdownOptionnel
tagsstring[]Optionnel
colorintegerOptionnel
privatebooleanOptionnel
extrasobjectOptionnel
Réponses
200

Success

application/json
idstringLecture seuleRequis
created_atstring · date-timeLecture seuleRequis
last_modifiedstring · date-timeLecture seuleRequis
namestringRequis
slugstring · max: 255Lecture seuleRequis
descriptionstring · markdownOptionnel
tagsstring[]Optionnel
colorintegerOptionnel
featuredbooleanLecture seuleOptionnel
privatebooleanOptionnel
extrasobjectOptionnel
pagestringLecture seuleOptionnel

Link to the udata web page for this topic

uristringLecture seuleOptionnel

Link to the API endpoint for this topic

elementsobjectOptionnel

Link to the topic elements

post/topics/
POST /api/2/topics/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 338

{
  "owner": "text",
  "organization": "text",
  "name": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "color": 1,
  "private": true,
  "extras": {},
  "spatial": {
    "geom": {
      "type": "Point",
      "coordinates": [
        {}
      ]
    },
    "zones": [
      "text"
    ],
    "granularity": "other"
  },
  "elements": [
    {
      "title": "text",
      "description": "text",
      "tags": [
        "text"
      ],
      "extras": {},
      "element": {
        "class": "text",
        "id": "text"
      }
    }
  ]
}
{
  "id": "text",
  "owner": {
    "slug": "text",
    "first_name": "text",
    "last_name": "text",
    "avatar": "text",
    "avatar_thumbnail": "text",
    "deleted": "2026-01-01T00:00:00.000Z",
    "page": "text",
    "uri": "text"
  },
  "organization": {
    "badges": [
      {
        "kind": "text"
      }
    ],
    "name": "text",
    "acronym": "text",
    "slug": "text",
    "logo": "text",
    "logo_thumbnail": "text",
    "page": "text",
    "permissions": {
      "edit": true,
      "delete": true,
      "members": true,
      "harvest": true,
      "private": true
    },
    "uri": "text"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "last_modified": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "slug": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "color": 1,
  "featured": true,
  "private": true,
  "extras": {},
  "spatial": {
    "geom": {
      "type": "Point",
      "coordinates": [
        {}
      ]
    },
    "zones": {},
    "granularity": "other"
  },
  "page": "text",
  "uri": "text",
  "elements": {}
}

Get a given topic

get
Paramètres de chemin
topicstringRequis

The topic ID

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
idstringLecture seuleRequis
created_atstring · date-timeLecture seuleRequis
last_modifiedstring · date-timeLecture seuleRequis
namestringRequis
slugstring · max: 255Lecture seuleRequis
descriptionstring · markdownOptionnel
tagsstring[]Optionnel
colorintegerOptionnel
featuredbooleanLecture seuleOptionnel
privatebooleanOptionnel
extrasobjectOptionnel
pagestringLecture seuleOptionnel

Link to the udata web page for this topic

uristringLecture seuleOptionnel

Link to the API endpoint for this topic

elementsobjectOptionnel

Link to the topic elements

get/topics/{topic}/
GET /api/2/topics/{topic}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
{
  "id": "text",
  "owner": {
    "slug": "text",
    "first_name": "text",
    "last_name": "text",
    "avatar": "text",
    "avatar_thumbnail": "text",
    "deleted": "2026-01-01T00:00:00.000Z",
    "page": "text",
    "uri": "text"
  },
  "organization": {
    "badges": [
      {
        "kind": "text"
      }
    ],
    "name": "text",
    "acronym": "text",
    "slug": "text",
    "logo": "text",
    "logo_thumbnail": "text",
    "page": "text",
    "permissions": {
      "edit": true,
      "delete": true,
      "members": true,
      "harvest": true,
      "private": true
    },
    "uri": "text"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "last_modified": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "slug": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "color": 1,
  "featured": true,
  "private": true,
  "extras": {},
  "spatial": {
    "geom": {
      "type": "Point",
      "coordinates": [
        {}
      ]
    },
    "zones": {},
    "granularity": "other"
  },
  "page": "text",
  "uri": "text",
  "elements": {}
}

Update a given topic

put
Paramètres de chemin
topicstringRequis

The topic ID

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
ownerstringOptionnel

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

organizationstringOptionnel

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

namestringRequis
descriptionstring · markdownOptionnel
tagsstring[]Optionnel
colorintegerOptionnel
privatebooleanOptionnel
extrasobjectOptionnel
Réponses
200

Success

application/json
idstringLecture seuleRequis
created_atstring · date-timeLecture seuleRequis
last_modifiedstring · date-timeLecture seuleRequis
namestringRequis
slugstring · max: 255Lecture seuleRequis
descriptionstring · markdownOptionnel
tagsstring[]Optionnel
colorintegerOptionnel
featuredbooleanLecture seuleOptionnel
privatebooleanOptionnel
extrasobjectOptionnel
pagestringLecture seuleOptionnel

Link to the udata web page for this topic

uristringLecture seuleOptionnel

Link to the API endpoint for this topic

elementsobjectOptionnel

Link to the topic elements

put/topics/{topic}/
PUT /api/2/topics/{topic}/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 338

{
  "owner": "text",
  "organization": "text",
  "name": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "color": 1,
  "private": true,
  "extras": {},
  "spatial": {
    "geom": {
      "type": "Point",
      "coordinates": [
        {}
      ]
    },
    "zones": [
      "text"
    ],
    "granularity": "other"
  },
  "elements": [
    {
      "title": "text",
      "description": "text",
      "tags": [
        "text"
      ],
      "extras": {},
      "element": {
        "class": "text",
        "id": "text"
      }
    }
  ]
}
{
  "id": "text",
  "owner": {
    "slug": "text",
    "first_name": "text",
    "last_name": "text",
    "avatar": "text",
    "avatar_thumbnail": "text",
    "deleted": "2026-01-01T00:00:00.000Z",
    "page": "text",
    "uri": "text"
  },
  "organization": {
    "badges": [
      {
        "kind": "text"
      }
    ],
    "name": "text",
    "acronym": "text",
    "slug": "text",
    "logo": "text",
    "logo_thumbnail": "text",
    "page": "text",
    "permissions": {
      "edit": true,
      "delete": true,
      "members": true,
      "harvest": true,
      "private": true
    },
    "uri": "text"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "last_modified": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "slug": "text",
  "description": "text",
  "tags": [
    "text"
  ],
  "color": 1,
  "featured": true,
  "private": true,
  "extras": {},
  "spatial": {
    "geom": {
      "type": "Point",
      "coordinates": [
        {}
      ]
    },
    "zones": {},
    "granularity": "other"
  },
  "page": "text",
  "uri": "text",
  "elements": {}
}

Delete a given topic

delete
Paramètres de chemin
topicstringRequis

The topic ID

Réponses
204

Object deleted

Aucun contenu

delete/topics/{topic}/
DELETE /api/2/topics/{topic}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*

Aucun contenu

Mis à jour

Ce contenu vous a-t-il été utile ?