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

Visualizations related operations

GitHub OpenAPI

Operations 6

GET /visualizations/ List or search all visualizations #
POST /visualizations/ Create a new visualization #
DELETE /visualizations/{visualization}/ Delete a visualization given its identifier #
GET /visualizations/{visualization}/ Get a visualization given its identifier #
PATCH /visualizations/{visualization}/ Update a visualization given its identifier #
POST /visualizations/{visualization}/image/ Upload a new visualization image #

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-visualizations-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-visualizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dinum Visualizations API
  version: '1.0'
  description: 'Operations tagged visualizations across 2 of this provider''s published API definitions: data-gouv-fr-api-v1-swagger.json, dinum-data-gouv-fr-v1-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.data.gouv.fr/api/1
tags:
- description: Visualizations related operations
  name: Visualizations
paths:
  /visualizations/:
    get:
      operationId: list_visualizations
      parameters:
      - description: The page to fetch
        in: query
        name: page
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - description: The page size to fetch
        in: query
        name: page_size
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - description: The field (and direction) on which sorting apply
        in: query
        name: sort
        schema:
          type: string
          enum:
          - created
          - last_modified
          - title
          - -created
          - -last_modified
          - -title
      - in: query
        name: owner
        schema:
          type: string
      - in: query
        name: organization
        schema:
          type: string
      - in: query
        name: private
        schema:
          type: boolean
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChartPage'
      summary: List or search all visualizations
      tags:
      - Visualizations
    post:
      operationId: create_visualization
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Chart%20%28read%29'
        '400':
          description: Validation error
      summary: Create a new visualization
      tags:
      - Visualizations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Chart%20%28write%29'
        required: true
    servers:
    - url: https://www.data.gouv.fr/api/1
  /visualizations/{visualization}/:
    parameters:
    - description: The visualization ID or slug
      in: path
      name: visualization
      required: true
      schema:
        type: string
    delete:
      operationId: delete_visualization
      responses:
        '204':
          description: Visualization deleted
      summary: Delete a visualization given its identifier
      tags:
      - Visualizations
    get:
      operationId: get_visualization
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Chart%20%28read%29'
      summary: Get a visualization given its identifier
      tags:
      - Visualizations
    patch:
      operationId: update_visualization
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Chart%20%28read%29'
        '400':
          description: Validation error
      summary: Update a visualization given its identifier
      tags:
      - Visualizations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Chart%20%28write%29'
        required: true
    servers:
    - url: https://www.data.gouv.fr/api/1
  /visualizations/{visualization}/image/:
    parameters:
    - description: The visualization ID or slug
      in: path
      name: visualization
      required: true
      schema:
        type: string
    post:
      operationId: visualization_image
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadedImage'
      summary: Upload a new visualization image
      tags:
      - Visualizations
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: The image to upload
                  format: binary
                bbox:
                  type: string
                  description: An optional crop box, as `left,upper,right,lower` pixel coordinates
              required:
              - file
    servers:
    - url: https://www.data.gouv.fr/api/1
