Search for news and metadata from Associated Press
AP provides APIs for accessing news content, metadata, elections data, and multimedia from the Associated Press.
import requests
url = "https://api.ap.org/v1/news/search"
params = {
"q": "Ukraine war",
"apiKey": "YOUR_API_KEY"
}
response = requests.get(url, params=params)
print(response.json())Last 50 checks (10 min intervals)