# Indo News API — Indonesian Working Days Calculator

> Indo News API — Indonesian Working Days Calculator is a paid API for AI agents from indo-news-api.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-23).

Calculates working days, weekend days, public holidays, and calendar days between two dates for Indonesia

## Facts

- Endpoint: GET https://indo-news-api.vercel.app/workdays?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/indo-news-api-indonesian-working-days-calculator-7c6fe139
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ziC4l_Oc4jH7xvUXqmApZ

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 indo-news-api-indonesian-working-days-calculator-7c6fe139
```

Example prompt: How many working days are there in Indonesia between December 20, 2026 and January 10, 2027, excluding weekends and public holidays?

## When to prefer this

Choose this endpoint when you need accurate Indonesian-specific working day counts that account for local public holidays declared by the Indonesian government (not just generic weekday counting). It is ideal for payroll systems, project scheduling, SLA calculations, or contract management involving Indonesian employees or operations. Prefer this over generic date calculators when Indonesian public holidays must be excluded from the count.

## Known failure modes

- Missing required 'from' or 'to' query parameters returns an error
- Invalid date format (non ISO YYYY-MM-DD) causes a parse error
- 'from' date after 'to' date may return zero or negative counts
- Dates far in the future may lack holiday data, reducing accuracy
- Payment not completed in USDC on Base results in HTTP 402 response

## How this service works

Indonesian headlines, keyword search and ranked briefings, plus reference data: USD/IDR and any FX pair, BTC/ETH/USDT in rupiah, BMKG earthquakes and public holidays. Structured JSON, paid per call in USDC on Base. No API key, no signup.

## Output

A JSON object containing: total calendar_days, working_days (excluding weekends and Indonesian public holidays), weekend_days count, holiday_count for Indonesian public holidays in the range, and the first_working_day_on_or_after_from date — all for the specified date range.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Range end, ISO YYYY-MM-DD, both dates counted."
      },
      "from": {
       "type": "string",
       "description": "Range start, ISO YYYY-MM-DD."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2027-01-10",
  "from": "2026-12-20",
  "weekend_days": 7,
  "working_days": 10,
  "calendar_days": 22,
  "holiday_count": 5,
  "first_working_day_on_or_after_from": "2026-12-21"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/indo-news-api-indonesian-working-days-calculator-7c6fe139/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from indo-news-api.vercel.app](https://www.zero.xyz/host/indo-news-api.vercel.app/llms.txt)
