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": 5549,
    "articles": [
        {
            "title": "Subglacial Microbial Life On Earth And Beyond",
            "description": "Welcome to the Astrobiology Web",
            "content": "Blood Falls, Antarctica, where microbes live under the ice. Iron and other elements from the bedrock below the ice become oxidized when it interacts with air, producing the rusty red coloring. Source: Jill Mikucki\nThe search for life beyond Earth fas... [7189 chars]",
            "url": "https://astrobiology.com/2024/02/subglacial-microbial-life-on-earth-and-beyond.html",
            "image": "https://astrobiology.com/wp-content/uploads/2024/02/Subglacial-Microbial.png",
            "publishedAt": "2024-02-23T19:04:55Z",
            "source": {
                "name": "Astrobiology News",
                "url": "https://astrobiology.com"
            }
        },
        {
            "title": "A New Space Telescope will Map the Universe and Help Protect the Earth from Asteroids",
            "description": "NASA's upcoming SPHEREx mission will level up our planetary defence by finding and characterizing potentially dangerous objects.",
            "content": "Can we secure our place in the Solar System? Not in any absolute sense because nature can be very unpredictable. But we can make the effort to safeguard our civilization by cataloguing potentially dangerous asteroids. An upcoming space telescope will... [6154 chars]",
            "url": "https://www.universetoday.com/165825/a-new-space-telescope-will-map-the-universe-and-help-protect-the-earth-from-asteroids/",
            "image": "https://www.universetoday.com/wp-content/uploads/2024/02/SPHEREx_March2022_Update.jpg",
            "publishedAt": "2024-02-23T18:46:39Z",
            "source": {
                "name": "Universe Today",
                "url": "https://www.universetoday.com"
            }
        },
        {
            "title": "Automated Chemical Reaction Network Generation And Its Application To Exoplanet Atmospheres",
            "description": "Welcome to the Astrobiology Web",
            "content": "Comparison between the previously reported vertical molecular mixing ratio profile of major species simulated for the (a) morning and (b) evening terminators of WASP-39 b in Tsai et al. (2023) (color-shaded areas) and those simulated from the current... [2676 chars]",
            "url": "https://astrobiology.com/2024/02/automated-chemical-reaction-network-generation-and-its-application-to-exoplanet-atmospheres.html",
            "image": "https://astrobiology.com/wp-content/uploads/2024/02/Automated-Chemical.png",
            "publishedAt": "2024-02-23T18:44:55Z",
            "source": {
                "name": "Astrobiology News",
                "url": "https://astrobiology.com"
            }
        }
    ]
}

Categories