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": 24406,
    "articles": [
        {
            "id": "7cfccbe1bb22a2110f49b69e9b2e1fd6",
            "title": "Journey to the centre of a galaxy cluster",
            "description": "Journey to the centre of a galaxy cluster",
            "content": "The focus of today’s ESA/Hubble Picture of the Month is an active spiral galaxy on a journey lasting hundreds of millions of years. The galaxy Messier 88 (M88), which is also known as NGC 4501, is located about 63 million light-years away in the cons... [3111 chars]",
            "url": "https://www.esa.int/ESA_Multimedia/Images/2026/05/Journey_to_the_centre_of_a_galaxy_cluster",
            "image": "https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2026/05/journey_to_the_centre_of_a_galaxy_cluster/27296765-1-eng-GB/Journey_to_the_centre_of_a_galaxy_cluster_pillars.jpg",
            "publishedAt": "2026-05-29T08:02:04Z",
            "lang": "en",
            "source": {
                "id": "5c104284142bdd1d7c929b1727a25023",
                "name": "European Space Agency",
                "url": "https://www.esa.int"
            }
        },
        {
            "id": "29f158c2a6d424af874c8efe332d2eae",
            "title": "Rogue planet moons could harbor alien life for billions of years",
            "description": "Scientists say moons around rogue planets wandering through the galaxy could remain warm enough for life thanks to tidal heating and hydrogen-rich atmospheres. These dark, starless worlds may have had stable oceans for billions of years — long enough for complex life to potentially emerge.",
            "content": "A team of scientists from the Excellence Cluster ORIGINS at Ludwig Maximilian University of Munich (LMU) and the Max Planck Institute for Extraterrestrial Physics (MPE) found that moons orbiting free floating planets may be able to maintain liquid wa... [3881 chars]",
            "url": "https://www.sciencedaily.com/releases/2026/05/260528082509.htm",
            "image": "https://www.sciencedaily.com/images/1920/habitable-ocean-world.webp",
            "publishedAt": "2026-05-29T06:06:54Z",
            "lang": "en",
            "source": {
                "id": "81a05fd2712964dbdb32b1c6a27646fd",
                "name": "ScienceDaily",
                "url": "https://www.sciencedaily.com"
            }
        },
        {
            "id": "1d5c8b2939b1ad3b77abba02a54d3471",
            "title": "What The Centaur Chariklo's Rings Reveal About The Outer Solar System",
            "description": "Chariklo is the smallest known object with a ring system. Learn how its icy rings are reshaping scientists' understanding of collisions, moon formation, and the outer Solar System.",
            "content": "When astronomers detected two narrow rings around the centaur 10199 Chariklo during a stellar occultation on June 3, 2013, they upended a long-standing assumption that ring systems were the exclusive province of the giant planets. Chariklo is neither... [9910 chars]",
            "url": "https://www.worldatlas.com/space/what-the-centaur-chariklo-s-rings-reveal-about-the-outer-solar-system.html",
            "image": "https://www.worldatlas.com/r/w1200-q80/upload/a3/46/8b/centaur-10199-chariklo-nircam-occultation-light-curve-01gqj8kesb02g5qgrbz64affaf-1-s3cdn.png",
            "publishedAt": "2026-05-29T03:00:00Z",
            "lang": "en",
            "source": {
                "id": "bfe8a7d940b73affd41056fe2a0b9f6e",
                "name": "WorldAtlas",
                "url": "https://www.worldatlas.com"
            }
        }
    ]
}

Categories