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": 371950,
    "articles": [
        {
            "id": "49140de3f6d2f3d6c0ba5d3527a24eb5",
            "title": "Fire razes 200 homes in Sabah, leaving hundreds homeless",
            "description": "Sabah fire displaces 445 people as relief efforts focus on safety and immediate aid for victims in affected areas.",
            "content": "Hundreds of people have been displaced after a fire destroyed about 200 homes in a coastal village in Malaysia’s Sabah state, the state news agency Bernama reported.\nAuthorities were notified of the fire in Sandakan district at ⁠about 1.32am on Sunda... [1520 chars]",
            "url": "https://www.aljazeera.com/news/2026/4/19/fire-razes-200-homes-in-sabah-leaving-hundreds-homeless",
            "image": "https://www.aljazeera.com/wp-content/uploads/2026/04/WEB-MAP-MALAYSIA-SABAH-1000x562-1776587094.jpg?resize=1200%2C675",
            "publishedAt": "2026-04-19T09:51:54Z",
            "lang": "en",
            "source": {
                "id": "7530d90c9af769eda4cb548f32ed381d",
                "name": "Al Jazeera",
                "url": "https://www.aljazeera.com"
            }
        },
        {
            "id": "7085368bd7dc8eb391ac525594086a1f",
            "title": "Despite no dates set for US-Iran talks 2.0, Pakistan deploys over 10,000 police officers in Islamabad, Rawalpindi",
            "description": "Pakistan has deployed 10,000 police officers and enforced strict lockdowns in Islamabad and Rawalpindi, securing airports and sensitive routes ahead of potential, though unconfirmed, high-level US-Iran diplomatic talks.",
            "content": "Pakistan has deployed over 10,000 police personnel and imposed sweeping security measures in Rawalpindi and Islamabad amid growing speculation over a possible second round of talks between the US and Iran, even as no official date has been announced.... [2189 chars]",
            "url": "https://www.wionews.com/world/despite-no-dates-set-for-us-iran-talks-2-0-pakistan-deploys-over-10-000-police-officers-in-islamabad-rawalpindi-1776588537008",
            "image": "https://cdn1.wionews.com/prod/wion/images/2026/20260419/image-1776588931846.jpg?imwidth=1200&imheight=900",
            "publishedAt": "2026-04-19T08:56:00Z",
            "lang": "en",
            "source": {
                "id": "af333851843ab835a644d9950b112f1c",
                "name": "WION",
                "url": "https://www.wionews.com"
            }
        },
        {
            "id": "f01b0c83300e7a34ab4232cb9a77a6f9",
            "title": "Heavy rain, hailstorms lash parts of country",
            "description": "A fresh spell of rain and hailstorms affected several parts of the country on Sunday, including Punjab, Khyber Pakhtunkhwa and Azad Kashmir, with authorities warning of",
            "content": "A fresh spell of rain and hailstorms affected several parts of the country on Sunday, including Punjab, Khyber Pakhtunkhwa and Azad Kashmir, with authorities warning of further wet weather in the coming hours.\nIn Khyber Pakhtunkhwa, rainfall was repo... [1232 chars]",
            "url": "https://www.nation.com.pk/19-Apr-2026/heavy-rain-hailstorms-lash-parts-country",
            "image": "https://www.nation.com.pk/digital_images/large/2026-04-19/heavy-rain-hailstorms-hit-kp-parts-punjab-1776587971-6837.jpg",
            "publishedAt": "2026-04-19T08:39:51Z",
            "lang": "en",
            "source": {
                "id": "5e331ca39104c898285cf9f72e2e2e65",
                "name": "The Nation (Pakistan )",
                "url": "https://www.nation.com.pk"
            }
        }
    ]
}

Categories