{"uid":"cap_51Y0n4S5TlIGqPtvRgWG7","slug":"datanexusai-ptp-road-accidents-by-city-0e43811a","name":"DataNexusAI PTP Road Accidents by City","description":"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.\n\nMachine-readable discovery: `https://api.datanexusai.org/openapi.json`, `https://api.datanexusai.org/llms.txt`, `https://api.datanexusai.org/.well-known/x402`.\n\nHuman docs: `/docs` and `/api/`.","url":"https://api.datanexusai.org/api/ptp/getPtpPerCity/%7Bcity%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"},"pathParams":{"type":"object","required":["city"],"properties":{"city":{"type":"string","example":"Sofia","description":"City name."}}},"queryParams":{"type":"object","properties":{"to":{"type":"string","description":"Window end."},"from":{"type":"string","description":"Window start."},"year":{"type":"integer","description":"Calendar year."},"limit":{"type":"integer","description":"Max rows."}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fqDzfgd826XuQHZXhVaFh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns road accident statistics from Bulgaria's PTP dataset filtered by city, with optional date window and year filters","exampleAgentPrompt":"Pull the road accident statistics from the PTP dataset for Sofia, Bulgaria for the year 2023 — limit it to 50 rows.","exampleUseCases":[{"title":"City road safety analysis for Sofia","prompt":"Get me all PTP road accident records for Sofia from January 2022 to December 2023 so I can analyze the trend."},{"title":"Annual accident count for Plovdiv","prompt":"How many road accidents were recorded in Plovdiv in 2022 according to the PTP dataset? Limit to 100 rows."},{"title":"Recent accident data for Varna","prompt":"Fetch the latest PTP road accident data for Varna — just the most recent entries, up to 20 rows."}],"resultDescription":"Returns rows from the Bulgarian PTP road accident dataset filtered to the specified city. Each row contains accident event data for that city. Results can be scoped by a date window (from/to), a specific calendar year, and a maximum row count. Paid via USDC micropayment ($0.01 per call).","failureModes":["City name not found or misspelled — returns empty results or 404","Invalid date format for from/to parameters — returns validation error","Payment not provided or insufficient — returns HTTP 402 requiring USDC micropayment","Limit parameter out of accepted range — returns validation error","Service unavailable — returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need structured road accident statistics for a specific Bulgarian city from the PTP dataset, especially when you need to filter by date range or year. It is a cost-effective micropayment endpoint ($0.01 USDC) suitable for per-query lookups. Prefer this over general web search when you need structured, machine-readable accident records rather than narrative news results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:42:31.412Z","isFirstParty":false,"canonicalSlug":"datanexusai-ptp-road-accidents-by-city-6ae37533"}