/api/hazard/plane-crashes/1 क्रेडिटविमान दुर्घटनाएँ
विमान दुर्घटनाओं का सहेजा हुआ डेटा सेट, हर दुर्घटना के लिखित विवरण के साथ, 1920 के दशक से अब तक। यह पुरानी घटनाओं का रिकॉर्ड है, कोई ज्योतिषीय गणना नहीं, और कुंडली वाले एंडपॉइंट के साथ इसलिए है कि किसी दुर्घटना का समय और स्थान सीधे कुंडली में डाला जा सके। `country`, `region`, `aircraft`, `operator`, `crash_cause`, `flight_phase` और `flight_type` से फ़िल्टर करें — सभी में केस-असंवेदी आंशिक मिलान होता है — दुर्घटना की तारीख़ पर `start_date` और `end_date` से, और `min_fatalities` से। `sort` में 'newest' (डिफ़ॉल्ट), 'oldest', विमान के प्रकार पर 'name_asc' और 'name_desc', और 'fatalities_desc' या 'fatalities_asc' चलते हैं। पेजिंग `page` और `itemsPerPage` से होती है: डिफ़ॉल्ट रूप से प्रति पेज पचास, अधिकतम पाँच सौ। उत्तर पेजिंग वाले ढाँचे में आता है: `count`, `next`, `previous` और `results`। हर नतीजे में तारीख़ और स्थानीय समय की स्ट्रिंग, विमान का प्रकार और संचालक, उड़ान का चरण और प्रकार, दुर्घटना स्थल का वर्गीकरण और फ़्री-टेक्स्ट में जगह, देश और क्षेत्र, अक्षांश और देशांतर, चालक दल, यात्रियों, अन्य लोगों और कुल मौतों की संख्या, बताया गया `crash_cause`, और क्या हुआ इसका `circumstances` पैराग्राफ़ होता है।
https://api.occultapi.com/api/hazard/plane-crashes/ऑथेंटिकेशन
अपनी कुंजी X-API-Key हेडर में भेजें। कुंजी सिर्फ़ सर्वर पर रखने की चीज़ है — इसे कभी ब्राउज़र के JavaScript या मोबाइल ऐप में न डालें।
X-API-Key: yt_live_a1b2c3d4_…क्वेरी पैरामीटर (13)
ये URL में भेजे जाते हैं। जिन पर ज़रूरी न लिखा हो, वे सब वैकल्पिक हैं, और इन्हें साथ में इस्तेमाल कर सकते हैं — पहले फ़िल्टर, फिर पेज, फिर क्रम।
| पैरामीटर | टाइप | उदाहरण | क्या करता है | |
|---|---|---|---|---|
| aircraft | string | — | विमान से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) फ़्री-फ़ॉर्म; विमान के प्रकार पर केस-असंवेदी `icontains` आंशिक मिलान। | |
| country | string | — | देश से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) | |
| crash_cause | string | — | दुर्घटना के कारण से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) | |
| end_date | string | — | अंतिम तारीख़ से फ़िल्टर करें (YYYY-MM-DD) फ़ॉर्मैट की शर्त: 'YYYY-MM-DD'। `date__lte` से तुलना की जाती है। | |
| flight_phase | string | — | उड़ान के चरण से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) | |
| flight_type | string | — | उड़ान के प्रकार से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) | |
| itemsPerPage | integer | — | प्रति पेज आइटम की संख्या | |
| min_fatalities | integer | — | न्यूनतम कुल मौतों से फ़िल्टर करें | |
| operator | string | — | संचालक से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) फ़्री-फ़ॉर्म; संचालक/एयरलाइन पर केस-असंवेदी `icontains` आंशिक मिलान। | |
| page | integer | — | पेज संख्या | |
| region | string | — | क्षेत्र से फ़िल्टर करें (केस-असंवेदी, आंशिक मिलान) | |
| sort | string | — | क्रम: 'newest' (डिफ़ॉल्ट), 'oldest', 'name_asc' (विमान A-Z), 'name_desc' (Z-A), 'fatalities_desc' (सबसे ज़्यादा मौतें पहले), या 'fatalities_asc' (सबसे कम पहले) केस-असंवेदी, स्पेस हटाकर। डिफ़ॉल्ट 'newest'। 'name_asc'/'name_desc' विमान के हिसाब से क्रम देते हैं (name_field='aircraft', किसी व्यक्ति के नाम से नहीं। अनजान वैल्यू चुपचाप 'newest' मान ली जाती हैं। इनमें से एक: newest, oldest, name_asc, name_desc, fatalities_desc, fatalities_asc | |
| start_date | string | — | आरंभ तारीख़ से फ़िल्टर करें (YYYY-MM-DD) फ़ॉर्मैट की शर्त: 'YYYY-MM-DD'। `date__gte` से तुलना की जाती है। |
उदाहरण अनुरोध
curl "https://api.occultapi.com/api/hazard/plane-crashes/" \
-H "X-API-Key: $OCCULT_API_KEY"उत्तर
{
"_truncated": true,
"_note": "Response shortened for the catalogue.",
"preview": "{\"count\": 100, \"next\": \"https://api.occultapi.com/api/hazard/plane-crashes/?page=2\", \"previous\": null, \"results\": [{\"id\": 100, \"date\": \"1926-09-29\", \"time\": \"23:55:00\", \"aircraft\": \"Farman F.60 Goliath\", \"operator\": \"French Air Force - Armée de l'Air\", \"flight_phase\": \"Flight\", \"flight_type\": \"Training\", \"crash_site\": \"Plain, Valley\", \"crash_location\": \"Bonneval Eure-et-Loir\", \"country\": \"France\", \"region\": \"Europe\", \"latitude\": 48.18118, \"longitude\": 1.386218, \"crew_fatalities\": 5, \"pax_fatalities\": 0, \"other_fatalities\": 0, \"total_fatalities\": 5, \"circumstances\": \"The crew was performing a night training flight on behalf of the 3rd Squadron of the 22nd regiment based in Chartres. While flying in the region of Bonneval, some 20 km south of Chartres, the aircraft caught fire. The pilot reduced his altitude and attempted an emergency landing. From a height of 50 meters, the aircraft stalled and crashed in a huge explosion. All five occupants were killed. Crew: Lt Jules Gindre, pilot, Sgt Pierre Pacaud, navigator, Sgt Roger Duchatelle, navigator, Sgt Raymond Rigault, mechanic, Pvt Jean Frémont, radio.\", \"crash_cause\": \"Technical failure\"}, {\"id\": 99, \"date\": \"1926-09-21\", \"time\": \"11:45:00\", \"aircraft\": \"De Havilland DH.4\", \"operator\": \"United States Army Air Corps - USAAC\", \"flight_phase\": \"Takeoff (climb)\", \"flight_type\": \"Military\", \"crash_site\": \"Airport (less than 10 km from airport)\", \"crash_location\": \"Kenley AFB Surrey\", \"country\": \"United Kingdom\", \"region\": \"Europe\", \"latitude\": 51.32609, \"longitude\": -0.101269, \"crew_fatalities\": 0, \"pax_fatalities\": 1, \"other_fatalities\": null, \"total_fatalities\": 1, \"circumstances\": \"Shortly after takeoff from RAF Kenley, while climbing, the engine failed. The aircraft stalled and crashed into trees, bursting into flames. The aircraft was destroyed and both occupants were seriously injured. The pilot died from his injuries five days later. The aircraft was based at RAF Kenley and operated on behalf of the US Embassy in London. Crew: Maj Clarence Leonard Tinker. Passenger: Cdr Robert Andrew Burg. †\", \"crash_cause\": \"Technical failure\"}, {\"id\": 98, \"date\": \"1926-09-16\", \"time\": \"20:20:00\", \"aircraft\": \"De Havilland DH.4\", \"operator\": \"Robertson Aircraft Corporation\", \"flight_phase\": \"Flight\", \"flight_type\": \"Postal (mail)\", \"crash_site\": \"Plain, Valley\", \"crash_location\": \"Ottawa Illinois\", \"country\": \"United States of America\", \"region\": \"North America\", \"latitude\": 41.346844, \"longitude\": -88.842645, \"crew_fatalities\": 0, \"pax_fatalities\": 0, \"other_fatalities\": 0, \"total_fatalities\": 0, \"circumstances\": \"The pilot Charles Lindbergh was performing a mail flight from Peoria to Chicago. En route, weather conditions worsened and he lost his orientation. Few minutes later, fuel exhausted and he eventually took the decision to bail out and abandoned the aircraft that crashed in a corn field. While the aircraft was destroyed, the aviator was unhurt.\", \"crash_cause\": \"Technical failure\"}, {\"id\": 97, \"date\": \"1926-08-20\", \"time\": \"16:05:00\", \"aircraft\": \"Hanriot HD.1\", \"operator\": \"Swiss Air Force\", \"flight_phase\": \"Flight\", \"flight_type\": \"Training\", \"crash_site\": \"Airport (less than 10 km from airport)\", \"crash_location\": \"Basel-Sternenfeld Basel City\", \"country\": \"Switzerland\", \"region\": \"Europe\", \"latitude\": 47.555943, \"longitude\": 7.588639, \"crew_fatalities\": 1, \"pax_fatalities\": 0, \"other_fatalities\": 0, \"total_fatalities\": 1, \"circumstances\": \"The pilot was performing a training flight at Basel-Sternenfeld Airport. While completing manoeuvre, he lost control of the aircraft that entered a dive and crashed near the airfield. The pilot was killed.\", \"crash_cause\": \"Human factor\"}, {\"id\": 96, \"date\": \"1926-08-18\", \"time\": \"14:30:00\", \"aircraft\": \"Blériot 155\", \"operator\": \"Air Union France\", \"flight_phase\": \"Flight\", \"flight_type\": \"Scheduled Revenue Flight\", \"crash_site\": \"Plain, Valley\", \"crash_location\": \"Ashford Kent\", \"country\": \"United Kingdom\", \"region\": \"Europe\", \"latitude\": 51.1493"
}ऊपर वाले अनुरोध से ही की गई असली कॉल का उत्तर। नतीजे data के अंदर हैं।
त्रुटियाँ
कुंजी और क्रेडिट की जाँच से आई त्रुटियाँ { "error": "…", "message": "<code>", "is_error": true } रूप में आती हैं। लोगों को error दिखाएँ और कोड में message देखकर फ़ैसला करें। पूरी सूची त्रुटि संदर्भ में है।