The Reuters Scraper is an advanced tool designed to extract and organize news content from Reuters, one of the world's leading news agencies. This powerful scraper offers an efficient method to collect up-to-the-minute news articles, headlines, and associated information, providing valuable insights for various industries and applications.
Data Point | Description | Example |
---|---|---|
ID | Unique identifier for the article | 6SUUAK45SVLENGAYIPWO6T6XAQ |
URL | Web address of the article | https://www.reuters.com/lifestyle/sports/morocco-rewrite-africas-world-cup-history-2022-12-12/ |
Author | Writer of the article | Mar***lee*** |
Headline | Title of the news article | Morocco rewrite Africa's World Cup history |
Topics | Categories or subjects covered | Soccer, FIFA World Cup Qatar 2022, Olympic, Sport |
Publication Date | When the article was first published | 2022-12-12T13:10:57.000Z |
Last Updated | When the article was last modified | 2022-12-12T13:11:16.251Z |
Description | Brief summary of the article | [Brief description provided] |
Content | Full text of the news article | [Full article text] |
Images | Associated images with descriptions and URLs | [Image data provided] |
Related Articles | Links to related news stories | [List of related articles] |
Keyword | Main topic or focus of the article | Soccer |
The Reuters Scraper is a valuable asset for various sectors, including:
The Reuters Scraper API allows you to extract news articles and information from Reuters.com. This powerful tool enables developers to integrate Reuters news content into their applications, conduct news analysis, or monitor current events and trends across various topics.
To use the Reuters Scraper API, you'll need to authenticate your requests using your API key. The API provides two endpoints for retrieving news information:
Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
The request body should be a JSON object with the following structure:
// For news endpoint
{
"url": "https://www.reuters.com/article/article-url"
}
// For news-by-keyword endpoint
{
"keyword": "search term"
}
Please note that usage is subject to rate limiting. Refer to your plan details for specific limits.
Here's an example of the data you can expect to receive:
[
{
"input": {
"url": "https://www.reuters.com/sports/soccer/reaction-spains-victory-over-england-euro-2024-final-2024-07-14/"
},
"id": "K4PQG344NJO3JGUUZ26VUQYK6A",
"url": "https://www.reuters.com/sports/soccer/reaction-spains-victory-over-england-euro-2024-final-2024-07-14/",
"author": "Reuters",
"headline": "Reaction to Spain's victory over England in Euro 2024 final",
"topics": [
"Soccer",
"Euro 2024",
"Final",
"Spain v England",
"sport"
],
"publication_date": "2024-07-14T22:07:42.000Z",
"updated_last": "2024-07-14T22:08:04.856Z",
"description": "Following is reaction to Spain's 2-1 victory over England in Sunday's Euro 2024 final in Berlin:",
"content": "Following is reaction to Spain's 2-1 victory over England in Sunday's Euro 2024 final in Berlin: Spain coach Luis de la Fuente: \"I couldn't be happier. To see the fans, to see the players. A real team, European champions. I said I was proud and today I am even prouder. It confirms what we are. For me, they are the best in the world and today I confirm that definition.\" Spain's first goalscorer Nico Williams: \"Euphoric. All our people deserve it. We suffered a lot. They had a good team. They have players who can make the difference but we were able to counter their weapons and in the end we won the European Championship and we are very happy.\"...",
"videos": null,
"images": [
{
"image_url": "https://cloudfront-us-east-2.images.arcpublishing.com/reuters/A3CSJNELCRP55N5ASVHAR4IK3Y.jpg",
"image_description": "Spain's Alvaro Morata lifts the trophy. REUTERS/Kai Pfaffenbach"
}
],
"related_articles": [
{
"article_title": "Greece's Ioannidis and Tzolis secure 2-0 victory in Ireland",
"article_url": "https://www.reuters.com/sports/soccer/greeces-ioannidis-tzolis-secure-2-0-victory-ireland-2024-09-10/"
},
{
"article_title": "Czechs beat Ukraine 3-2 in Nations League",
"article_url": "https://www.reuters.com/sports/soccer/czechs-beat-ukraine-3-2-nations-league-2024-09-10/"
},
// ... more related articles
],
"keyword": "Soccer"
}
]
import requests
import json
# Your API Key
api_key = 'YOUR_API_KEY'
# API Endpoint for news by URL
url = 'https://taskagi.net/api/news/reuters-scraper/news'
# Headers
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json'
}
# Request Body
data = {
'url': 'https://www.reuters.com/sports/soccer/reaction-spains-victory-over-england-euro-2024-final-2024-07-14/'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
news_info = response.json()
# Print the news information
print(json.dumps(news_info, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)
# API Endpoint for news by keyword
url = 'https://taskagi.net/api/news/reuters-scraper/news-by-keyword'
# Request Body for keyword search
data = {
'keyword': 'Euro 2024'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
news_by_keyword = response.json()
# Print the news information
print(json.dumps(news_by_keyword, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)