Extract News Links from Websites

Extract news links from a news website.

GET
https://api.worldnewsapi.com/extract-news-links
Example Request and Response
GET
https://api.worldnewsapi.com/{{ examples.getExtractNewsLinks }}
{
  "news_links": [
    "https://www.nytimes.com/2023/10/07/opinion/wnba-liberty-championship.html",
    "https://www.nytimes.com/2023/10/08/business/economy/labor-strikes.html",
    "https://www.nytimes.com/2023/10/08/dining/sunday-calls-for-old-fashioned-beef-stew.html"
  ]
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

What does Extract News Links do?

The Extract News Links endpoint takes a news website URL (such as a homepage or section page) and returns all news article links found on that page. This is useful for discovering articles from specific publishers.

How is this different from the Search News endpoint?

Search News searches across all indexed articles by keywords and filters. Extract News Links scrapes a specific URL to find article links on that page. Use Search News for broad discovery and Extract News Links for source-specific crawling.

What types of URLs can I extract links from?

You can extract links from news website homepages, section pages, category pages, and other pages that contain links to news articles. The endpoint works best with major news publisher websites.


Questions? Need Help? Ask Away