กรมควบคุมโรคเตรียม API
เอาไว้ดูข้อมูลสถานการณ์ต่างๆ เกี่ยวกับโควิด-19
สำหรับโปรแกรมเมอร์โดยเฉพาะ
.
API จะป็นเว็บเซอร์วิส
ให้เรียกใช้ด้วยเมธอดแบบ GET ธรรมดา
ข้อมูลที่ตอบกลับมาจะอยู่ในโครงสร้าง json
สำหรับรายละเอียดของ API ก็ดังต่อไปนี้
.
แสดงค่าประจำวัน :
https:////covid19.th-stat.com/api/open/today
ข้อมูลสรุปตามช่วงเวลา (เริ่มตั้งแต่วันที่ 01/01/20) :
https:////covid19.th-stat.com/api/open/timeline
ข้อมูลแต่ละเคส :
https:////covid19.th-stat.com/api/open/cases
ข้อมูลสรุปจากเคส :
https:////covid19.th-stat.com/api/open/cases/sum
แจ้งเตือนพื้นที่ตามคำประกาศ :
https://covid19.th-stat.com/api/open/area
.
ที่มา https://covid19.th-stat.com/th/api
ขอบคุณกรมควบคุมโรค กระทรวงสาธารณสุข
ทีมงาน TH-STAT.com และกลุ่ม TCDG
.
อันนี้เป็นตัวอย่างหน้า html ตอนเรียกใช้ API บางตัว
ผมลองทำเล่นๆ ได้แค่นี้แหละ
เผื่อท่านใดสนใจสามารถไปศึกษาได้ครับ
✔ https://www.patanasongsivilai.com/example/covid-19/today.html
✔ https://www.patanasongsivilai.com/example/covid-19/timeline.html
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
「json api example」的推薦目錄:
- 關於json api example 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
- 關於json api example 在 public-apis/public-apis: A collective list of free APIs - GitHub 的評價
- 關於json api example 在 1.4: JSON - Working with Data and APIs in JavaScript - YouTube 的評價
- 關於json api example 在 JSON Style Guide - Google · GitHub 的評價
- 關於json api example 在 jsonapi - pkg.dev 的評價
- 關於json api example 在 Is there any standard for JSON API response format? - Stack ... 的評價
json api example 在 JSON Style Guide - Google · GitHub 的推薦與評價
First Photo" } ] } } Here's an example of the YouTube JSON API's response object. You can learn more about YouTube's JSON API here: https://code.google.com/apis ... ... <看更多>
json api example 在 public-apis/public-apis: A collective list of free APIs - GitHub 的推薦與評價
... REST API that can scan submitted documents/files for the presence of threats, apiKey, Yes, Yes. URLhaus, Bulk queries and Download Malware Samples ... ... <看更多>