PTP (road accidents)

Bulgarian MoI road accident reports and deadly location clusters.

OpenAPI
/openapi.json
Payment
x402 · $0.01 USDC · Base, Polygon, Arbitrum One
GET/api/ptp/getPtpPerCityx402 paid

Road accidents for a city

Crashes for a city (Latin or Cyrillic names). Optional year or from/to.

ParamInTypeDescription
city (required)querystringCity name (e.g. Sofia, Варна).
yearqueryintegerCalendar year.
fromquerystringWindow start.
toquerystringWindow end.
limitqueryintegerMax rows (newest first).
GET https://api.datanexusai.org/api/ptp/getPtpPerCity?city=Sofia&year=2025

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.

GET/api/ptp/getPtpPerCity/{city}x402 paid

Road accidents for a city (path)

Same as getPtpPerCity with city in the path.

ParamInTypeDescription
city (required)pathstringCity name.
yearqueryintegerCalendar year.
fromquerystringWindow start.
toquerystringWindow end.
limitqueryintegerMax rows.
GET https://api.datanexusai.org/api/ptp/getPtpPerCity/Sofia

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.

GET/api/ptp/getPtpPerRegionx402 paid

Road accidents for a region/oblast

Crashes in a district/oblast. Sofia maps to Sofia city, not district.

ParamInTypeDescription
region (required)querystringRegion/oblast name.
yearqueryintegerCalendar year.
fromquerystringWindow start.
toquerystringWindow end.
limitqueryintegerMax rows.
GET https://api.datanexusai.org/api/ptp/getPtpPerRegion?region=Sofia&year=2025

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.

GET/api/ptp/getPtpPerRegion/{region}x402 paid

Road accidents for a region (path)

Same as getPtpPerRegion with region in the path.

ParamInTypeDescription
region (required)pathstringRegion/oblast name.
yearqueryintegerCalendar year.
fromquerystringWindow start.
toquerystringWindow end.
limitqueryintegerMax rows.
GET https://api.datanexusai.org/api/ptp/getPtpPerRegion/Sofia

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.

GET/api/ptp/getMostDeadlyLocationsx402 paid

Deadliest crash location clusters

Deadliest 2 km crash clusters for a year or date window.

ParamInTypeDescription
yearqueryintegerCalendar year.
fromquerystringWindow start.
toquerystringWindow end.
limitqueryintegerMax clusters (default 20).
GET https://api.datanexusai.org/api/ptp/getMostDeadlyLocations?year=2020

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.

GET/api/ptp/getMostDeadlyLocations/{year}x402 paid

Deadliest locations (path year)

Same as getMostDeadlyLocations with year in the path.

ParamInTypeDescription
year (required)pathintegerCalendar year.
limitqueryintegerMax clusters.
GET https://api.datanexusai.org/api/ptp/getMostDeadlyLocations/2020

Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.