Flag of the Pakistan

Pakistan Science News API

Get the live top science headlines from Pakistan with our JSON API.

Get API key for the Pakistan Science News API

API Demonstration

This example demonstrates the HTTP request to make and the JSON response you will receive when you use the news api to get the top headlines from Pakistan.

GET
https://gnews.io/api/v4/top-headlines?country=pk&category=science&apikey=API_KEY
{
    "totalArticles": 3922,
    "articles": [
        {
            "title": "Predicting the Yield of Small Transiting Exoplanets around Mid-M and Ultra-Cool Dwarfs in the Nancy Grace Roman Space Telescope Galactic Bulge Time Domain Survey",
            "description": "Welcome to the Astrobiology Web",
            "content": "An example detection of a planet in our injection and recovery simulation. The host is an M5 dwarf with F146 = 16.5, Rh = 0.133 R, Mh = 0.108 M, Teff = 2895 K, a distance of 193 pc, and an age of 2.68 Gyr. The planet has a radius of 1.24 R⊕, an orbit... [2783 chars]",
            "url": "https://astrobiology.com/2023/03/predicting-the-yield-of-small-transiting-exoplanets-around-mid-m-and-ultra-cool-dwarfs-in-the-nancy-grace-roman-space-telescope-galactic-bulge-time-domain-survey.html",
            "image": "https://astrobiology.com/wp-content/uploads/2023/03/Predicting.png",
            "publishedAt": "2023-03-20T12:11:14Z",
            "source": {
                "name": "Astrobiology News",
                "url": "https://astrobiology.com"
            }
        },
        {
            "title": "China to launch Einstein Probe to observe changing universe",
            "description": "China, MNA | China plans to launch a new X-ray astronomical satellite, Einstein Probe (EP), at the end of this year, said Yuan Weimin, principal investigator of the satellite project.",
            "content": "China plans to launch a new X-ray astronomical satellite, Einstein Probe (EP), at the end of this year, said Yuan Weimin, principal investigator of the satellite project.\nYuan, who is also a researcher at the National Astronomical Observatories of th... [3166 chars]",
            "url": "https://www.macaubusiness.com/china-to-launch-einstein-probe-to-observe-changing-universe/",
            "image": "https://www.macaubusiness.com/wp-content/uploads/2019/03/mb-logo@2x.png",
            "publishedAt": "2023-03-19T17:00:54Z",
            "source": {
                "name": "Macau Business",
                "url": "https://www.macaubusiness.com"
            }
        },
        {
            "title": "Oceans Produce Half of the World's Oxygen",
            "description": "The oceans produce over half of the oxygen in the Earth's atmosphere, making them a vital source of oxygen for life on our planet.",
            "content": "The world’s oceans play a crucial role in sustaining life on our planet. Not only do they provide a habitat for countless species, but they also contribute significantly to the amount of oxygen in the atmosphere.\nAccording to researchers, the oceans ... [5841 chars]",
            "url": "https://www.geographyrealm.com/oceans-half-worlds-oxygen/",
            "image": "https://www.geographyrealm.com/wp-content/uploads/2022/07/girl-dancing-by-ocean.jpg",
            "publishedAt": "2023-03-18T20:55:07Z",
            "source": {
                "name": "Geography Realm",
                "url": "https://www.geographyrealm.com"
            }
        }
    ]
}

Categories