DINUM (Direction interministérielle du numérique) Topics API

Topics related operations

GitHub OpenAPI

Operations 13

POST /topics/ Create a topic #
GET /topics/ List all topics #
GET /topics/search/ List or search all topics #
GET /topics/{topic}/ Get a given topic #
PUT /topics/{topic}/ Update a given topic #
DELETE /topics/{topic}/ Delete a given topic #
GET /topics/{topic}/elements/ Get a given topic's elements with pagination #
POST /topics/{topic}/elements/ Topic elements create #
DELETE /topics/{topic}/elements/ Delete all elements from a Topic #
PUT /topics/{topic}/elements/{element_id}/ Update a given element from the given topic #
DELETE /topics/{topic}/elements/{element_id}/ Delete a given element from the given topic #
POST /topics/{topic}/featured/ Mark the topic as featured #
DELETE /topics/{topic}/featured/ Unmark the topic as featured #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dinum:dinum-topics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dinum-topics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dinum Topics API
  version: '2.0'
  description: 'Operations tagged topics across 2 of this provider''s published API definitions: data-gouv-fr-api-v2-swagger.json, dinum-data-gouv-fr-v2-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.data.gouv.fr/api/2
tags:
- name: Topics
  description: Topics related operations
paths:
  /topics/:
    post:
      responses:
        '400':
          description: Validation error
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
      summary: Create a topic
      operationId: create_topic
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopicInput'
        required: true
    get:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicPage'
      summary: List all topics
      operationId: get_topics_api
      parameters:
      - name: q
        in: query
        description: The search query
        schema:
          type: string
      - name: sort
        in: query
        description: The field (and direction) on which sorting apply
        schema:
          type: string
          enum:
          - name
          - created
          - last_modified
          - -name
          - -created
          - -last_modified
      - name: page
        in: query
        description: The page to fetch
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - name: page_size
        in: query
        description: The page size to fetch
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - name: private
        in: query
        description: 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
        schema:
          type: boolean
      - name: tag
        in: query
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - name: geozone
        in: query
        schema:
          type: string
      - name: granularity
        in: query
        schema:
          type: string
      - name: organization
        in: query
        schema:
          type: string
      - name: owner
        in: query
        schema:
          type: string
      - name: featured
        in: query
        schema:
          type: boolean
      - name: dataset
        in: query
        description: A dataset id to filter topics containing it
        schema:
          type: string
      - name: reuse
        in: query
        description: A reuse id to filter topics containing it
        schema:
          type: string
      - name: dataservice
        in: query
        description: A dataservice id to filter topics containing it
        schema:
          type: string
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
  /topics/search/:
    get:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicSearchPage'
      summary: List or search all topics
      operationId: search_topics
      parameters:
      - name: q
        in: query
        description: The search query
        schema:
          type: string
      - name: tag
        in: query
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - name: featured
        in: query
        schema:
          type: boolean
      - name: last_update_range
        in: query
        schema:
          type: string
          enum:
          - last_30_days
          - last_12_months
          - last_3_years
      - name: organization
        in: query
        schema:
          type: string
      - name: producer_type
        in: query
        schema:
          type: string
          enum:
          - not-specified
          - user
          - local-authority
          - association
          - public-service
          - company
      - name: sort
        in: query
        description: The field (and direction) on which sorting apply
        schema:
          type: string
          enum:
          - name
          - created
          - last_modified
          - -name
          - -created
          - -last_modified
      - name: page
        in: query
        description: The page to fetch
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - name: page_size
        in: query
        description: The page size to fetch
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
  /topics/{topic}/:
    parameters:
    - description: The topic ID
      name: topic
      in: path
      required: true
      schema:
        type: string
    get:
      responses:
        '404':
          description: Topic not found
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
      summary: Get a given topic
      operationId: get_topic
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    put:
      responses:
        '404':
          description: Topic not found
        '403':
          description: Forbidden
        '400':
          description: Validation error
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
      summary: Update a given topic
      operationId: update_topic
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopicInput'
        required: true
    delete:
      responses:
        '404':
          description: Topic not found
        '403':
          description: Forbidden
        '204':
          description: Object deleted
      summary: Delete a given topic
      operationId: delete_topic
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
  /topics/{topic}/elements/:
    parameters:
    - description: The topic ID
      name: topic
      in: path
      required: true
      schema:
        type: string
    get:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicElementPage'
      summary: Get a given topic's elements with pagination
      operationId: topic_elements
      parameters:
      - name: q
        in: query
        description: query string to search through elements
        schema:
          type: string
      - name: sort
        in: query
        description: The field (and direction) on which sorting apply
        schema:
          type: string
      - name: page
        in: query
        description: The page to fetch
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - name: page_size
        in: query
        description: The page size to fetch
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - name: class
        in: query
        description: The class of elements to fetch (eg. Dataset or Reuse)
        schema:
          type: string
      - name: tag
        in: query
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    post:
      responses:
        '403':
          description: Forbidden
        '404':
          description: Topic not found
        '400':
          description: Expecting a list
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TopicElement%20%28read%29'
      operationId: topic_elements_create
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ModelReference'
        required: true
      summary: Topic elements create
      x-summary-source: derived
    delete:
      responses:
        '403':
          description: Forbidden
        '404':
          description: Topic not found
      summary: Delete all elements from a Topic
      description: 'This a workaround for https://github.com/kvesteri/wtforms-json/issues/43

        -> we can''t use PUT /api/2/topics/{topic}/ with an empty list of elements'
      operationId: topic_elements_delete
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
  /topics/{topic}/elements/{element_id}/:
    parameters:
    - description: The topic ID
      name: topic
      in: path
      required: true
      schema:
        type: string
    - description: The element ID
      name: element
      in: query
      schema:
        type: string
    - name: element_id
      in: path
      required: true
      schema:
        type: string
    put:
      responses:
        '204':
          description: Success
        '404':
          description: Topic not found
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicElement%20%28read%29'
      summary: Update a given element from the given topic
      operationId: topic_element_update
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopicElement%20%28write%29'
        required: true
    delete:
      responses:
        '204':
          description: Success
        '404':
          description: Topic not found
      summary: Delete a given element from the given topic
      operationId: delete_topic_element_api_/topics/<topic:topic>/elements/<element_id>/
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
  /topics/{topic}/featured/:
    parameters:
    - description: The topic ID
      name: topic
      in: path
      required: true
      schema:
        type: string
    post:
      responses:
        '404':
          description: Topic not found
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
      summary: Mark the topic as featured
      operationId: feature_topic
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    delete:
      responses:
        '404':
          description: Topic not found
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
      summary: Unmark the topic as featured
      operationId: unfeature_topic
      parameters:
      - name: X-Fields
        in: header
        description: An optional fields mask
        schema:
          type: string
          format: mask
      tags:
      - Topics
    servers:
    - url: https://www.data.gouv.fr/api/2
