Direction générale des Finances publiques (DGFiP) Impôt Particulier API

Ressources globales de l'API

GitHub OpenAPI

Operations 7

GET /spi/{spi}/dernieresituation/ir/assiettes/deuxans derniereSituationIRdernierMillesime #
GET /spi/{spi}/dernieresituation/ir/assiettes/annrev/{annrev} derniereSituationIR #
GET /spi/{spi}/lep/departement/{departement}/annrev/{annrev}/bareme/{bareme} indicateurLEPparDptAnnrevBareme #
GET /spi/{spi}/situations/ir/assiettes/multiple/annrev/{annrev} SituationsIrAssiettesMultipleV1 #
GET /spi/{spi}/situations/ir/assiettes/annrev/{annrev} SituationsIrAssiettesV1 #
GET /spi/{spi}/situations/ir/factures/annrev/{annrev} SituationsIrFacturesV1 #
GET /spi/{spi}/situations/ifiisf/assiettes/annrev/{annrev} SituationIfiIsfV1 #

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/direction-generale-des-finances-publiques:direction-generale-des-finances-publiques-imp-t-particulier-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

direction-generale-des-finances-publiques-imp-t-particulier-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Direction Generale Des Finances Publiques Impôt Particulier…
  version: '1.0'
  description: 'Operations tagged Impôt Particulier across 2 of this provider''s published API definitions: impot-particulier.json, direction-generale-des-finances-publiques-impot-particulier-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://IP-GATEWAY/impotparticulier/1.0
security:
- Authorization: []
tags:
- name: Impôt Particulier
  description: Ressources globales de l'API
paths:
  /spi/{spi}/dernieresituation/ir/assiettes/deuxans:
    get:
      tags:
      - Impôt Particulier
      summary: derniereSituationIRdernierMillesime
      description: Fournit la situation IR de la derniere periode des 2 derniers millesimes
      operationId: situationsIrAssiettesDeuxDernierMillesimeV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.derniere.situations.ir.assiettes.v1+json:
              schema:
                $ref: '#/components/schemas/SituationsIRAssiettesMillesimeJAXBbean'
        '400':
          description: Requete mal formée
        '403':
          description: Accès refusé
      security:
      - Authorization:
        - RessourceIRDerniere2
      - default:
        - RessourceIRDerniere2
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/dernieresituation/ir/assiettes/annrev/{annrev}:
    get:
      tags:
      - Impôt Particulier
      summary: derniereSituationIR
      description: Fournit la situation IR de la derniere période d'un millesime
      operationId: derniereSituationsIrAssiettesV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.derniere.situations.ir.assiettes.v1+json:
              schema:
                $ref: '#/components/schemas/SituationsIRAssiettesMillesimeJAXBbean'
        '400':
          description: Requete mal formée
        '403':
          description: Accès refusé
      security:
      - Authorization:
        - RessourceIRDerniere
      - default:
        - RessourceIRDerniere
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/lep/departement/{departement}/annrev/{annrev}/bareme/{bareme}:
    get:
      tags:
      - Impôt Particulier
      summary: indicateurLEPparDptAnnrevBareme
      description: indicateur LEP V2
      operationId: Ouverturelep
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: departement
        in: path
        description: Numéro de département
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: string
      - name: bareme
        in: path
        description: Année barème
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.ouverturelep.v1+json:
              schema:
                $ref: '#/components/schemas/OuvertureLepJAXBbean'
        '204':
          description: Aucune réponse ne peut être apportée
        '400':
          description: "* codeapp 4001 : mauvais format de spi \n* codeapp 4002 : mauvais format d'année (annrev ou bareme) \n* codeapp 4007 : mauvais format de département"
        '403':
          description: 'codeapp 4031 : L''utilisateur n''a pas accès à la ressource'
        '410':
          description: "* codeapp 4101 : La requête avec le spi et l'année ne renvoie aucun résultat \n* codeapp 4102 : Le spi envoyé ne correspond à aucun usager"
        '500':
          description: Erreur technique
      security:
      - Authorization:
        - RessourceLEP
      - default:
        - RessourceLEP
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/situations/ir/assiettes/multiple/annrev/{annrev}:
    get:
      tags:
      - Impôt Particulier
      summary: SituationsIrAssiettesMultipleV1
      operationId: SituationsIrAssiettesMultipleV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.situations.ir.assiettes.multiple.v1+json:
              schema:
                $ref: '#/components/schemas/SituationsIRAssiettesMultipleJAXBbean'
        '400':
          description: Requete mal formée
        '403':
          description: Accès refusé
      security:
      - Authorization:
        - RessourceIRMultiple
      - default:
        - RessourceIRMultiple
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/situations/ir/assiettes/annrev/{annrev}:
    get:
      tags:
      - Impôt Particulier
      summary: SituationsIrAssiettesV1
      operationId: SituationsIrAssiettesV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.situations.ir.assiettes.v1+json:
              schema:
                $ref: '#/components/schemas/SituationsIRAssiettesJAXBbean'
        '400':
          description: Requete mal formée
        '403':
          description: Accès refusé
      security:
      - Authorization:
        - RessourceIR
      - default:
        - RessourceIR
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/situations/ir/factures/annrev/{annrev}:
    get:
      tags:
      - Impôt Particulier
      summary: SituationsIrFacturesV1
      description: Situations IR factures
      operationId: SituationsIrFacturesV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.part.situations.ir.factures.v1+json:
              schema:
                $ref: '#/components/schemas/SituationsIRAssiettesFacturesJAXBbean'
        '400':
          description: Requete mal formée
        '403':
          description: Accès refusé
      security:
      - Authorization:
        - RessourceIRFacture
      - default:
        - RessourceIRFacture
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
  /spi/{spi}/situations/ifiisf/assiettes/annrev/{annrev}:
    get:
      tags:
      - Impôt Particulier
      summary: SituationIfiIsfV1
      description: Situation IFI ISF
      operationId: SituationIfiIsfV1
      parameters:
      - $ref: '#/components/parameters/paramAuthorization'
      - $ref: '#/components/parameters/paramXCorrelationID'
      - $ref: '#/components/parameters/paramIdTeleservice'
      - name: spi
        in: path
        description: Numéro fiscal
        required: true
        schema:
          type: string
      - name: annrev
        in: path
        description: Année de revenus
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/prs.dgfip.situations.ifiisf.assiettes.v1+json:
              schema:
                $ref: '#/components/schemas/SituationIfiIsfJAXBbean'
        '400':
          description: '* codeapp 4001 : Le spi est dans un format incorrect'
        '500':
          description: Erreur technique
      security:
      - Authorization:
        - RessourceIFI
      - default:
        - RessourceIFI
    servers:
    - url: https://IP-GATEWAY/impotparticulier/1.0
