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": 19778,
    "articles": [
        {
            "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"
            }
        },
        {
            "id": "d0a99537c6778b24ff3969bfe0d8078f",
            "title": "A cosmic giant caught breaking the universe’s growth rules",
            "description": "A new perspective on the growth mechanism of supermassive black holes.",
            "content": "In the early universe, astronomers found a rare light that breaks the rules of how black holes grow. Researchers from Waseda University and Tohoku University, working with the Subaru Telescope, have uncovered a quasar, J084222.9+001000 (hereafter ID8... [3475 chars]",
            "url": "https://www.techexplorist.com/cosmic-giant-caught-breaking-universe-growth-rules/101897/",
            "image": "https://www.techexplorist.com/wp-content/uploads/2019/05/te-cover.png",
            "publishedAt": "2026-01-24T13:50:25Z",
            "lang": "en",
            "source": {
                "id": "384f05ddf6ed854b082cdea0d2279b35",
                "name": "Tech Explorist",
                "url": "https://www.techexplorist.com"
            }
        },
        {
            "id": "779be4f636d0bc48a54413f723945d0b",
            "title": "NASA shows how sun could swallow Earth",
            "description": "Astronomy helps scientists understand how stars are born, live, and eventually die. One key question people often ask is what will happen to Earth when our Sun reaches the end of its life. New NASA...",
            "content": "Astronomy helps scientists understand how stars are born, live, and eventually die. One key question people often ask is what will happen to Earth when our Sun reaches the end of its life.\nNew NASA images of a dying star now offer a striking preview ... [1590 chars]",
            "url": "https://www.thenews.com.pk/latest/1389640-nasa-shows-how-sun-could-swallow-earth",
            "image": "https://www.thenews.com.pk/assets/uploads/2026-01-24/1389640_051916_updates.jpg",
            "publishedAt": "2026-01-24T12:12:46Z",
            "lang": "en",
            "source": {
                "id": "d6d8d1da5b3ea3eb10f02262522a0d6d",
                "name": "The News International",
                "url": "https://www.thenews.com.pk"
            }
        }
    ]
}

Categories