# DataNexusAI PTP Road Accidents by City

> DataNexusAI PTP Road Accidents by City is a paid API for AI agents from api.datanexusai.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Retrieves Bulgarian PTP road accident statistics filtered by city, with optional date range and year filters.

## Facts

- Endpoint: GET https://api.datanexusai.org/api/ptp/getPtpPerCity?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanexusai-ptp-road-accidents-by-city-6ae37533
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7W6Y3Vd73eCHy4K0GTBHJ

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 datanexusai-ptp-road-accidents-by-city-6ae37533
```

Example prompt: Can you pull the road accident statistics for Sofia from the PTP dataset, covering the year 2024, and give me the 50 most recent records?

## When to prefer this

Use this endpoint when you need Bulgarian PTP road accident data broken down by city, especially when filtering by a specific year or date range. Prefer this over generic search if you need structured tabular accident records per Bulgarian municipality.

## Known failure modes

- Missing required 'city' parameter returns a 400 or validation error
- Unknown or misspelled city name may return empty results
- Payment failure or insufficient USDC balance returns HTTP 402
- Date range with no matching records returns empty array
- Very large limit values may be capped or slow

## How this service works

Public data API for SEBRA payments, PTP road accidents, Hearthstone cards, EU agri-food prices, and trade/market analytics. Paid data endpoints use x402 (USDC micropayments). Docs and discovery endpoints are free.

Machine-readable discovery: `https://api.datanexusai.org/openapi.json`, `https://api.datanexusai.org/llms.txt`, `https://api.datanexusai.org/.well-known/x402`.

Human docs: `/docs` and `/api/`.

## Output

Returns a list of PTP road accident records for the specified city, ordered newest-first, with optional filtering by calendar year or date window and a configurable row limit.

## 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",
     "required": [
      "city"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Window end."
      },
      "city": {
       "type": "string",
       "example": "Sofia",
       "description": "City name (e.g. Sofia, Варна)."
      },
      "from": {
       "type": "string",
       "description": "Window start."
      },
      "year": {
       "type": "integer",
       "example": 2025,
       "description": "Calendar year."
      },
      "limit": {
       "type": "integer",
       "description": "Max rows (newest first)."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datanexusai-ptp-road-accidents-by-city-6ae37533/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.datanexusai.org](https://www.zero.xyz/host/api.datanexusai.org/llms.txt)
