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": 19794,
    "articles": [
        {
            "id": "d4516cb66e08fcaab572352903005e78",
            "title": "NASA plans historic lunar flyby for upcoming crewed mission",
            "description": "NASA is all set to send humans back to the Moon’s Vicinity with the Artemis II mission. The mission is mainly a crucial flight test that will prove the Space Launch System rocket and Orion...",
            "content": "NASA is all set to send humans back to the Moon’s Vicinity with the Artemis II mission. The mission is mainly a crucial flight test that will prove the Space Launch System (SLS) rocket and Orion spacecraft are ready to carry astronauts on long-term s... [1489 chars]",
            "url": "https://www.thenews.com.pk/latest/1389702-nasa-plans-historic-lunar-flyby-for-upcoming-crewed-mission",
            "image": "https://www.thenews.com.pk/assets/uploads/2026-01-25/1389702_015146_updates.jpg",
            "publishedAt": "2026-01-25T08:52:00Z",
            "lang": "en",
            "source": {
                "id": "d6d8d1da5b3ea3eb10f02262522a0d6d",
                "name": "The News International",
                "url": "https://www.thenews.com.pk"
            }
        },
        {
            "id": "bfca695c8509ce7b2e5c1d0f4a29f4fd",
            "title": "Farewell, 3I/ATLAS. I've been observing the interstellar comet for months. Here's what I learned",
            "description": "As the interstellar comet 3I/ATLAS heads out towards the outer edges of our Solar System, a look back at how special it really was.",
            "content": "If you're wondering why it's suddenly gone so quiet about Interstellar comet 3I/ATAS when it's been front page astronomy news for months, it's because it's vanished.\nNot literally - it's still very much there, out in the black - but it's now so faint... [5311 chars]",
            "url": "https://www.skyatnightmagazine.com/news/farewell-3i-atlas",
            "image": "https://c02.purpledshub.com/uploads/sites/48/2025/10/3i-atlas-webb.jpg?w=1200",
            "publishedAt": "2026-01-25T06:23:16Z",
            "lang": "en",
            "source": {
                "id": "bb036bf3706725d44fbf435dab1c55bd",
                "name": "BBC Sky at Night Magazine",
                "url": "https://www.skyatnightmagazine.com"
            }
        },
        {
            "id": "3866d2d174d846d5ef60b54c20551c0d",
            "title": "Sometimes You Do Have to Consider Them: Observing Magnetic Fields Using Pulsar Halos",
            "description": "Whether you like them or not, magnetic fields permeate the interstellar medium. Today's paper outlines a novel way of observing them!",
            "content": "Paper Title: Diagnosing interstellar magnetic turbulence with TeV pulsar halos\nAuthors: Chao-Ming Li, Ruo-Yu Liu, and Huirong Yan\nFirst-author institution: Nanjing University, Nanjing 210023, China\nStatus: Published in Physical Review D [Closed Acces... [5102 chars]",
            "url": "https://astrobites.org/2026/01/24/pulsar-halo-magnetic-fields/",
            "image": "https://astrobites.org/wp-content/uploads/2026/01/image-8.png",
            "publishedAt": "2026-01-24T14:43:00Z",
            "lang": "en",
            "source": {
                "id": "12b02e8e49048e16403aacd287b27d5c",
                "name": "Astrobites",
                "url": "https://astrobites.org"
            }
        }
    ]
}

Categories