topics
Topics related operations
The search query
The field (and direction) on which sorting apply
The page to fetch
1The page size to fetch
20If 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
A dataset id to filter topics containing it
A reuse id to filter topics containing it
A dataservice id to filter topics containing it
An optional fields mask
Success
The current page
The page size used for pagination
The total paginated items
The next page URL if exists
The previous page URL if exists
GET /api/2/topics/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
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"
}An optional fields mask
Only present if organization is not set. Can only be set to the current authenticated user.
Only present if owner is not set. Can only be set to an organization of the current authenticated user.
Success
Link to the udata web page for this topic
Link to the API endpoint for this topic
Link to the topic elements
Validation error
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": {}
}The topic ID
An optional fields mask
Success
Link to the udata web page for this topic
Link to the API endpoint for this topic
Link to the topic elements
Topic not found
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": {}
}The topic ID
An optional fields mask
Only present if organization is not set. Can only be set to the current authenticated user.
Only present if owner is not set. Can only be set to an organization of the current authenticated user.
Success
Link to the udata web page for this topic
Link to the API endpoint for this topic
Link to the topic elements
Validation error
Forbidden
Topic not found
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": {}
}Mis à jour
Ce contenu vous a-t-il été utile ?

