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": 412920,
    "articles": [
        {
            "id": "2d373cd87c83dacaa894ea0c79d90ca6",
            "title": "Pakistan envoy highlights cultural diplomacy at Dragon Boat Festival in Beijing",
            "description": "Pakistan’s Ambassador to China, Khalil Hashmi, underscored the importance of cultural diplomacy and Pakistan-China friendship while addressing the “Elegant Dragon",
            "content": "Pakistan’s Ambassador to China, , underscored the importance of and while addressing the “Elegant , Romantic China” themed event for diplomats held in Beijing on Saturday.\nIn his remarks, the Ambassador described the as one of China’s most valued int... [1226 chars]",
            "url": "https://www.nation.com.pk/20-Jun-2026/pakistan-envoy-highlights-cultural-diplomacy-dragon-boat-festival-beijing",
            "image": "https://www.nation.com.pk/digital_images/large/2026-06-20/pakistan-envoy-highlights-cultural-diplomacy-dragon-boat-festival-beijing-1781960602-8859.jpg",
            "publishedAt": "2026-06-20T13:03:39Z",
            "lang": "en",
            "source": {
                "id": "5e331ca39104c898285cf9f72e2e2e65",
                "name": "The Nation (Pakistan )",
                "url": "https://www.nation.com.pk"
            }
        },
        {
            "id": "899fd3c56bf1f71f755d9fb51e1b5204",
            "title": "French fries raise diabetes risk 20%: New study warns",
            "description": "French fries significantly raise type 2 diabetes risk, but boiled potatoes don't, a crucial distinction buried in a decades-long study of 205,000 health professionals.Participants were followed up...",
            "content": "French fries significantly raise type 2 diabetes risk, but boiled potatoes don't, a crucial distinction buried in a decades-long study of 205,000 health professionals.\nParticipants were followed up on for close to four decades. All of them were free ... [1866 chars]",
            "url": "https://www.thenews.com.pk/latest/1406622-french-fries-raise-diabetes-risk-20-new-study-warns",
            "image": "https://www.thenews.com.pk/assets/uploads/2026-06-20/1406622_045106_updates.jpg",
            "publishedAt": "2026-06-20T11:40:30Z",
            "lang": "en",
            "source": {
                "id": "d6d8d1da5b3ea3eb10f02262522a0d6d",
                "name": "The News International",
                "url": "https://www.thenews.com.pk"
            }
        },
        {
            "id": "87dc5936e09c0644c2635b239e9dc7de",
            "title": "Infinix Note 60 Pro 5G Gets a Pininfarina Makeover: What’s New in the Limited Edition",
            "description": "The company is teaming up once again with Italian design house Pininfarina to introduce the Note 60 Pro 5G Pininfarina Limited Edition.",
            "content": "Infinix is preparing to expand its mid-range lineup with a special edition of its recently launched device. The company is teaming up once again with Italian design house Pininfarina to introduce the Note 60 Pro 5G Pininfarina Limited Edition.\nThe li... [2277 chars]",
            "url": "https://www.phoneworld.com.pk/infinix-note-60-pro-5g-gets-a-pininfarina-makeover-whats-new-in-the-limited-edition/",
            "image": "https://www.phoneworld.com.pk/wp-content/uploads/2026/06/Infinix-Note-60-Pro-5G-Pininfarina-Edition.jpg",
            "publishedAt": "2026-06-20T11:15:24Z",
            "lang": "en",
            "source": {
                "id": "7240c23a2323674cf8b7cf46515677cd",
                "name": "PhoneWorld",
                "url": "https://www.phoneworld.com.pk"
            }
        }
    ]
}

Categories