{"uid":"cap_Pwo2Xws0qXtR5hqyXrBWM","slug":"afad-earthquake-operations-router-c043e790","name":"AFAD Earthquake Operations Router","description":"Pay-per-call data & tool APIs","url":"https://api.timzinin.com/api/afad-earthquake-operations-router","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","required":["assetId","assetType","latitude","longitude"],"properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]+$","maxLength":64,"minLength":1},"latitude":{"type":"number","maximum":43,"minimum":34},"assetType":{"enum":["site","warehouse","store","route_waypoint"],"type":"string"},"longitude":{"type":"number","maximum":46,"minimum":24}},"additionalProperties":false},"maxItems":100,"minItems":1},"maxAlerts":{"type":"integer","maximum":100,"minimum":1},"requestId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","maxLength":64,"minLength":8},"alertRadiusKm":{"type":"number","maximum":1000,"minimum":1},"maximumDepthKm":{"type":"number","maximum":800,"minimum":0},"inspectMagnitude":{"$ref":"#/definitions/bazaarShared0"},"minimumMagnitude":{"$ref":"#/definitions/bazaarShared0"},"rerouteMagnitude":{"$ref":"#/definitions/bazaarShared0"},"maxTotalChargeUsd":{"type":"number","maximum":100,"minimum":0.005},"maximumEventAgeHours":{"type":"integer","maximum":168,"minimum":1},"pauseDispatchMagnitude":{"$ref":"#/definitions/bazaarShared0"}}},"responseSchema":{"type":"json","example":{"meta":{"run_ms":1200,"settled":true,"item_count":1},"results":[{"action":"inspect_asset_and_review","source":{"url":"https://deprem.afad.gov.tr/last-earthquakes.html","bytes":66335,"route":"direct","bodySha256":"32c38e20134f2beffa6c7dca67f39db776ac9f39c92194abef85279b7e9e7f30","eventCount":100,"retrievedAt":"2026-08-14T06:41:03.943Z","declaredBytes":66335,"canonicalEventsSha256":"c31d9dd610f37d4809232fd2c4c174be6c9c4222d4c3d9fdb6e96423ed375186"},"assetId":"canary_east_bc329b33","country":"TR","depthKm":17.95,"eventId":590377,"product":"afad-earthquake-operations-router","reasons":{"withinAlertRadius":true,"magnitudeAtLeastInspect":true,"depthWithinCustomerMaximum":true,"magnitudeAtLeastPauseDispatch":false,"routeWaypointRerouteThresholdMet":false},"baseline":false,"billable":true,"decision":"event-to-asset operational proximity alert","location":"Göynücek (Amasya)","stableId":"AFAD:590377:98e8887dd503ab4bc05d","assetType":"route_waypoint","magnitude":3.6,"distanceKm":413.148,"attribution":"Source: AFAD Turkey Earthquake Data Center (TDVMS). Minimal public event facts reproduced with AFAD/TDVMS attribution.","sourceStats":{"distanceMethod":"haversine_straight_line","sourceEventCount":100,"eligibleEventCount":100,"returnedAlertCount":20,"truncatedByMaxAlerts":true,"matchedEventAssetPairs":174},"eventTimeTrt":"2026-08-13 13:33:37","eventTimeUtc":"2026-08-13T10:33:37.000Z","alertRadiusKm":1000,"assetLatitude":39,"eventLatitude":40.43083,"magnitudeType":"ML","priorityScore":58.24,"schemaVersion":"1.0","assetLongitude":40,"criteriaSha256":"ea053c86428913732f1e56b75db2b496e544e86788bf3d2c89a2f3c768a8bd4d","eventDetailUrl":"https://deprem.afad.gov.tr/event-detail/590377","eventLongitude":35.5415,"methodologyCaveat":"Operational proximity rule only. This Actor does not predict earthquakes, assess structural safety, or replace AFAD/emergency instructions."}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WZL9sX0sgMvenIaN-qNLE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns proximity-based earthquake alerts from AFAD Turkey data for registered assets (routes, waypoints, facilities), with operational decision logic indicating whether to inspect, pause dispatch, or reroute.","exampleAgentPrompt":"Check if any earthquakes from AFAD in the last 24 hours are within 1000 km of my route waypoint at 39°N, 40°E — I need to know if I should inspect the asset or pause dispatch based on magnitude and depth.","exampleUseCases":[{"title":"Fleet dispatch safety check","prompt":"Before I send my drivers out on the eastern Turkey corridor today, check AFAD earthquake data for any events within 800 km of our main waypoint at 40.2°N, 36.5°E and tell me if we should hold dispatch or proceed."},{"title":"Warehouse seismic proximity alert","prompt":"I have a warehouse asset at 39°N, 40°E — run an AFAD earthquake operations check to see if any recent quakes are close enough to warrant an inspection, and give me the priority score and decision."},{"title":"Route rerouting threshold evaluation","prompt":"We have a delivery route with a waypoint near Amasya. Pull the latest AFAD earthquake events and tell me whether the reroute threshold has been met for any of them, including the distances and magnitudes."}],"resultDescription":"A JSON object with a meta block (run time, item count, settlement status) and a results array. Each result includes: the recommended action (e.g. inspect_asset_and_review), event details (magnitude, depth, location, time in UTC and TRT, AFAD event ID and detail URL), asset details (type, coordinates, ID), distance in km, a reasons object with boolean flags for each threshold (alert radius, magnitude, depth, reroute), a numeric priority score, a decision label, and attribution to AFAD/TDVMS. Source statistics summarize how many events were evaluated and how many alerts were returned.","failureModes":["Asset coordinates out of range or malformed — returns no matching alerts","AFAD source data temporarily unavailable — stale or empty results","Max alert count truncation — results capped at 20, sourceStats.truncatedByMaxAlerts flag set to true","Invalid asset type enum — request rejected or no results returned","Magnitude or depth thresholds misconfigured — all events filtered out","Payment settlement failure via x402 — call not executed"],"whenToPreferThis":"Choose this endpoint when you need real-time operational earthquake proximity decisions for specific assets or route waypoints in Turkey using official AFAD data, with built-in threshold logic (magnitude, depth, radius) that outputs an actionable decision rather than raw seismic data. Prefer this over raw earthquake feeds when you need structured alert reasons, priority scoring, and action recommendations (inspect, pause, reroute) without building your own proximity and decision logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:55.155Z","isFirstParty":false}