80trust / 100

Jp Open Data

by Maxwell x402 in Search & web

x402 APIPassing, checked 3 h ago

Search the national open data portal of Japan (the e-Gov data portal) by keyword, or fetch one dataset by id: title, publishing organization, last modified date where the portal gives one, number of files and the official link, under the portal's licence terms (a dataset's own licence is on its official page). Uncached: 404, not charged, fetched within about a minute.

GET https://api.maxwellinternational.ai/v1/gov/jp/open-data

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
99 ms typical, 99 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.maxwellinternational.ai/v1/gov/jp/open-data?q=%3F%3F"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.maxwellinternational.ai%2Fv1%2Fgov%2Fjp%2Fopen-data
const res = await pay("https://api.maxwellinternational.ai/v1/gov/jp/open-data?q=%3F%3F");
console.log(await res.json());

Example input

{
  "q": "??"
}

Example output

{
  "count": 10,
  "country": "Japan",
  "family": "open_data",
  "hash": "258f526ba9abfce9",
  "items": [
    {
      "id": "cao_20151013_0305",
      "modified": "2023-06-01T21:56:08.231135",
      "organization": "???",
      "resourceCount": 2,
      "sourceUrl": "https://data.e-gov.go.jp/data/dataset/cao_20151013_0305",
      "title": "ESRI Discussion Paper No.121"
    }
  ],
  "licence": {
    "name": "Government of Japan Standard Terms of Use 2.0 (compatible with CC BY 4.0); ea...",
    "url": "https://www.digital.go.jp/resources/open_data/public_data_license_v1.0"
  },
  "ok": true,
  "query": "??",
  "sku": "gov.jp.open_data",
  "source": "e-Gov data portal (data.go.jp)",
  "sourceUrl": "https://data.e-gov.go.jp/",
  "totalCount": 4699
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402212 ms$0.005
8 h agoPassed40299 ms$0.005