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": 389586,
    "articles": [
        {
            "id": "e16e80ea6ee21ecceffb1eb8d55f4602",
            "title": "4 Laptops With The Best Battery Life In 2026",
            "description": "Laptop battery life claims rarely match reality. These are the ones that came closest in 2026, with some even beating their official numbers.",
            "content": "We may receive a commission on purchases made from links.\nBattery life matters a lot more than many people realize. Whether you're a remote worker, a student carrying their laptop around campus, or simply someone who prefers working, streaming, or br... [8758 chars]",
            "url": "https://www.bgr.com/2170197/laptops-best-battery-life-2026/",
            "image": "https://www.bgr.com/img/gallery/4-laptops-with-the-best-battery-life-in-2026/l-intro-1778530547.jpg",
            "publishedAt": "2026-05-17T21:47:00Z",
            "lang": "en",
            "source": {
                "id": "ba1fc1e1ea8c9654aaee71ab3bc255eb",
                "name": "bgr.com",
                "url": "https://www.bgr.com"
            }
        },
        {
            "id": "edfad916960e6547c7bc7d277ad46f8c",
            "title": "WhatsApp is now testing the View-Once disappearing messages feature on iOS",
            "description": "It's currently available to beta users. WhatsApp has been testing the View-Once disappearing messages feature on its Android app since last month, and we...",
            "content": "WhatsApp has been testing the View-Once disappearing messages feature on its Android app since last month, and we now hear it is being tested on iOS as well.\nThis revelation comes from the folks at WABetaInfo, who spotted this View-Once disappearing ... [1080 chars]",
            "url": "https://www.gsmarena.com/whatsapp_view_once_disappearing_messages_ios_beta_users-news-72864.php",
            "image": "https://fdn.gsmarena.com/imgroot/news/26/05/whatsapp-view-once-disappearing-messages-ios-beta-users/-952x498w6/gsmarena_001.jpg",
            "publishedAt": "2026-05-17T21:03:02Z",
            "lang": "en",
            "source": {
                "id": "5e3c34855a7a20621cdd65325f423eb1",
                "name": "GSMArena.com",
                "url": "https://www.gsmarena.com"
            }
        },
        {
            "id": "4b4958f846e74430d1f0056c78e8e47f",
            "title": "Starc takes four to keep Delhi alive in IPL",
            "description": "Australia's Mitchell Starc returned figures of 4-40 as Delhi Capitals kept their playoff hopes alive in the IPL with a five-wicket win over Rajasthan Royals on Sunday.",
            "content": "Left-arm quick Starc took three wickets in four balls, including skipper Riyan Parag for 51, to restrict Rajasthan to 193-8 at Delhi's home Arun Jaitley Stadium.\nFifteen-year-old Vaibhav Sooryavanshi, with his 21-ball 46, and wicketkeeper Dhruv Jurel... [2582 chars]",
            "url": "https://www.france24.com/en/live-news/20260517-starc-takes-four-to-keep-delhi-alive-in-ipl",
            "image": "https://s.france24.com/media/display/4ace4f16-521e-11f1-a95a-005056bfb2b6/w:1280/p:16x9/9de00c13132b5f28913a1527818e62853359d6e6.jpg",
            "publishedAt": "2026-05-17T18:29:09Z",
            "lang": "en",
            "source": {
                "id": "f501fcfec9884d330bc84a73998805a5",
                "name": "France 24",
                "url": "https://www.france24.com"
            }
        }
    ]
}

Categories