# greeneris-data French Business Days Calculator

> greeneris-data French Business Days Calculator is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Calculates French business days by adding a number of working days to a start date, or counts business days in a date range, accounting for French public holidays and weekends.

## Facts

- Endpoint: GET https://data.greeneris.io/v1/fr/business-days
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-french-business-days-calculator-03605b6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5RtqwCWCN4m6YrWKP7OEE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-french-business-days-calculator-03605b6a
```

Example prompt: Starting from July 13, 2026, what date do I land on if I add 30 French business days (jours ouvrés mode), and which public holidays are crossed along the way?

## When to prefer this

Use this endpoint when you need to calculate deadlines, SLA dates, or notice periods that must respect French public holidays and the French legal definition of working days (jours ouvrés or ouvrables). Ideal for French contract law, invoice due dates, legal notice periods, HR calculations, or any workflow tied to the French business calendar. Prefer over generic calendar APIs when French holiday accuracy is required.

## Known failure modes

- Missing required 'start' or 'from'/'to' parameters returns an error
- Invalid ISO date format causes a 400 error
- 'add' value outside 1-366 range may be rejected
- Ambiguous use of both 'start+add' and 'from+to' simultaneously may cause an error
- Network or payment failure returns HTTP 402 with a machine-readable USDC quote before payment

## How this service works

Adds N French business days to a date (?start=2026-07-13&add=30) or counts them over a range (?from=2026-07-01&to=2026-09-30). Skips weekends and the 11 French legal public holidays (movable feasts computed via Butcher-Meeus). mode=ouvres (Mon-Fri, default) or ouvrables (Mon-Sat). Deterministic local computation, JSON.

## Output

Returns a JSON object with: the end date after adding the requested business days, total calendar days elapsed, number of business days added, list of French public holidays crossed (with names and dates), the mode used (ouvres or ouvrables), and the computation source/methodology.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "description": "ISO range end (inclusive)"
      },
      "add": {
       "type": "integer",
       "description": "Business days to add, 1-366 (default 1)"
      },
      "from": {
       "type": "string",
       "description": "ISO range start (use with to, counting mode)"
      },
      "mode": {
       "enum": [
        "ouvres",
        "ouvrables"
       ],
       "type": "string",
       "default": "ouvres"
      },
      "start": {
       "type": "string",
       "description": "ISO date to add business days to (use with add)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "ouvres",
  "start": "2026-07-13",
  "source": "Computed locally: French legal holidays (Code du travail L3133-1), Easter via Butcher-Meeus",
  "end_date": "2026-08-25",
  "calendar_days": 43,
  "holidays_crossed": [
   {
    "date": "2026-07-14",
    "name": "fete_nationale"
   },
   {
    "date": "2026-08-15",
    "name": "assomption"
   }
  ],
  "business_days_added": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-french-business-days-calculator-03605b6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