components:
  schemas:
    TopicElementPage:
      required:
      - page
      - page_size
      - total
      properties:
        data:
          type: array
          description: The page data
          items:
            $ref: '#/components/schemas/TopicElement__read'
        page:
          type: integer
          description: The current page
          minimum: 1
        page_size:
          type: integer
          description: The page size used for pagination
          minimum: 0
        total:
          type: integer
          description: The total paginated items
          minimum: 0
        next_page:
          type: string
          description: The next page URL if exists
        previous_page:
          type: string
          description: The previous page URL if exists
      type: object
    TopicElement__read:
      required:
      - id
      properties:
        id:
          type: string
          readOnly: true
        title:
          type: string
        description:
          type: string
          format: markdown
        tags:
          type: array
          items:
            type: string
        extras:
          type: object
        element:
          $ref: '#/components/schemas/ModelReference'
      type: object
    TopicInput:
      required:
      - name
      properties:
        owner:
          type: string
          description: Only present if organization is not set. Can only be set to the current authenticated user.
        organization:
          type: string
          description: Only present if owner is not set. Can only be set to an organization of the current authenticated user.
        name:
          type: string
        description:
          type: string
          format: markdown
        tags:
          type: array
          items:
            type: string
        color:
          type: integer
        private:
          type: boolean
        extras:
          type: object
        spatial:
          $ref: '#/components/schemas/SpatialCoverage__write'
        elements:
          type: array
          description: The topic elements
          items:
            $ref: '#/components/schemas/TopicElement__read'
      type: object
    ModelReference:
      required:
      - class
      - id
      properties:
        class:
          type: string
          description: The model class
        id:
          type: string
          description: The object identifier
      type: object
    SpatialCoverage__read:
      properties:
        geom:
          description: A multipolygon for the whole coverage
          allOf:
          - $ref: '#/components/schemas/GeoJSON'
        zones:
          type: object
          description: The covered zones identifiers (full GeoZone objects if `X-Get-Datasets-Full-Objects` is set, IDs of the zones otherwise)
        granularity:
          type: object
          description: The spatial/territorial granularity (full Granularity object if `X-Get-Datasets-Full-Objects` is set, ID of the granularity otherwise)
          default: other
      type: object
    UserReference:
      required:
      - first_name
      - last_name
      - slug
      properties:
        slug:
          type: string
          readOnly: true
          maxLength: 255
        first_name:
          type: string
          maxLength: 255
        last_name:
          type: string
          maxLength: 255
        avatar:
          type: string
          description: URL of the image
          readOnly: true
        avatar_thumbnail:
          type: string
          description: URL of the cropped and squared image (500x500)
          readOnly: true
        deleted:
          type: string
          format: date-time
          description: The date the account was deleted, null for a live account
          readOnly: true
        page:
          type: string
          description: Link to the udata web page for this user
          readOnly: true
        uri:
          type: string
          description: Link to the API endpoint for this user
          readOnly: true
      type: object
    Topic:
      required:
      - created_at
      - id
      - last_modified
      - name
      - slug
      properties:
        id:
          type: string
          readOnly: true
        owner:
          description: Only present if organization is not set. Can only be set to the current authenticated user.
          allOf:
          - $ref: '#/components/schemas/UserReference'
        organization:
          description: Only present if owner is not set. Can only be set to an organization of the current authenticated user.
          allOf:
          - $ref: '#/components/schemas/OrganizationReference'
        created_at:
          type: string
          format: date-time
          readOnly: true
        last_modified:
          type: string
          format: date-time
          readOnly: true
        name:
          type: string
        slug:
          type: string
          readOnly: true
          maxLength: 255
        description:
          type: string
          format: markdown
        tags:
          type: array
          items:
            type: string
        color:
          type: integer
        featured:
          type: boolean
          readOnly: true
        private:
          type: boolean
        extras:
          type: object
        spatial:
          $ref: '#/components/schemas/SpatialCoverage__read'
        page:
          type: string
          description: Link to the udata web page for this topic
          readOnly: true
        uri:
          type: string
          description: Link to the API endpoint for this topic
          readOnly: true
        elements:
          type: object
          description: Link to the topic elements
      type: object
    Badge__read:
      required:
      - kind
      properties:
        kind:
          type: string
      type: object
    SpatialCoverage__write:
      properties:
        geom:
          description: A multipolygon for the whole coverage
          allOf:
          - $ref: '#/components/schemas/GeoJSON'
        zones:
          type: array
          description: The covered zones identifiers (full GeoZone objects if `X-Get-Datasets-Full-Objects` is set, IDs of the zones otherwise)
          items:
            type: string
            description: The covered zones identifiers (full GeoZone objects if `X-Get-Datasets-Full-Objects` is set, IDs of the zones otherwise)
        granularity:
          type: string
          description: The spatial/territorial granularity (full Granularity object if `X-Get-Datasets-Full-Objects` is set, ID of the granularity otherwise)
          default: other
      type: object
    GeoJSON:
      required:
      - coordinates
      - type
      properties:
        type:
          type: string
          description: The GeoJSON Type
          example: Point
          enum:
          - Point
          - LineString
          - Polygon
          - MultiPoint
          - MultiLineString
          - MultiPolygon
        coordinates:
          type: array
          description: The geometry as coordinates lists
          items:
            type: object
      type: object
    TopicSearchPage:
      required:
      - page
      - page_size
      - total
      properties:
        data:
          type: array
          description: The page data
          items:
            $ref: '#/components/schemas/Topic'
        page:
          type: integer
          description: The current page
          minimum: 1
        page_size:
          type: integer
          description: The page size used for pagination
          minimum: 0
        total:
          type: integer
          description: The total paginated items
          minimum: 0
        next_page:
          type: string
          description: The next page URL if exists
        previous_page:
          type: string
          description: The previous page URL if exists
        facets:
          type: object
          description: Facets/aggregations for filtering
      type: object
    OrganizationReference:
      required:
      - name
      - slug
      properties:
        badges:
          type: array
          readOnly: true
          items:
            readOnly: true
            allOf:
            - $ref: '#/components/schemas/Badge__read'
        name:
          type: string
        acronym:
          type: string
          maxLength: 128
        slug:
          type: string
          readOnly: true
          maxLength: 255
        logo:
          type: string
          description: URL of the image
          readOnly: true
        logo_thumbnail:
          type: string
          description: URL of the cropped and squared image (100x100)
          readOnly: true
        page:
          type: string
          description: Link to the udata web page for this organization
          readOnly: true
        permissions:
          readOnly: true
          allOf:
          - $ref: '#/components/schemas/OrganizationPermissions'
        uri:
          type: string
          description: Link to the API endpoint for this organization
          readOnly: true
      type: object
    TopicPage:
      required:
      - page
      - page_size
      - total
      properties:
        data:
          type: array
          description: The page data
          items:
            $ref: '#/components/schemas/Topic'
        page:
          type: integer
          description: The current page
          minimum: 1
        page_size:
          type: integer
          description: The page size used for pagination
          minimum: 0
        total:
          type: integer
          description: The total paginated items
          minimum: 0
        next_page:
          type: string
          description: The next page URL if exists
        previous_page:
          type: string
          description: The previous page URL if exists
      type: object
    OrganizationPermissions:
      properties:
        edit:
          type: boolean
        delete:
          type: boolean
        members:
          type: boolean
        harvest:
          type: boolean
        private:
          type: boolean
      type: object
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: X-API-KEY
x-refined-from:
- data-gouv-fr-api-v2-swagger.json
- dinum-data-gouv-fr-v2-openapi.yml