Flag of Pakistan

Pakistan News API

Get the live top headlines from Pakistan with our JSON API.

Get API key for the Pakistan 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=general&apikey=API_KEY
{
    "totalArticles": 295990,
    "articles": [
        {
            "id": "8a1c4562eefcbbb30d0489316c0625d0",
            "title": "Usman Khawaja to retire: Australia batter says he still fights 'racial stereotypes'",
            "description": "Australia batter Usman Khawaja says he has been treated unfairly by the media and former players as he announces his retirement from international cricket.",
            "content": "Australia batter Usman Khawaja said he is still battling \"racial stereotypes\" as he announced his retirement from international cricket.\nThe 39-year-old will play his 88th Test in the Ashes finale against England starting on Sunday (23:30 GMT, Saturd... [5576 chars]",
            "url": "https://www.bbc.com/sport/cricket/articles/cy5g32l2621o",
            "image": "https://ichef.bbci.co.uk/ace/branded_sport/1200/cpsprodpb/5022/live/e9540310-e75c-11f0-a5c6-e7d20e6a699c.jpg",
            "publishedAt": "2026-01-01T21:41:29Z",
            "lang": "en",
            "source": {
                "id": "f331a5ed3965fb59761dfcecfc7e7a34",
                "name": "BBC",
                "url": "https://www.bbc.com"
            }
        },
        {
            "id": "bddc8229b5c1798a5582286f16d56f7f",
            "title": "The Full Transcript of Zohran Mamdani’s Inauguration Speech",
            "description": "New York’s new mayor challenged his supporters and his opponents to make the city better, and to hold him to account.",
            "content": "The following is a transcript of Mayor Zohran Mamdani’s remarks at his inauguration, as recorded by The New York Times.\nMy fellow New Yorkers: Today begins a new era.\nI stand before you moved by the privilege of taking this sacred oath, humbled by th... [578 chars]",
            "url": "https://www.nytimes.com/2026/01/01/nyregion/mamdani-inauguration-speech-transcript.html",
            "image": "https://static01.nyt.com/images/2026/01/01/multimedia/01met-inaud-01-vgkb/01met-inaud-01-vgkb-facebookJumbo.jpg",
            "publishedAt": "2026-01-01T21:07:47Z",
            "lang": "en",
            "source": {
                "id": "2f580dc49292a1caf59cd86dd3c9e60b",
                "name": "The New York Times",
                "url": "https://www.nytimes.com"
            }
        },
        {
            "id": "ad2746feab14f1004cc4f16b1c522bfb",
            "title": "Switzerland to hold five days of mourning after 40 killed in resort fire",
            "description": "Blaze that swept through crowded New Year’s Eve bar in Crans-Montana also injured 115 people",
            "content": "Switzerland will hold five days of mourning after an “unprecedented” fire tore through a crowded bar, killing about 40 people and injuring 115 who were celebrating at a New Year’s Eve party in the Alpine ski resort of Crans-Montana.\nThe country’s pre... [6285 chars]",
            "url": "https://www.theguardian.com/world/2026/jan/01/switzerland-to-hold-five-days-of-mourning-after-dozens-killed-in-resort-fire",
            "image": "https://i.guim.co.uk/img/media/70fd40824bba6288429defea164eb0914dcccdae/0_357_6740_5392/master/6740.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&precrop=40:21,offset-x50,offset-y0&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctZGVmYXVsdC5wbmc&enable=upscale&s=5499450adb85930e27360f147833abaa",
            "publishedAt": "2026-01-01T19:03:07Z",
            "lang": "en",
            "source": {
                "id": "558a003a7a0164e924408edec7e99f99",
                "name": "The Guardian",
                "url": "https://www.theguardian.com"
            }
        }
    ]
}

Categories