Pakistan News API
Get the live top headlines from Pakistan with our JSON API.
Get API key for the Pakistan News APIAPI 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": 107873, "articles": [ { "title": "Uphold national interest in talks with PTI, Nawaz tells PM", "description": "Uphold national interest in talks with PTI, Nawaz tells PM", "content": "Pakistan Muslim League-Nawaz (PML-N) President Nawaz Sharif on Sunday exhorted Prime Minister Shehbaz Sharif to keep the national interest supreme in the ongoing negotiations with the opposition Pakistan Tehreek-e-Insaf (PTI).\nAccording to a statemen... [1791 chars]", "url": "https://tribune.com.pk/story/2523248/uphold-national-interest-in-talks-with-pti-nawaz-tells-pm", "image": "https://i.tribune.com.pk/media/images/380658-nawazshahbazsharifTMN-1337299509/380658-nawazshahbazsharifTMN-1337299509.jpg", "publishedAt": "2025-01-20T02:24:29Z", "source": { "name": "The Express Tribune", "url": "https://tribune.com.pk" } }, { "title": "'...does he still have a job?': Boris Becker throws his weight behind Novak Djokovic, slams Australian broadcaster", "description": "Boris Becker expressed his support for Novak Djokovic after he protested “insulting and offensive comments” made by a senior Australian journalist towards him. | Tennis News", "content": "German six-time Grand Slam champion Boris Becker has lent support to Novak Djokovic after the latter protested against an Australian broadcaster for his \"insulting and offensive comments\" towards him and for making a \"mockery of Serbian fans\". Becker... [2619 chars]", "url": "https://www.hindustantimes.com/sports/tennis/does-he-still-have-a-job-boris-becker-throws-his-weight-behind-novak-djokovic-slams-australian-broadcaster-101737337334470.html", "image": "https://www.hindustantimes.com/ht-img/img/2025/01/20/1600x900/TENNIS-AUS-OPEN-498_1737338049289_1737338070875.jpg", "publishedAt": "2025-01-20T02:12:22Z", "source": { "name": "Hindustan Times", "url": "https://www.hindustantimes.com" } }, { "title": "Trump set to take oath as 47th US president", "description": "Trump set to take oath as 47th US president", "content": "Donald Trump is set to be sworn in as the 47th president of the United States on Monday (today) while outgoing president Joe Biden will attend the ceremony along with other former US presidents.\nEvery four years America's president is sworn in on Ina... [2050 chars]", "url": "https://tribune.com.pk/story/2523240/trump-set-to-take-oath-as-47th-us-president", "image": "https://i.tribune.com.pk/media/images/1600481-donaldtrumpx-1515065513/1600481-donaldtrumpx-1515065513.jpg", "publishedAt": "2025-01-20T02:04:56Z", "source": { "name": "The Express Tribune", "url": "https://tribune.com.pk" } } ] }