← All APIs
PTP (road accidents)
Bulgarian MoI road accident reports and deadly location clusters.
GET/api/ptp/getPtpPerCityx402 paid
Road accidents for a city
Crashes for a city (Latin or Cyrillic names). Optional year or from/to.
| Param | In | Type | Description |
city (required) | query | string | City name (e.g. Sofia, Варна). |
year | query | integer | Calendar year. |
from | query | string | Window start. |
to | query | string | Window end. |
limit | query | integer | Max rows (newest first). |
Example: GET /api/ptp/getPtpPerCity?city=Sofia&year=2025
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.
| Param | In | Type | Description |
city (required) | path | string | City name. |
year | query | integer | Calendar year. |
from | query | string | Window start. |
to | query | string | Window end. |
limit | query | integer | Max rows. |
Example: GET /api/ptp/getPtpPerCity/Sofia
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.
| Param | In | Type | Description |
region (required) | query | string | Region/oblast name. |
year | query | integer | Calendar year. |
from | query | string | Window start. |
to | query | string | Window end. |
limit | query | integer | Max rows. |
Example: GET /api/ptp/getPtpPerRegion?region=Sofia&year=2025
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.
| Param | In | Type | Description |
region (required) | path | string | Region/oblast name. |
year | query | integer | Calendar year. |
from | query | string | Window start. |
to | query | string | Window end. |
limit | query | integer | Max rows. |
Example: GET /api/ptp/getPtpPerRegion/Sofia
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.
| Param | In | Type | Description |
year | query | integer | Calendar year. |
from | query | string | Window start. |
to | query | string | Window end. |
limit | query | integer | Max clusters (default 20). |
Example: GET /api/ptp/getMostDeadlyLocations?year=2020
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.
| Param | In | Type | Description |
year (required) | path | integer | Calendar year. |
limit | query | integer | Max clusters. |
Example: GET /api/ptp/getMostDeadlyLocations/2020
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.