# JP Grants API — Japanese Government Subsidy & Grant Deadline Search

> JP Grants API — Japanese Government Subsidy & Grant Deadline Search is a paid API for AI agents from jp-grants-data-api.kasanegi123.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Searches aggregated Japanese government grants and subsidies (J-Grants, Mirasapo Plus, e-Stat) by keyword, industry, prefecture, company size, and deadline proximity, returning ranked results with deadlines and subsidy amounts.

## Facts

- Endpoint: GET https://jp-grants-data-api.kasanegi123.workers.dev/api/grants/search
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jp-grants-api-japanese-government-subsidy-grant-deadline-search-89d97560
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ypSGrqS_yYolWHEdpiDzA

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 jp-grants-api-japanese-government-subsidy-grant-deadline-search-89d97560
```

Example prompt: Search Japanese government grants for small manufacturing companies in Aichi prefecture with deadlines within 60 days — show me the top 10 results with their subsidy amounts and days remaining.

## When to prefer this

Use this endpoint when an agent needs to discover or track Japanese government subsidy and grant programs with deadline awareness, especially for SMEs or businesses filtering by region (prefecture), industry, or company size. Prefer over manual scraping of jgrants-portal.go.jp or mirasapo-plus.go.jp when aggregated, ranked, deadline-sorted results are needed in a single API call. Best suited for Japanese market business support workflows.

## Known failure modes

- HTTP 402 Payment Required — micropayment not included or insufficient; response is a shape preview only (echoes query keys, no live data)
- No results returned if keyword/filters do not match any grants in D1 database
- Japanese UTF-8 encoding issues if client does not handle UTF-8 properly
- Stale data if upstream J-Grants or Mirasapo Plus has not been synced recently
- Invalid filter values (e.g. unrecognised prefecture or industry code) may return empty result set

## How this service works

Japanese government subsidy / grant deadline tracker for AI agents (J-Grants + Mirasapo Plus + e-Stat aggregated). x402 micropayments on Base. No API key.

## Output

A JSON array of up to `limit` (default 20) grant records each containing grant name (in Japanese UTF-8), grant_id, issuing ministry, deadline_date, deadline_type (fixed/rolling), max_subsidy_amount (integer yen), and days_until_deadline (integer). Also returns total_count of matching records from J-Grants/Mirasapo Plus, plus attribution metadata.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "name": "<Grant name in Japanese UTF-8>",
    "grant_id": "<full paid response returns grant_id from D1>",
    "ministry": "<full paid response returns ministry from D1>",
    "deadline_date": "<full paid response returns deadline_date>",
    "deadline_type": "fixed",
    "max_subsidy_amount": "<integer: full paid response returns max_subsidy_amount from D1>",
    "days_until_deadline": "<integer: full paid response computes from deadline_date>"
   }
  ],
  "_role": "shape_preview_echoes_query_for_paid_response",
  "query": {
   "limit": null,
   "offset": null,
   "keyword": null,
   "industry": null,
   "prefecture": null,
   "company_size": null,
   "deadline_within": null
  },
  "total_count": "<integer: unpaid 402 shape preview does not query live upstream; full paid response returns the J-Grants matching count>",
  "_attribution": {
   "j_grants": "Digital Agency J-Grants (jgrants-portal.go.jp)",
   "mirasapo": "METI Mirasapo Plus (mirasapo-plus.go.jp)"
  },
  "_sample_note": "Unpaid 402 shape preview echoes only ALLOWED_QUERY_KEYS for /api/grants/search (= keyword / deadline_within / prefecture / industry / company_size / limit / offset). Paid 200 queries D1 jp_grants with full filter set and returns ranked results.",
  "returned_count": "<integer: full paid response returns up to limit (default 20)>"
 },
 "mimeType": "application/json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jp-grants-api-japanese-government-subsidy-grant-deadline-search-89d97560/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jp-grants-data-api.kasanegi123.workers.dev](https://www.zero.xyz/host/jp-grants-data-api.kasanegi123.workers.dev/llms.txt)
