Free
- 1 000 requêtes / mois
- 100 requêtes / jour
- 5 requêtes / minute
- Rayon 10 km
- 25 résultats / requête
- Historique 14 jours
- 1 clé active
Integrate MaPompe stations and fuel prices into an application, website or service.
01 · GETTING STARTED
The commercial API uses API-key authentication. Calls are intended for server-to-server use.
02 · AUTHENTICATION
Create a key from My account → Developer API. The full key is displayed only once.
Bearer authentication is also accepted:
03 · ENDPOINT
/api/v1/stations
Returns the nearest active stations, sorted by price and then distance.
| Parameter | Type | Required | Description |
|---|---|---|---|
lat |
number | Yes | Latitude du centre. |
lng |
number | Yes | Longitude du centre. |
radius |
number | No | Rayon en kilomètres selon le plan. |
fuel |
string | No | gazole, e10, sp95, sp98, e85 ou gplc. |
limit |
integer | No | Nombre maximal de stations selon le plan. |
04 · ENDPOINT
/api/v1/search
Search by name, brand, address, city, postal code or Google display name.
| Parameter | Type | Required | Description |
|---|---|---|---|
q |
string | Yes | 3 à 80 caractères. |
limit |
integer | No | Nombre maximal de résultats selon le plan. |
05 · ENDPOINT
/api/v1/stations/{station_id}/history
Returns the price evolution for a fuel at a station. Available history depends on the plan.
| Parameter | Type | Required | Description |
|---|---|---|---|
station_id |
integer | Yes | Identifiant de la station dans MaPompe. |
fuel |
string | No | Carburant demandé. |
days |
integer | No | Nombre de jours selon le plan. |
06 · PLANS
07 · ERRORS
| Code | Error | Meaning |
|---|---|---|
200 |
OK | Request processed. |
400 |
Paramètres invalides | A parameter is missing, invalid or outside the allowed range. |
401 |
Clé invalide | Key missing, invalid or revoked. |
404 |
Not found | Station does not exist or is inactive. |
429 |
Limite atteinte | Monthly, daily or per-minute limit exceeded. |
500 |
Server error | Internal service error. |
BEST PRACTICES
Cache results server-side where appropriate. There is no need to request the same area repeatedly within a short period.
Keep the key in an environment variable or secret manager. Never commit it to Git.
Use the X-RateLimit-Remaining and X-Quota-Remaining headers to drive your integration.
The API is intended for application integration, not to build a copy of the MaPompe database.