components:
  parameters:
    paramIdTeleservice:
      name: ID_Teleservice
      in: header
      description: Identifiant de téléservice appelant
      required: false
      style: simple
      schema:
        type: string
    paramAuthorization:
      name: Authorization
      schema:
        type: string
      in: header
      required: true
      description: 'Jeton d''authentification. Header Authorization standard, utilisant un schéma Bearer. Exemple: "bearer {token}"'
    paramXCorrelationID:
      name: X-Correlation-ID
      schema:
        type: string
        pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
      in: header
      required: true
      description: Identifiant de corrélation de la requête (format UUID)
  schemas:
    SituationsIRAssiettesJAXBbean:
      type: object
      properties:
        rfr:
          type: integer
          format: int64
        sitFam:
          type: string
        nbPart:
          type: number
          format: double
        pac:
          $ref: '#/components/schemas/PacJAXBbean'
        nmNaiDec1:
          type: string
        nmUsaDec1:
          type: string
        prnmDec1:
          type: string
        dateNaisDec1:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec1:
          type: string
        lieuNaissDec1:
          type: string
        nmNaiDec2:
          type: string
        nmUsaDec2:
          type: string
        prnmDec2:
          type: string
        dateNaisDec2:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec2:
          type: string
        lieuNaissDec2:
          type: string
        aft:
          type: string
        aftDetail:
          $ref: '#/components/schemas/AftJAXBbean'
        sitParIso:
          type: string
        pensAlPer:
          type: integer
          format: int32
        indDeficit:
          type: string
        revenuBrutGlobal:
          type: integer
          format: int64
        sitPart:
          type: string
        sitParDeclaree:
          $ref: '#/components/schemas/SitPartJAXBbean'
        indOptionImpotSepar:
          type: string
        mntRevbareme:
          type: integer
          format: int64
        datRec:
          type: string
        datEtab:
          type: string
        impAvImput:
          type: integer
          format: int64
        montTotIr:
          type: integer
          format: int64
        revImposable:
          type: integer
          format: int64
        numRole:
          type: string
        fipNum:
          type: string
        rev:
          $ref: '#/components/schemas/RevsJAXBbean'
    CodeRevJAXBbean:
      type: object
      properties:
        code:
          type: string
        valeur:
          type: string
    SituationIRAssietteMultiJAXBbean:
      type: object
      properties:
        rfr:
          type: integer
          format: int64
        sitFam:
          type: string
        nbPart:
          type: number
          format: double
        pac:
          $ref: '#/components/schemas/PacJAXBbean'
        nmNaiDec1:
          type: string
        nmUsaDec1:
          type: string
        prnmDec1:
          type: string
        dateNaisDec1:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec1:
          type: string
        lieuNaissDec1:
          type: string
        nmNaiDec2:
          type: string
        nmUsaDec2:
          type: string
        prnmDec2:
          type: string
        dateNaisDec2:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec2:
          type: string
        lieuNaissDec2:
          type: string
        aft:
          type: string
        aftDetail:
          $ref: '#/components/schemas/AftJAXBbean'
        sitParIso:
          type: string
        pensAlPer:
          type: integer
          format: int32
        indDeficit:
          type: string
        revenuBrutGlobal:
          type: integer
          format: int64
        rev:
          $ref: '#/components/schemas/RevsJAXBbean'
        sitPart:
          type: string
        sitParDeclaree:
          $ref: '#/components/schemas/SitPartJAXBbean'
        indOptionImpotSepar:
          type: string
        mntRevbareme:
          type: integer
          format: int64
        spiDec1:
          type: string
        spiDec2:
          type: string
        datRec:
          type: string
        datEtab:
          type: string
        impAvImput:
          type: integer
          format: int64
        montTotIr:
          type: integer
          format: int64
        revImposable:
          type: integer
          format: int64
        numRole:
          type: string
        fipNum:
          type: string
        dateDebutPeriode:
          type: string
        dateFinPeriode:
          type: string
        typeAvis:
          type: integer
          format: int32
        dateDecesdec1:
          type: string
        dateDecesdec2:
          type: string
    SituationsIRAssiettesFacturesJAXBbean:
      type: object
      properties:
        rfr:
          type: integer
          format: int64
        sitFam:
          type: string
        nbPart:
          type: number
          format: double
        pac:
          $ref: '#/components/schemas/PacJAXBbean'
        nmNaiDec1:
          type: string
        nmUsaDec1:
          type: string
        prnmDec1:
          type: string
        dateNaisDec1:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec1:
          type: string
        lieuNaissDec1:
          type: string
        nmNaiDec2:
          type: string
        nmUsaDec2:
          type: string
        prnmDec2:
          type: string
        dateNaisDec2:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec2:
          type: string
        lieuNaissDec2:
          type: string
        aft:
          type: string
        aftDetail:
          $ref: '#/components/schemas/AftJAXBbean'
        sitParIso:
          type: string
        pensAlPer:
          type: integer
          format: int32
        indDeficit:
          type: string
        revenuBrutGlobal:
          type: integer
          format: int64
        sitPart:
          type: string
        sitParDeclaree:
          $ref: '#/components/schemas/SitPartJAXBbean'
        indOptionImpotSepar:
          type: string
        mntRevbareme:
          type: integer
          format: int64
        datRec:
          type: string
        datEtab:
          type: string
        impAvImput:
          type: integer
          format: int64
        montTotIr:
          type: integer
          format: int64
        revImposable:
          type: integer
          format: int64
        numRole:
          type: string
        fipNum:
          type: string
        facture:
          type: array
          items:
            $ref: '#/components/schemas/SituationIRfactureJAXBbean'
        rev:
          $ref: '#/components/schemas/RevsJAXBbean'
    SituationsIRAssiettesMillesimeJAXBbean:
      type: object
      properties:
        annRevenu:
          type: integer
          format: int32
        rfr:
          type: integer
          format: int64
        sitFam:
          type: string
        nbPart:
          type: number
          format: double
        pac:
          $ref: '#/components/schemas/PacJAXBbean'
        nmNaiDec1:
          type: string
        nmUsaDec1:
          type: string
        prnmDec1:
          type: string
        dateNaisDec1:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec1:
          type: string
        lieuNaissDec1:
          type: string
        nmNaiDec2:
          type: string
        nmUsaDec2:
          type: string
        prnmDec2:
          type: string
        dateNaisDec2:
          $ref: '#/components/schemas/DateNaisDecJAXBbean'
        dptNaissDec2:
          type: string
        lieuNaissDec2:
          type: string
        aft:
          type: string
        aftDetail:
          $ref: '#/components/schemas/AftJAXBbean'
        sitParIso:
          type: string
        pensAlPer:
          type: integer
          format: int32
        indDeficit:
          type: string
        revenuBrutGlobal:
          type: integer
          format: int64
        sitPart:
          type: string
        sitParDeclaree:
          $ref: '#/components/schemas/SitPartJAXBbean'
        indOptionImpotSepar:
          type: string
        mntRevbareme:
          type: integer
          format: int64
        datRec:
          type: string
        datEtab:
          type: string
        impAvImput:
          type: integer
          format: int64
        montTotIr:
          type: integer
          format: int64
        revImposable:
          type: integer
          format: int64
        numRole:
          type: string
        fipNum:
          type: string
        rev:
          $ref: '#/components/schemas/RevsJAXBbean'
    SituationsIRAssiettesMultipleJAXBbean:
      type: object
      properties:
        situationsIR:
          type: array
          items:
            $ref: '#/components/schemas/SituationIRAssietteMultiJAXBbean'
    SituationIfiIsfJAXBbean:
      type: object
      properties:
        indicateurIfiIsf:
          type: string
    SituationIRfactureJAXBbean:
      type: object
      properties:
        numLigne:
          type: integer
          format: int32
        codeLigne:
          type: string
        libelleLigne:
          type: string
        colonne1:
          type: string
        colonne2:
          type: string
        colonne3:
          type: string
        colonne4:
          type: string
    RevsJAXBbean:
      type: object
      properties:
        tspr:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        rcm:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        pv:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        fonc:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        pro:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        chges:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        rici:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        alpha:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
        div:
          type: array
          items:
            $ref: '#/components/schemas/CodeRevJAXBbean'
    OuvertureLepJAXBbean:
      type: object
      properties:
        statut:
          type: string
    AftJAXBbean:
      type: object
      properties:
        complementAdresse:
          type: string
        voie:
          type: string
        getcommune:
          type: string
        getcodePostal:
          type: string
    PacJAXBbean:
      type: object
      properties:
        nbPac:
          type: integer
          format: int32
        nbPacF:
          type: integer
          format: int32
        nbPacG:
          type: integer
          format: int32
        nbPacH:
          type: integer
          format: int32
        nbPacI:
          type: integer
          format: int32
        nbPacR:
          type: integer
          format: int32
        nbPacJ:
          type: integer
          format: int32
        nbPacN:
          type: integer
          format: int32
        nbPacP:
          type: integer
          format: int32
    DateNaisDecJAXBbean:
      type: object
      properties:
        jour:
          type: string
        mois:
          type: string
        annee:
          type: string
    SitPartJAXBbean:
      type: object
      properties:
        sitPartP:
          type: string
        sitPartF:
          type: string
        sitPartW:
          type: string
        sitComb:
          type: string
        pensVeufGuerre:
          type: string
        indEnfSeul5ansMin:
          type: string
        indNonSeul:
          type: string
  securitySchemes:
    Authorization:
      type: oauth2
      description: '>- OAuth 2.0 avec un grant type Client Credentials. Header Authorization standard, utilisant un schéma Bearer. Exemple: "Bearer {token}"'
      flows:
        clientCredentials:
          tokenUrl: https://IP-GATEWAY/token
          scopes:
            RessourceIR: Ressources IR
            RessourceIFI: Ressource IFI
            RessourceTHPrincipale: Ressource TH Principale
            RessourceLEP: Ressource LEP
            RessourceIRFacture: Ressource IR Facture
            RessourceIRDerniere: Ressource IR Derniere
            RessourceIRDerniere2: Ressource IR Derniere 2 ans
            RessourceIRMultiple: Ressource IR Multiple
    default:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://IP-GATEWAY/token
          scopes:
            RessourceIR: Accès aux données liées à l'impôt sur le revenu.
            RessourceIFI: Accès aux données liées à l'impôt sur la fortune immobilière.
            RessourceTHPrincipale: Accès aux données de la taxe d'habitation.
            RessourceLEP: Accès aux données liées au Livret d'Epargne Populaire.
            RessourceIRFacture: Accès aux données liées à l'impôt sur le revenu et aux factures.
            RessourceIRDerniere: '>- Accès aux données liées à l''impôt sur le revenu : situation sur la dernière année.'
            RessourceIRDerniere2: '>- Accès aux données liées à l''impôt sur le revenu : situation sur les deux dernières années.'
            RessourceIRMultiple: '>- Accès aux données liées à l''impôt sur le revenu : situations multiples.'
          x-scopes-bindings:
            RessourceIR: Application/ImpotParticulierRessourceIR
            RessourceIFI: Application/ImpotParticulierRessourceIFI
            RessourceTHPrincipale: Application/ImpotParticulierRessourceTH
            RessourceLEP: Application/ImpotParticulierRessourceLEP
            RessourceIRFacture: Application/ImpotParticulierRessourceIRFac
            RessourceIRDerniere: ''
            RessourceIRDerniere2: ''
            RessourceIRMultiple: ''
x-refined-from:
- impot-particulier.json
- direction-generale-des-finances-publiques-impot-particulier-openapi.yml