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": 388192,
    "articles": [
        {
            "id": "695c5eaa79ac1993a459a992804988c8",
            "title": "5 killed in firing incident in Harnai’s Shahrag area",
            "description": "At least five people were killed and three others injured when unidentified armed men opened indiscriminate fire on locals in the Shahrag area of Balochistan’s",
            "content": "At least five people were killed and three others injured when unidentified armed men opened indiscriminate fire on locals in the Shahrag area of Balochistan’s Harnai district, police said on Wednesday.\nAccording to police, the attackers had set up a... [937 chars]",
            "url": "https://www.nation.com.pk/27-May-2026/5-killed-firing-incident-harnai-s-shahrag-area",
            "image": "https://www.nation.com.pk/digital_images/large/2026-05-27/5-killed-firing-incident-harnai-s-shahrag-area-1779871278-1763.jpg",
            "publishedAt": "2026-05-27T08:41:40Z",
            "lang": "en",
            "source": {
                "id": "5e331ca39104c898285cf9f72e2e2e65",
                "name": "The Nation (Pakistan )",
                "url": "https://www.nation.com.pk"
            }
        },
        {
            "id": "8046d209dc7da27524f93a9cdda2a2eb",
            "title": "Artemis III: NASA To Announce Astronauts For 2027’s Lunar Mission On June 9; Here’s How To Catch The Event Live",
            "description": "Countdown to Artemis III",
            "content": "The world watched in awe as the crew of the Artemis II mission accomplished a historic lunar flyby last month during their 10-day trip to the moon and back. That it took nearly 54 years since the Apollo missions wrapped is an astonishing feat in itse... [2373 chars]",
            "url": "https://in.mashable.com/science/110168/artemis-iii-nasa-to-announce-astronauts-for-2027s-lunar-mission-on-june-9-heres-how-to-catch-the-eve",
            "image": "https://sm.mashable.com/mashable_in/seo/default/00-aa-banner-1200-x-675-2026-05-26t123325432-1-2-1-1-1_9fjf.jpg",
            "publishedAt": "2026-05-27T07:26:51Z",
            "lang": "en",
            "source": {
                "id": "671d3802fb767cbce5639d3562a19de7",
                "name": "Mashable India",
                "url": "https://in.mashable.com"
            }
        },
        {
            "id": "778a922cf3cec3d16f66aa47cc6ab2ac",
            "title": "Rana Sanaullah says govt focused on public relief in upcoming budget",
            "description": "Rana Sanaullah on Wednesday said the government is making every possible effort to provide relief to the common man in the upcoming federal budget despite economic and",
            "content": "on Wednesday said the government is making every possible effort to provide relief to the common man in the upcoming federal budget despite economic and security challenges facing the country.\nSpeaking to the media, he said the government remained co... [1208 chars]",
            "url": "https://www.nation.com.pk/27-May-2026/rana-sanaullah-says-govt-focused-public-relief-upcoming-budget",
            "image": "https://www.nation.com.pk/digital_images/large/2026-05-27/rana-sanaullah-says-govt-focused-public-relief-upcoming-budget-1779866459-2688.jpg",
            "publishedAt": "2026-05-27T07:21:02Z",
            "lang": "en",
            "source": {
                "id": "5e331ca39104c898285cf9f72e2e2e65",
                "name": "The Nation (Pakistan )",
                "url": "https://www.nation.com.pk"
            }
        }
    ]
}

Categories