The country paramter for the Spain is ES.
Below is the search query to fetch random 100 news-sources of Spain.
This example demonstrates the HTTP request you make, and the json response you will receive when you use the News API to get live headlines from Spain
https://newsdata.io/api/1/news?country=es&apikey=YOUR_API_KEY