🔒 Closed Covid 19 API

Status
Not open for further replies.
Sino po may API Jan Ng covid 19 tracker ung updated po . Balak ko Kasi gumawa dito sa city namin for personal project Lang po para maka pagpractice Lang din
 
Add ko lang if may gusto kang data or custom params para sa gagawin mo. Pwede naman kita gawan ng API mo rin. Pero via Google Sheets lang siguro para mabilisan tas bigay ko sayo API key
 
Pano gamitin to paps hahah salamat
May installation guide naman po yan sa mismong link sa github. Gamit ko yan noon nang ayos pa yung datasheets for this program sa You do not have permission to view the full content of this post. Log in or register now. Sa palagay ko, may kaunting babaguhin pa para updated dahil old data ang lumalabas using Postman API nang i-simulate ko ulit.
 
'Eto, pwede rin pag-aralan in aking a custom API: You do not have permission to view the full content of this post. Log in or register now.
Create lang kayo ng Postman API account: You do not have permission to view the full content of this post. Log in or register now.
Related ito doon sa nag-post sa taas ng link na ito: You do not have permission to view the full content of this post. Log in or register now.
Mas madali kahit sa newbie.
Ganito yung result for specific country:
Code:
{"updated":1608853843608,"country":"Philippines","countryInfo":{"_id":608,"iso2":"PH","iso3":"PHL","lat":13,"long":122,"flag":"https://disease.sh/assets/img/flags/ph.png"},"cases":465724,"todayCases":1776,"deaths":9055,"todayDeaths":7,"recovered":430490,"todayRecovered":533,"active":26179,"critical":708,"casesPerOneMillion":4223,"deathsPerOneMillion":82,"tests":6594381,"testsPerOneMillion":59799,"population":110276686,"continent":"Asia","oneCasePerPeople":237,"oneDeathPerPeople":12179,"oneTestPerPeople":17,"activePerOneMillion":237.39,"recoveredPerOneMillion":3903.73,"criticalPerOneMillion":6.42}
Kahit ito, makakatulong din para makagawa ng sariling COVID-19 PH API: You do not have permission to view the full content of this post. Log in or register now.

Rose Knight,

Kapain mo na lang sa github, kung meron kang makitang mapapakinabangan sa project mo. You do not have permission to view the full content of this post. Log in or register now.
Or link mo na lang yung API mo sa DOH Data Drop archives, para sa specific dta fro regions, municipalities, etc... sa Pilipinas.
 
Ito sample from api mentioned sa itaas (You do not have permission to view the full content of this post. Log in or register now.) in php
Code:
<?php
    header('Content-Type: application/json');
    $country = "philippines";
    $url = "https://corona.lmao.ninja/v3/covid-19/countries/".$country;
    $data = json_decode(file_get_contents($url, false));
    echo json_encode($data);
?>
Json output to

If gusto mo i fetch with html tags ito naman in 1 page
Code:
<?php
    $country = "philippines";
    $url = "https://corona.lmao.ninja/v3/covid-19/countries/".$country;
    $data = json_decode(file_get_contents($url, false));
?>

<!DOCTYPE html>
<html>
<head>
    <title>COVID-19 Updates</title>
</head>
<body>
    <h1>COVID-19 Updates</h1>
    <div>
        <h2>Country: <?= $data->country ?></h2>
        <h3>Total Cases: <?= number_format($data->cases) ?></h3>
        <h3>Total Deaths: <?= number_format($data->deaths) ?></h3>
        <h3>Total Recovered: <?= number_format($data->recovered) ?></h3>
    </div>
</body>
</html>

Pag aralan mo nalang yung api, detailed naman siya at madaling ma initindihan sa docs (linked above). Good luck
 
Status
Not open for further replies.

About this Thread

  • 9
    Replies
  • 485
    Views
  • 6
    Participants
Last reply from:
serapphim

Online now

Members online
974
Guests online
1,164
Total visitors
2,138

Forum statistics

Threads
2,276,177
Posts
28,968,075
Members
1,231,155
Latest member
4rchiv3s
Back
Top