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": 378470,
    "articles": [
        {
            "id": "b9e0fc004c22737070cba0fd5b233f9a",
            "title": "Why Pakistan has emerged as a mediator between US and Iran",
            "description": "Pakistan has emerged as an unexpected mediator, offering to help bring Washington and Tehran to the negotiating table as fears of a wider regional conflict escalate following U.S. and Israeli strikes on Iran that began in late February",
            "content": "Pakistan has emerged as an unexpected mediator, offering to help bring Washington and Tehran to the negotiating table as fears of a wider regional conflict escalate following U.S. and Israeli strikes on Iran that began in late February\nMarch 27, 2026... [290 chars]",
            "url": "https://www.washingtonpost.com/world/2026/03/27/pakistan-us-iran-war-emerging-peace-mediator/01dddc3c-29af-11f1-a0f2-3ba4c9fe08ac_story.html",
            "image": "https://www.washingtonpost.com/wp-apps/imrs.php?src=https://cloudfront-us-east-1.images.arcpublishing.com/wapo/7PGP5TBJVYI7DIHSHOSMT7QIVQ.jpg&w=1440",
            "publishedAt": "2026-03-27T12:11:29Z",
            "lang": "en",
            "source": {
                "id": "aa250375ed4d1652ad2c07377b69f537",
                "name": "The Washington Post",
                "url": "https://www.washingtonpost.com"
            }
        },
        {
            "id": "4ee76aeb6cc1083900ae2e357502deea",
            "title": "Live updates: Iran war; Trump extends pause on energy site strikes",
            "description": "US President Donald Trump has for a second time extended his deadline for Tehran to reopen the Strait of Hormuz. Follow for live updates.",
            "content": "Yemen’s Iran-backed Houthi rebels are prepared to join the war in support of Iran if the US and Israel escalate their attacks, a Houthi government official has told CNN.\nYemen’s Houthis have previously disrupted shipping through Bab al-Mandab, attack... [20979 chars]",
            "url": "https://www.cnn.com/2026/03/27/world/live-news/iran-war-us-israel-trump",
            "image": "https://media.cnn.com/api/v1/images/stellar/prod/gettyimages-2265538129.jpg?c=16x9&q=w_800,c_fill",
            "publishedAt": "2026-03-27T11:40:00Z",
            "lang": "en",
            "source": {
                "id": "b7f8938851261c8403f75f40eb1d8645",
                "name": "CNN",
                "url": "https://www.cnn.com"
            }
        },
        {
            "id": "af20ca0d87711e61ef309bcb317d414b",
            "title": "Metformin: Brain Pathway to Lower Blood Sugar Revealed",
            "description": "Scientists have discovered a previously unknown neural pathway behind the antidiabetic effects of metformin. Learn more.",
            "content": "METFORMIN can lower blood sugar via a brain-based pathway, scientists have discovered.\nIt was previously understood to work predominantly though the gut and liver.\nPrevious Understandings of Metformin\nMetformin, the most commonly prescribed antidiabe... [2033 chars]",
            "url": "https://www.emjreviews.com/general-healthcare/news/metformin-hidden-brain-pathway-to-lower-blood-sugar-revealed/",
            "image": "https://www.emjreviews.com/wp-content/uploads/2026/03/metformin.jpg",
            "publishedAt": "2026-03-27T10:47:55Z",
            "lang": "en",
            "source": {
                "id": "a9f12901925fcfb02f9d57b5db396471",
                "name": "European Medical Journal",
                "url": "https://www.emjreviews.com"
            }
        }
    ]
}

Categories