Overview
L’API Service National facilite : - La constitution des dossiers d’inscription aux examens et concours soumis au contrôle de l’autorité publique ; - La constitution des dossiers d’accès à un statut exigeant d’être en règle avec les obligations de service national. ### À quoi sert l’API Service National ? Elle permet aux administrations d'accéder à des informations certifiées à la source et ainsi : - de s’affranchir des pièces justificatives lors des démarches en ligne ou physiques ; - de réduire le nombre d’erreurs de saisie ; - d'écarter le risque de fraude documentaire ; Du point de vue de l’usager, une démarche qui utilise l’API Service national s'apparente à ça : 1. Je me connecte sur un site ou je me déplace en vue d'une inscription à un examen ou un concours. 2. Le service chargé de la constitution de mon dossier récupère ma situation au regard des obligations de service national. Si je suis en règle, je n’ai plus rien à faire ! ### Données L'API retourne selon le cas : | Type de réponse | Description | | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | OK ou KO | l'individu est connu, ou n'est pas connu de la base de données | | En règle | l'individu est en règle au regard des obligations de Service National | | Pas en règle | l'individu n'est pas en règle au regard des obligatio
API Service National is a government API from Ministère des Armées. Requests are authenticated with credentials issued on request. It is served over HTTPS.
At a glance
- Authentication
- Restricted access
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Government
- Base URL
https://presaje.sga.defense.gouv.fr/api
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://presaje.sga.defense.gouv.fr/api" \
-H "Accept: application/json"const response = await fetch("https://presaje.sga.defense.gouv.fr/api", {
method: "GET",
headers: {
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://presaje.sga.defense.gouv.fr/api",
headers={
"Accept": "application/json",
},
timeout=30,
)
print(response.json())Questions
Does the API Service National API need an API key?
Yes. The API Service National API uses Restricted access authentication; the documentation explains how to get credentials.
Does the API Service National API support HTTPS?
Yes, the API Service National API is served over HTTPS.
What are alternatives to the API Service National API?
Other Government APIs include EPA, UK Companies House, Open Government, Canada, Federal Register, Census.gov.
Similar government APIs
Compare alternatives →EPA
GovernmentWeb services and data sets from the US Environmental Protection Agency
UK Companies House
GovernmentUK Companies House Data from the UK government
Open Government, Canada
GovernmentCanadian Government Open Data
Federal Register
GovernmentThe Daily Journal of the United States Government
Census.gov
GovernmentThe US Census Bureau provides various APIs and data sets on demographics and businesses
Colorado Information Marketplace
GovernmentColorado State Government Open Data
Listed from data.gouv.fr (Licence Ouverte).