Using the Global Economy News API is straightforward. Just follow these simple steps to access a wealth of economic information:
Select the plan that best fits your needs. We offer a variety of options to suit all budgets. There’s a plan designed for every economy!
Browse our extensive economic categories and choose what interests you most. You can make multiple queries by selecting different categories each time. Some of the available categories include:
In the query field, you can add a boolean syntax query to filter the results from your chosen category. Get only the results that interest you the most, combining brands, company names, and more. Check out the example we’ve provided for you 😉. If you have any doubts, remember you can use the operators allowed by TrawlingWeb, detailed in our syntax guide here.
Country | Monthly volume | Country | Monthly volume |
---|---|---|---|
Spain | 43,796,088 | Brazil | 171,905 |
United States of America (the) | 35,929,528 | Latvia | 147,527 |
Mexico | 12,564,549 | Guatemala | 145,358 |
Argentina | 11,372,101 | Croatia | 134,575 |
Germany | 7,005,507 | Paraguay | 130,756 |
France | 3,090,135 | Bulgaria | 119,903 |
Peru | 2,579,945 | Nicaragua | 106,052 |
Colombia | 1,516,239 | Estonia | 93,548 |
Great Britain | 1,420,759 | Uruguay | 92,1425 |
Chile | 1,384,330 | Puerto Rico | 91,391 |
Poland | 1,210,336 | Lithuania | 85,809 |
India | 1,090,804 | Romania | 84,196 |
Portugal | 822,039 | Slovakia | 81,832 |
Italy | 685,682 | Iceland | 81,540 |
Czechia | 611,839 | Ireland | 73,353 |
Venezuela (Bolivarian Republic of) | 500,963 | Costa Rica | 72,611 |
Panama | 483,531 | Finland | 71,551 |
Turkey | 305,382 | El Salvador | 65,696 |
Canada | 290,226 | Cuba | 60,091 |
Serbia | 280,112 | Denmark | 58,686 |
Dominican Republic (the) | 267,117 | Trinidad and Tobago | 56,619 |
Switzerland | 263,540 | Sao Tome and Principe | 53,958 |
Russia | 253,900 | Japan | 52,410 |
Belgium | 229,810 | Norway | 49,328 |
Austria | 214,845 | Sweden | 43,065 |
Ecuador | 197,146 | Andorra | 35,389 |
Netherlands (the) | 192,572 | Slovenia | 30,783 |
With these easy steps, you’re ready to dive into the vast world of economic news. The Global Economy News API by TrawlingWeb will provide you with the latest and most relevant data to maintain your competitive edge.
This API returns up to a maximum of 100 results per query. For queries that generate more than 100 results, it is essential to manage pagination to access all available data.
Each API response includes two key elements that you need to pay attention to for pagination:
totalResults
: This field indicates the total number of results that match your query.next_query
: If the number of totalResults
exceeds 100, this field will provide the necessary query to access the next page of results.Here is a step-by-step example of how to handle multiple pages of results:
totalResults
field.totalResults
is greater than 100, use the value from next_query
to make the subsequent query.next_query
is no longer present in the response.To help you implement pagination, below is an example of how you might make multiple calls using Python:
import requests
def fetch_all_results(base_url, params):
response = requests.get(base_url, params=params)
data = response.json()
results = data['results']
while 'next_query' in data:
response = requests.get(base_url, params={'query': data['next_query']})
data = response.json()
results.extend(data['results'])
return results
# Set initial parameters
base_url = 'https://api.example.com/Banking'
params = {
'country': 'us', # Country code in lowercase
'query': 'initial query here' # Your initial query
}
# Fetch all results
all_results = fetch_all_results(base_url, params)
print(f'Total results fetched: {len(all_results)}')
Here is how you might implement pagination using JavaScript with async/await in Node.js:
const axios = require('axios');
async function fetchAllResults(baseUrl, params) {
let results = [];
let response = await axios.get(baseUrl, { params });
let data = response.data;
results = results.concat(data.results);
while (data.next_query) {
response = await axios.get(baseUrl, { params: { query: data.next_query } });
data = response.data;
results = results.concat(data.results);
}
return results;
}
// Configure initial parameters
const baseUrl = 'https://api.example.com/Banking';
const params = {
country: 'us', // Country code in lowercase
query: 'initial query here' // Your initial query
};
// Fetch all results
fetchAllResults(baseUrl, params).then(allResults => {
console.log(`Total results fetched: ${allResults.length}`);
}).catch(error => {
console.error('Error fetching data:', error);
});
For direct and immediate assistance, please feel free to use our dedicated support channels:
Join our Telegram channel for real-time support and updates. Click here to join: RapidAPIData Telegram Channel
For more detailed inquiries or if you prefer to communicate via email, send us your questions or feedback at: rapidaapi@trawlingweb.com
We are committed to providing you with the support you need to make the most of our API. Feel free to reach out through any of these channels!