Logistics
CNR logo

CNR API

cnr.fr

Comite National Routier official French road-freight cost indices

Actions
6
Category
Logistics
Login
Not required
Output
JSON

Call the CNR API

Submit a task, then poll the job until it settles. This example runs act_cnr_fr_european_diesel_comparison.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_cnr_fr_european_diesel_comparison",
    "params": {}
  }'

6 actions on cnr.fr

Read

  • CNR European diesel price comparison

    act_cnr_fr_european_diesel_comparisonread1 credit / call

    CNR European diesel price comparison by country from the EU oil bulletin

  • DROM overseas diesel indices

    act_cnr_fr_drom_dieselread1 credit / call

    Latest CNR DROM overseas diesel indices (Guadeloupe, Guyane, Martinique, La Réunion)

  • Gazole professionnel bimonthly values

    act_cnr_fr_gazole_bimonthlyread1 credit / call

    Bimonthly CNR gazole professionnel history (first and second half of each month) as the official spreadsheet

    year
    integer · required
  • Indicator latest value

    act_cnr_fr_indicator_latestread1 credit / call

    Latest CNR indicator value by id, with its month and base

    indicator_id
    integer · required
  • Indicator monthly values

    act_cnr_fr_indicator_monthlyread1 credit / call

    Monthly CNR indicator values by indicator id and year (month and value list)

    indicator_id
    integer · required
    year
    integer · required
  • Latest CNR professional diesel index

    act_cnr_fr_gazole_professionnel_latestread1 credit / call

    Latest Indice CNR gazole professionnel monthly value, month, base and publication date

CNR API questions

Is there an API for CNR?
CNR does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for cnr.fr. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape CNR data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when cnr.fr changes its markup, Anakin updates the action.
Do I need a CNR account?
No. Every CNR action listed here runs anonymously — no account and no credentials required.
What does the CNR API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Logistics APIs

All Logistics sites