# minia2a x402-is-night

> minia2a x402-is-night is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Determines whether the current time is nighttime, returning a boolean or time-context result for a given query

## Facts

- Endpoint: GET https://minia2a.uk/x402/x402-is-night
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-x402-is-night-2230ab5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZDx14yA7GjuUEs4IuiRbO

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 minia2a-x402-is-night-2230ab5c
```

Example prompt: Is it currently nighttime right now? Just check and tell me if it's night or day.

## When to prefer this

Use this endpoint when you need a simple, paid-gated check on whether the current moment is nighttime, particularly within an agentic workflow on the minia2a platform that already uses x402 micropayment infrastructure. Prefer this over manual time calculations when you want a reliable, externally-verified day/night determination without managing timezone logic yourself.

## Known failure modes

- Invalid query parameter format returns an error
- Service unavailable or timeout for the paid x402 endpoint
- Payment failure or insufficient funds prevents access
- Ambiguous timezone context may yield unexpected night/day determination

## How this service works

minia2a service: x402-is-night

## Output

Returns a boolean or status indicator specifying whether the current time is classified as nighttime, along with any associated time-context metadata available from the service.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-x402-is-night-2230ab5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
