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": 297738,
    "articles": [
        {
            "id": "4090267965fe2eb092b7671347076a21",
            "title": "Fermin Lopez brace hands Barca win at Slavia Prague",
            "description": "Fermin Lopez's first-half brace and second-half goals by Dani Olmo and Robert Lewandowski earned Barcelona a 4-2 Champions League win at Slavia Prague on Wednesday.",
            "content": "The result keeps Barca in contention for a top-eight finish in the league phase, which guarantees direct passage to the last 16.\nThe Catalans face FC Copenhagen at home in their final league phase game next week.\nBarca got back to winning ways on a f... [1235 chars]",
            "url": "https://www.beinsports.com/en-mena/football/uefa-champions-league/articles-video/fermin-lopez-brace-hands-barca-win-at-slavia-prague-2026-01-21",
            "image": "https://prod-media.beinsports.com/image/1769032751651_72e2c2c6-b240-45dc-adcf-362267676c03.1080.png",
            "publishedAt": "2026-01-21T22:44:54Z",
            "lang": "en",
            "source": {
                "id": "858ae6340c526c2c4b8ae80a9413bd0a",
                "name": "beIN SPORTS",
                "url": "https://www.beinsports.com"
            }
        },
        {
            "id": "cd79b3d4306b4f24b326d5a034868931",
            "title": "Slavia Prague 2-4 Barcelona: Lewandowski goes from zero to hero in thrilling win",
            "description": "Barcelona retain a chance of making the top eight in the Champions League standings, after edging a six-goal thriller against Slavia Prague.",
            "content": "Robert Lewandowski scored at both ends and Fermin Lopez helped himself to a brace as Barcelona earned an entertaining 4-2 win over Slavia Prague in the Champions League.\nThe victory propels Barca from 15th in the standings to ninth and ensures they w... [1999 chars]",
            "url": "https://www.beinsports.com/en-us/soccer/uefa-champions-league/articles/slavia-prague-2-4-barcelona-lewandowski-goes-from-zero-to-hero-in-thrilling-win-2026-01-21",
            "image": "https://prod-media.beinsports.com/image/1769036405637_94daadb1-6e09-4c96-ac7d-c2dea199a455.1080.jpg",
            "publishedAt": "2026-01-21T22:36:04Z",
            "lang": "en",
            "source": {
                "id": "858ae6340c526c2c4b8ae80a9413bd0a",
                "name": "beIN SPORTS",
                "url": "https://www.beinsports.com"
            }
        },
        {
            "id": "12668aeb256f84cc1c44577067f0f8e8",
            "title": "'Eye of God' nebula looks like a cosmic lava lamp in new James Webb Space Telescope image",
            "description": "Using the James Webb Space Telescope, astronomers have seen the Helix Nebula in intricate detail, imaging this iconic astronomical wonder as never before.",
            "content": "Astronomers have been given a new and incredibly detailed look at a very familiar astronomical object thanks to the James Webb Space Telescope (JWST). The new JWST image shows the Helix Nebula, the ring-like structure of which has led to the nickname... [2398 chars]",
            "url": "https://www.space.com/astronomy/galaxies/eye-of-god-nebula-looks-like-a-cosmic-lava-lamp-in-new-james-webb-space-telescope-image",
            "image": "https://cdn.mos.cms.futurecdn.net/REAc6kaQz2BMkTpLBo8vja-1600-80.png",
            "publishedAt": "2026-01-21T22:00:00Z",
            "lang": "en",
            "source": {
                "id": "024dd4370bda9e6e6791231c2a935d20",
                "name": "Space",
                "url": "https://www.space.com"
            }
        }
    ]
}

Categories