components:
  schemas:
    YAxis__read:
      properties:
        label:
          type: string
        max:
          type: number
        min:
          type: number
        unit:
          type: string
        unit_position:
          enum:
          - prefix
          - suffix
          example: prefix
          type: string
      type: object
    ChartPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Chart__read'
          type: array
        next_page:
          description: The next page URL if exists
          type: string
        page:
          description: The current page
          minimum: 1
          type: integer
        page_size:
          description: The page size used for pagination
          minimum: 0
          type: integer
        previous_page:
          description: The previous page URL if exists
          type: string
        total:
          description: The total paginated items
          minimum: 0
          type: integer
      required:
      - page
      - page_size
      - total
      type: object
    DataSeries__read:
      properties:
        aggregate_y:
          enum:
          - avg
          - sum
          - count
          - min
          - max
          example: avg
          type: string
        column_x_name_override:
          type: string
        column_y:
          type: string
        filters:
          type: object
        resource_id:
          type: string
        type:
          enum:
          - line
          - histogram
          example: line
          type: string
      required:
      - resource_id
      type: object
    Chart__read:
      properties:
        created_at:
          format: date-time
          readOnly: true
          type: string
        deleted_at:
          format: date-time
          readOnly: true
          type: string
        description:
          format: markdown
          type: string
        extras:
          type: object
        id:
          readOnly: true
          type: string
        image:
          description: URL of the image
          readOnly: true
          type: string
        last_modified:
          format: date-time
          readOnly: true
          type: string
        metrics:
          readOnly: true
          type: object
        organization:
          allOf:
          - $ref: '#/components/schemas/OrganizationReference'
          description: Only present if owner is not set. Can only be set to an organization of the current authenticated user.
        owner:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          description: Only present if organization is not set. Can only be set to the current authenticated user.
        permissions:
          allOf:
          - $ref: '#/components/schemas/VisualizationPermissions'
          readOnly: true
        private:
          type: boolean
        series:
          items:
            $ref: '#/components/schemas/DataSeries__read'
          type: array
        slug:
          maxLength: 255
          readOnly: true
          type: string
        title:
          type: string
        x_axis:
          $ref: '#/components/schemas/XAxis__read'
        y_axis:
          $ref: '#/components/schemas/YAxis__read'
      required:
      - created_at
      - description
      - id
      - last_modified
      - series
      - slug
      - title
      - x_axis
      type: object
    Badge__read:
      properties:
        kind:
          type: string
      required:
      - kind
      type: object
    UserReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          avatar:
            description: URL of the image
            readOnly: true
            type: string
          avatar_thumbnail:
            description: URL of the cropped and squared image (500x500)
            readOnly: true
            type: string
          deleted:
            description: The date the account was deleted, null for a live account
            format: date-time
            readOnly: true
            type: string
          first_name:
            maxLength: 255
            type: string
          last_name:
            maxLength: 255
            type: string
          page:
            description: Link to the udata web page for this user
            readOnly: true
            type: string
          slug:
            maxLength: 255
            readOnly: true
            type: string
          uri:
            description: Link to the API endpoint for this user
            readOnly: true
            type: string
        required:
        - first_name
        - last_name
        - slug
        type: object
    XAxis__read:
      properties:
        column_x:
          type: string
        sort_x_by:
          enum:
          - axis_x
          - axis_y
          example: axis_x
          type: string
        sort_x_direction:
          enum:
          - asc
          - desc
          example: asc
          type: string
        type:
          enum:
          - discrete
          - continuous
          example: discrete
          type: string
      required:
      - column_x
      - type
      type: object
    BaseReference:
      discriminator:
        propertyName: class
      properties:
        class:
          description: The object class
          type: string
        id:
          description: The object unique identifier
          type: string
      required:
      - class
      - id
      type: object
    VisualizationPermissions:
      properties:
        delete:
          type: boolean
        edit:
          type: boolean
      type: object
    OrganizationReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          acronym:
            maxLength: 128
            type: string
          badges:
            items:
              allOf:
              - $ref: '#/components/schemas/Badge__read'
              readOnly: true
            readOnly: true
            type: array
          logo:
            description: URL of the image
            readOnly: true
            type: string
          logo_thumbnail:
            description: URL of the cropped and squared image (100x100)
            readOnly: true
            type: string
          name:
            type: string
          page:
            description: Link to the udata web page for this organization
            readOnly: true
            type: string
          permissions:
            allOf:
            - $ref: '#/components/schemas/OrganizationPermissions'
            readOnly: true
          slug:
            maxLength: 255
            readOnly: true
            type: string
          uri:
            description: Link to the API endpoint for this organization
            readOnly: true
            type: string
        required:
        - name
        - slug
        type: object
    UploadedImage:
      properties:
        image:
          type: string
        success:
          default: true
          description: Whether the upload succeeded or not.
          readOnly: true
          type: boolean
      type: object
    OrganizationPermissions:
      properties:
        delete:
          type: boolean
        edit:
          type: boolean
        harvest:
          type: boolean
        members:
          type: boolean
        private:
          type: boolean
      type: object
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey
x-refined-from:
- data-gouv-fr-api-v1-swagger.json
- dinum-data-gouv-fr-v1-openapi.yml