Discover/service-public.fr API
live

service-public.fr APIservice-public.fr

Access structured French government guides, administrative procedures, and legal references from service-public.fr via 3 API endpoints covering search, autocomplete, and Fiches Pratiques.

Endpoints
3
Updated
14d ago
Try it
Search term to get autocomplete suggestions for (e.g. 'retraite', 'logement')
api.parse.bot/scraper/ea53a944-7aff-4f88-9cab-0d2d959bd911/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ea53a944-7aff-4f88-9cab-0d2d959bd911/get_suggestions?query=retraite' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Get autocomplete suggestions and direct access links for a search term on service-public.fr.

Input
ParamTypeDescription
queryrequiredstringSearch term to get autocomplete suggestions for (e.g. 'retraite', 'logement')
Response
{
  "type": "object",
  "fields": {
    "acces_direct": "object containing categorized direct access links (fiches_pratiques, slf, actualites)",
    "autocomplete": "array of suggested search terms"
  },
  "sample": {
    "data": {
      "acces_direct": {
        "slf": [
          {
            "url": "/particuliers/vosdroits/R60625",
            "title": "Frais de justice applicables au règlement des petits litiges en Europe"
          }
        ],
        "actualites": [
          {
            "url": "/particuliers/actualites/A18404",
            "title": "Affaires civiles - Simplifiez vos démarches civiles grâce à l'application justice.fr"
          }
        ],
        "fiches_pratiques": [
          {
            "url": "/particuliers/vosdroits/N261",
            "title": "Accès au droit et à la justice"
          }
        ]
      },
      "autocomplete": [
        "justice",
        "commissaire de justice",
        "décision de justice"
      ]
    },
    "status": "success"
  }
}

About the service-public.fr API

The service-public.fr API exposes 3 endpoints for querying the official French public service portal: full-text search across practical guides and news, autocomplete suggestions with direct-access link bundles, and structured retrieval of any Fiche Pratique or category page by its ID. The get_fiche_by_id endpoint returns parsed sections, breadcrumb navigation, introductory text, and raw page content for guides covering topics from housing and retirement to civil status and taxation.

Search and Autocomplete

The search_site endpoint accepts a query string and an optional page integer for pagination. Each result object in the results array includes a title, url, and id — the last of which can be passed directly to get_fiche_by_id for structured content retrieval. The response also returns total_results_on_page so you can detect sparse result pages without an extra request.

The get_suggestions endpoint returns two structures for a given query: an autocomplete array of suggested search terms, and an acces_direct object that groups direct-access links into three categories — fiches_pratiques, slf (services en ligne et formulaires), and actualites (news). This is useful for building typeahead interfaces or surfacing the most relevant official resources for a given topic without a full search.

Structured Guide Retrieval

get_fiche_by_id accepts an id parameter following the portal's naming conventions: F prefix for individual practical guides (e.g. F32239), N for category/node pages (e.g. N31146), and R for resource references. The response includes title, intro, breadcrumb (as an array of navigation labels), sections (each with a title and content field, mirroring the accordion structure of the source page), and raw_text for full-text use cases. The url field gives the canonical page address for citation or linking.

Coverage Scope

The API covers all publicly accessible content on service-public.fr: practical guides for individuals, professionals, and associations; administrative procedure descriptions; legal text references; and news items. Content is in French, reflecting the source portal. IDs for specific guides are discoverable through search_site result objects or from the portal's own URL structure.

Common use cases
  • Building a French administrative chatbot that retrieves structured Fiche Pratique sections by ID for accurate procedure answers
  • Populating a typeahead search field with get_suggestions autocomplete terms and direct links for government topics
  • Indexing service-public.fr guides by crawling search_site results page by page and fetching full content via get_fiche_by_id
  • Extracting breadcrumb paths from guide responses to map the taxonomy of French administrative topics
  • Monitoring updates to specific Fiches Pratiques by polling get_fiche_by_id with known IDs and comparing raw_text or sections
  • Surfacing relevant official French government resources within a legal-tech or HR compliance application using search_site queries
  • Resolving administrative procedure details for a given topic by chaining search_site to retrieve IDs and then get_fiche_by_id for full structured content
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does service-public.fr have an official developer API?+
Service-public.fr does not publish a general-purpose developer API for programmatic access to its guide content. The French government's data.gouv.fr platform offers some open datasets, but structured access to Fiches Pratiques content is not part of those offerings.
What does `get_fiche_by_id` return for a category page (N-prefix ID) versus an individual guide (F-prefix ID)?+
Both types return the same response shape — title, intro, breadcrumb, sections, raw_text, url, and id. Category pages (N-prefix) tend to have sections that list child guides rather than procedural steps, while individual guides (F-prefix) typically have accordion sections with detailed procedural or legal content. The breadcrumb array reflects the page's position in the site hierarchy in both cases.
Does the API return content for pages that require a user account on service-public.fr?+
The API covers publicly accessible pages only. Personalized content, account-specific documents, and any material behind the France Connect authentication layer are not exposed. All three endpoints operate on the public-facing portal content.
Can I filter search results by topic category or document type (e.g. only Fiches Pratiques for professionals)?+
The search_site endpoint currently accepts a query string and a page number; there are no category, audience, or document-type filter parameters. Results mix guides, news, and services matching the query. You can fork the API on Parse and revise it to add filtering or faceted search capabilities against specific topic segments.
Is there a way to list all available Fiche IDs without searching?+
The API does not include a listing or sitemap endpoint that enumerates all Fiche IDs. IDs are currently discovered through search_site result objects or by knowing the ID from the portal's URL structure. You can fork the API on Parse and revise it to add a sitemap-traversal or category-crawl endpoint that enumerates guides systematically.
Page content last updated . Spec covers 3 endpoints from service-public.fr.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.