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": 26342,
    "articles": [
        {
            "id": "0cc7bde36b4d987145aadaae7d2f3814",
            "title": "NASA’s Chandra Observatory spots possible supernova remnant in the middle of our galaxy",
            "description": "NASA’s Chandra X-Ray Observatory has captured a dramatic scene about 26,000 light-years away from Earth. Scientists suspect it could be a supernova remnant, the violent shock wave and cloud of debris...",
            "content": "NASA's Chandra X-Ray Observatory has captured a dramatic scene about 26,000 light-years away from Earth. Scientists suspect it could be a supernova remnant, the violent shock wave and cloud of debris sent hustling through space after a massive star d... [2395 chars]",
            "url": "https://www.yahoo.com/news/science/articles/nasa-chandra-observatory-spots-possible-100000401.html",
            "image": "https://s.yimg.com/lo/mysterio/api/5fd9ab4f27fa82fca008ed8770d82ba8047a35540e911983bbb4beb57bdbd84c/lightyear_networkapi/resizefill_w1200;quality_80;format_webp/https:%2F%2Fmedia.zenfs.com%2Fen%2Fscientific_american_754%2F2e77d6c7415295bc80c3832be7c78034",
            "publishedAt": "2026-06-15T10:00:00Z",
            "lang": "en",
            "source": {
                "id": "99e8a2cb4638bb798cf9167e5af5b83b",
                "name": "Yahoo",
                "url": "https://www.yahoo.com"
            }
        },
        {
            "id": "e162b307f4c1e031d0f3dc6e30c11e52",
            "title": "The Sky Today on Monday, June 15: Mercury at greatest eastern elongation",
            "description": "Mercury lines up with Venus, Jupiter, and the Moon in the evening as the small planet also reaches greatest eastern elongation from the Sun.",
            "content": "Looking for a sky event this week? Check out our full Sky This Week column.\nJune 14: Irene nears opposition\nThis afternoon, Mercury reaches greatest eastern elongation at 4 P.M. EDT, standing 25° from the Sun. You’ll find the solar system’s smallest ... [1408 chars]",
            "url": "https://www.astronomy.com/observing/the-sky-today-monday-june-15-2026/",
            "image": "https://www.astronomy.com/wp-content/uploads/2026/06/Mercury-east-elong-06152026.png?resize=1200,630",
            "publishedAt": "2026-06-15T08:03:36Z",
            "lang": "en",
            "source": {
                "id": "a69c46820379fd6075b622dd9fbdedd1",
                "name": "Astronomy Magazine",
                "url": "https://www.astronomy.com"
            }
        },
        {
            "id": "74a107bbfcd839f4396d67b107342bd3",
            "title": "Tectonic movements are instrumental in rocky coastal erosion",
            "description": "Along the US West Coast, earthquakes and shifting tectonic plates must be factored into coastal erosion alongside wind and ocean currents.",
            "content": "The oceans and winds do not bear all of the blame for coastal erosion: tectonic movements also play a powerful role. Researchers analyzed decades of wave, tide and geological data from along the US West Coast and found that the slow rise and sudden f... [4725 chars]",
            "url": "https://www.advancedsciencenews.com/tectonic-movements-are-instrumental-in-rocky-coastal-erosion/",
            "image": "https://www.advancedsciencenews.com/wp-content/uploads/2026/06/coastline-CA-US-57770038-11909817-pexels-seth-kutty-1080x600-1.jpg",
            "publishedAt": "2026-06-15T05:03:03Z",
            "lang": "en",
            "source": {
                "id": "8fdfbda76193e2fa3b044678f8f38560",
                "name": "Advanced Science News",
                "url": "https://www.advancedsciencenews.com"
            }
        }
    ]
}

Categories