api-gouv-fr / index.html
olinux's picture
Add 2 files
e49bfb0 verified
Raw History Blame Contribute Delete
29.5 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Data.gouv.fr - Référence complète</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.api-card:hover {
transform: translateY(-5px);
transition: all 0.3s ease;
}
.search-highlight {
background-color: #FEF08A;
}
.animate-bounce {
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.gradient-bg {
background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Header -->
<header class="gradient-bg text-white shadow-xl">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<img src="https://www.data.gouv.fr/static/img/placeholder.6b1a7df0.png" alt="Logo data.gouv.fr" class="h-12 mr-4">
<div>
<h1 class="text-2xl font-bold">API Data.gouv.fr</h1>
<p class="text-blue-200">Référence complète avec cas d'usage</p>
</div>
</div>
<nav class="flex flex-wrap justify-center gap-2">
<a href="#api-list" class="px-4 py-2 rounded-lg hover:bg-blue-700 transition">Liste des API</a>
<a href="#categories" class="px-4 py-2 rounded-lg hover:bg-blue-700 transition">Catégories</a>
<a href="#resources" class="px-4 py-2 rounded-lg hover:bg-blue-700 transition">Ressources</a>
<a href="https://www.data.gouv.fr/fr/dataservices/" target="_blank" class="px-4 py-2 bg-white text-blue-800 rounded-lg font-semibold hover:bg-gray-100 transition">
Site officiel <i class="fas fa-external-link-alt ml-1"></i>
</a>
</nav>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center">
<div class="max-w-3xl mx-auto">
<h2 class="text-4xl font-bold mb-6">Découvrez toutes les API publiques françaises</h2>
<p class="text-xl text-blue-200 mb-8">
Accédez à plus de 100 API mises à disposition par les administrations et organismes publics français. Chaque API est accompagnée d'un cas d'usage concret.
</p>
<div class="relative max-w-2xl mx-auto">
<input type="text" id="search-api" placeholder="Rechercher une API (ex: adresse, transport, impôts...)"
class="w-full px-6 py-4 rounded-lg text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500">
<button class="absolute right-2 top-2 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">
<i class="fas fa-search"></i>
</button>
</div>
<div class="mt-8 animate-bounce">
<a href="#api-list" class="text-white hover:text-blue-200">
<i class="fas fa-chevron-down text-3xl"></i>
</a>
</div>
</div>
</div>
</section>
<!-- API Categories -->
<section id="categories" class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Catégories d'API</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
<div class="bg-blue-50 rounded-xl p-6 text-center hover:shadow-lg transition">
<div class="bg-blue-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
<i class="fas fa-building text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Entreprise</h3>
<p class="text-gray-600">SIREN, TVA, impôts, registres</p>
</div>
<div class="bg-green-50 rounded-xl p-6 text-center hover:shadow-lg transition">
<div class="bg-green-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
<i class="fas fa-map-marked-alt text-green-600 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Géographie</h3>
<p class="text-gray-600">Adresses, cadastre, limites administratives</p>
</div>
<div class="bg-yellow-50 rounded-xl p-6 text-center hover:shadow-lg transition">
<div class="bg-yellow-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
<i class="fas fa-bus text-yellow-600 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Transport</h3>
<p class="text-gray-600">Horaires, itinéraires, véhicules</p>
</div>
<div class="bg-purple-50 rounded-xl p-6 text-center hover:shadow-lg transition">
<div class="bg-purple-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
<i class="fas fa-chart-line text-purple-600 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Économie</h3>
<p class="text-gray-600">Indicateurs, marchés publics, finances</p>
</div>
</div>
</div>
</section>
<!-- API List -->
<section id="api-list" class="py-12 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">Liste des API disponibles</h2>
<p class="text-center text-gray-600 max-w-3xl mx-auto mb-12">
Voici une sélection des principales API disponibles sur data.gouv.fr, chacune accompagnée d'un cas d'usage concret.
</p>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="api-container">
<!-- API 1 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="entreprise">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Sirene</h3>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">INSEE</span>
</div>
<p class="text-gray-600 mb-4">Accès aux données des entreprises et établissements immatriculés au Registre du Commerce et des Sociétés (RCS).</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Vérification automatique des informations d'une entreprise partenaire avant signature de contrat.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://www.data.gouv.fr/fr/datasets/base-sirene-des-entreprises-et-de-leurs-etablissements-siren-siret/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Requiert clé API</span>
</div>
</div>
</div>
<!-- API 2 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="geographie">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Adresse</h3>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">IGN</span>
</div>
<p class="text-gray-600 mb-4">Recherche et géocodage d'adresses en France à partir de la Base Adresse Nationale.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Auto-complétion d'adresses dans un formulaire de commande pour réduire les erreurs de saisie.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://adresse.data.gouv.fr/api-doc/adresse" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Libre accès</span>
</div>
</div>
</div>
<!-- API 3 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="transport">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Transport</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Ministère</span>
</div>
<p class="text-gray-600 mb-4">Données sur les transports publics (horaires, arrêts, lignes) pour toute la France.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Application mobile affichant les prochains passages aux arrêts de bus proches de l'utilisateur.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://transport.data.gouv.fr/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Libre accès</span>
</div>
</div>
</div>
<!-- API 4 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="entreprise">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API TVA</h3>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">DGFiP</span>
</div>
<p class="text-gray-600 mb-4">Vérification des numéros de TVA intracommunautaire des entreprises européennes.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Validation automatique des numéros de TVA dans un système de facturation électronique.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://www.data.gouv.fr/fr/datasets/api-de-recherche-dun-numero-de-tva-intracommunautaire/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Requiert clé API</span>
</div>
</div>
</div>
<!-- API 5 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="geographie">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Cadastre</h3>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">DGFiP</span>
</div>
<p class="text-gray-600 mb-4">Accès aux données cadastrales (parcelles, bâtiments) pour toute la France.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Visualisation des parcelles cadastrales sur une carte pour une estimation immobilière.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://cadastre.data.gouv.fr/api" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Libre accès</span>
</div>
</div>
</div>
<!-- API 6 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="economie">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Marchés Publics</h3>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">DINUM</span>
</div>
<p class="text-gray-600 mb-4">Accès aux données des marchés publics français (BOAMP, TED).</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Veille stratégique pour les entreprises souhaitant répondre à des appels d'offres.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://www.data.gouv.fr/fr/datasets/api-donnees-essentielles-de-la-commande-publique/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Libre accès</span>
</div>
</div>
</div>
<!-- API 7 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="entreprise">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API RNA</h3>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Ministère</span>
</div>
<p class="text-gray-600 mb-4">Répertoire National des Associations (RNA) contenant les informations sur les associations françaises.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Plateforme de mise en relation entre associations et bénévoles avec vérification des statuts.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://www.data.gouv.fr/fr/datasets/repertoire-national-des-associations/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Libre accès</span>
</div>
</div>
</div>
<!-- API 8 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="geographie">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API Géoportail</h3>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">IGN</span>
</div>
<p class="text-gray-600 mb-4">Services cartographiques et géographiques de référence pour la France.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Intégration de cartes officielles dans une application de gestion de territoires.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://geoservices.ign.fr/documentation/services/api-et-librairies" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Requiert clé API</span>
</div>
</div>
</div>
<!-- API 9 -->
<div class="api-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300" data-categories="economie">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-gray-800">API INSEE</h3>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">INSEE</span>
</div>
<p class="text-gray-600 mb-4">Accès aux indicateurs économiques et démographiques officiels de la France.</p>
<div class="mb-4">
<h4 class="font-semibold text-gray-800 mb-2">Cas d'usage :</h4>
<p class="text-gray-600 text-sm">Tableau de bord de suivi des indicateurs économiques pour une collectivité territoriale.</p>
</div>
<div class="flex justify-between items-center">
<a href="https://www.data.gouv.fr/fr/datasets/api-indicateurs-de-linsee/" target="_blank" class="text-blue-600 font-medium hover:underline">
Accéder <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
<span class="text-xs text-gray-500">Requiert clé API</span>
</div>
</div>
</div>
</div>
<div class="text-center mt-12">
<a href="https://www.data.gouv.fr/fr/dataservices/" target="_blank" class="inline-flex items-center px-6 py-3 bg-blue-600 text-white rounded-lg font-medium hover:bg-blue-700 transition">
Voir toutes les API sur data.gouv.fr
<i class="fas fa-external-link-alt ml-2"></i>
</a>
</div>
</div>
</section>
<!-- Resources Section -->
<section id="resources" class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Ressources pour développeurs</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-gray-50 rounded-xl p-6 hover:shadow-md transition">
<div class="text-blue-600 mb-4">
<i class="fas fa-book-open text-3xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-3">Documentation</h3>
<p class="text-gray-600 mb-4">
Accédez aux guides complets pour chaque API avec des exemples de requêtes et réponses.
</p>
<a href="https://doc.data.gouv.fr/" target="_blank" class="text-blue-600 font-medium hover:underline inline-flex items-center">
Consulter <i class="fas fa-chevron-right ml-1 text-sm"></i>
</a>
</div>
<div class="bg-gray-50 rounded-xl p-6 hover:shadow-md transition">
<div class="text-green-600 mb-4">
<i class="fas fa-code text-3xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-3">Bibliothèques client</h3>
<p class="text-gray-600 mb-4">
SDK et bibliothèques officielles pour intégrer facilement les API dans vos projets.
</p>
<a href="https://github.com/data-gouv" target="_blank" class="text-blue-600 font-medium hover:underline inline-flex items-center">
Découvrir <i class="fas fa-chevron-right ml-1 text-sm"></i>
</a>
</div>
<div class="bg-gray-50 rounded-xl p-6 hover:shadow-md transition">
<div class="text-purple-600 mb-4">
<i class="fas fa-comments text-3xl"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-3">Communauté</h3>
<p class="text-gray-600 mb-4">
Forum d'entraide et groupes d'échange pour poser vos questions et partager vos réalisations.
</p>
<a href="https://community.data.gouv.fr/" target="_blank" class="text-blue-600 font-medium hover:underline inline-flex items-center">
Participer <i class="fas fa-chevron-right ml-1 text-sm"></i>
</a>
</div>
</div>
</div>
</section>
<!-- Newsletter -->
<section class="gradient-bg text-white py-12">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-4">Restez informé</h2>
<p class="text-xl text-blue-200 max-w-2xl mx-auto mb-8">
Recevez les nouvelles API ajoutées et les mises à jour importantes.
</p>
<div class="max-w-md mx-auto flex">
<input type="email" placeholder="Votre email" class="flex-grow px-4 py-3 rounded-l-lg text-gray-800 focus:outline-none">
<button class="bg-yellow-500 text-gray-900 font-semibold px-6 py-3 rounded-r-lg hover:bg-yellow-600 transition">
S'abonner
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">API Data.gouv.fr</h3>
<p class="text-gray-400">
Ce site référence les principales API disponibles sur la plateforme data.gouv.fr.
</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Liens utiles</h3>
<ul class="space-y-2">
<li><a href="https://www.data.gouv.fr" target="_blank" class="text-gray-400 hover:text-white transition">data.gouv.fr</a></li>
<li><a href="https://www.api.gouv.fr" target="_blank" class="text-gray-400 hover:text-white transition">api.gouv.fr</a></li>
<li><a href="https://www.gouv.fr" target="_blank" class="text-gray-400 hover:text-white transition">gouv.fr</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Contact</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-envelope mr-2 text-gray-400"></i>
<a href="mailto:support@data.gouv.fr" class="text-gray-400 hover:text-white transition">support@data.gouv.fr</a>
</li>
<li class="flex items-center">
<i class="fab fa-github mr-2 text-gray-400"></i>
<a href="https://github.com/data-gouv" target="_blank" class="text-gray-400 hover:text-white transition">data-gouv</a>
</li>
<li class="flex items-center">
<i class="fab fa-twitter mr-2 text-gray-400"></i>
<a href="https://twitter.com/datagouvfr" target="_blank" class="text-gray-400 hover:text-white transition">@datagouvfr</a>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500">
<p>© 2023 Référence API Data.gouv.fr - Ce site n'est pas affilié au service public</p>
</div>
</div>
</footer>
<script>
// Search functionality
const searchInput = document.getElementById('search-api');
searchInput.addEventListener('input', () => {
const searchTerm = searchInput.value.toLowerCase();
const apiCards = document.querySelectorAll('.api-card');
apiCards.forEach(card => {
const title = card.querySelector('h3').textContent.toLowerCase();
const description = card.querySelector('p').textContent.toLowerCase();
if (title.includes(searchTerm) || description.includes(searchTerm)) {
card.style.display = 'block';
// Highlight search term in text
if (searchTerm.length > 2) {
const regex = new RegExp(searchTerm, 'gi');
card.querySelector('h3').innerHTML = card.querySelector('h3').textContent.replace(regex, match => `<span class="search-highlight">${match}</span>`);
card.querySelector('p').innerHTML = card.querySelector('p').textContent.replace(regex, match => `<span class="search-highlight">${match}</span>`);
}
} else {
card.style.display = 'none';
}
});
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=olinux/api-gouv-fr" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>