Flag of 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": 22104,
    "articles": [
        {
            "id": "4c6e1f69e7e4f456142b624f8377f1fb",
            "title": "Cruel Star: February 22, 2026",
            "description": "Cruel treatment by a star",
            "content": "Stars aren’t always nice to their offspring – especially at the end. As a star dies, it expands. It can get big enough to engulf some of its planets. The Sun, for example, is likely to swallow Mercury and Venus, and might get Earth as well.\nA star in... [1170 chars]",
            "url": "https://stardate.org/podcast/2026-02-22",
            "image": "https://stardate.org/wp-content/uploads/2023/07/cropped-favicon-32x32.png",
            "publishedAt": "2026-02-22T11:43:59Z",
            "lang": "en",
            "source": {
                "id": "236dbd8fab12b908b6c763b633c9a3bb",
                "name": "StarDate Online",
                "url": "https://stardate.org"
            }
        },
        {
            "id": "823d9634b4bc306dc335336c4d35e5b6",
            "title": "The Sky Today on Sunday, February 22: Track three craters on the Moon",
            "description": "A lovely trio of craters is ready for viewing near the terminator dividing night and day on the Moon: Theophilus, Cyrillus, and Catharina.",
            "content": "Looking for a sky event this week? Check out our full Sky This Week column.\nFebruary 21: A ghostly planetary nebula\nA lovely crescent Moon is visible nearly all evening, setting around local midnight. If you’ve got a telescope, tonight is a great opp... [977 chars]",
            "url": "https://www.astronomy.com/observing/the-sky-today-sunday-february-22-2026/",
            "image": "https://www.astronomy.com/wp-content/uploads/2026/01/RisingMoonFebruary2026.png",
            "publishedAt": "2026-02-22T09:00:45Z",
            "lang": "en",
            "source": {
                "id": "a69c46820379fd6075b622dd9fbdedd1",
                "name": "Astronomy Magazine",
                "url": "https://www.astronomy.com"
            }
        },
        {
            "id": "24170a52e00a5c669370cdfd920afab2",
            "title": "SpaceX launches another batch of satellites from Cape Canaveral during late-night mission on Saturday",
            "description": "SpaceX achieved a major milestone on Saturday night after launching a batch of 28 Starlink satellites into low-Earth orbit from Cape Canaveral. The Falcon 9 rocket had a successful launch from...",
            "content": "SpaceX achieved a major milestone on Saturday night after launching a batch of 28 Starlink satellites into low-Earth orbit from Cape Canaveral. The Falcon 9 rocket had a successful launch from Space Launch Complex 40 (SLC) at 10:46 p.m.\nThis marks th... [1007 chars]",
            "url": "https://www.thenews.com.pk/latest/1393214-spacex-launches-another-batch-of-satellites-from-cape-canaveral-during-late-night-mission-on-saturday",
            "image": "https://www.thenews.com.pk/assets/uploads/2026-02-22/1393214_115148_updates.jpg",
            "publishedAt": "2026-02-22T06:51:00Z",
            "lang": "en",
            "source": {
                "id": "d6d8d1da5b3ea3eb10f02262522a0d6d",
                "name": "The News International",
                "url": "https://www.thenews.com.pk"
            }
        }
    ]
}

Categories