Forex Factory Calendar API
Easy and secure access to real-time economic news for global markets. Designed for developers, financial websites, and fintech platforms.
Introduction to Iran Widget
Iran Widget Forex Factory Calendar API is a professional, secure, and stable solution for receiving real-time economic news from global markets. This API is specifically designed for developers, financial websites, fintech platforms, and analytical applications to use economic data in their projects without worrying about downtime or complexity. To view technical documentation and usage instructions, see the Forex Calendar API Connection page.
One Line of Code — Complete Data
No complicated setup required: just one line of code, and all Factory economic news is available to you.
This API is specifically designed for developers and owners of the following platforms:
Web and App Developers
Forex and Economic Analysis Websites
Trading and Investment Educational Platforms
Financial Media and News Agencies
FinTech Startups and Companies
Domain-Based Security
Data is only provided to authorized websites — no possibility of key theft or sharing
Automatic Update Every Sunday at 15:00
Factory economic news is updated weekly from the reliable IranAffix source
One Line of Code — No Complexity
No library or complicated setup needed: just one line of fetch in your project is enough
Support for 200+ Economic News (FA/EN)
News titles in both Persian and English — suitable for international websites
Active CORS with No Limitations
No CORS errors — can be used directly in any website and any framework
Data Source from IranAffix
Data is extracted and processed from the most reliable domestic Forex and Factory news platform
USA (USD)
Important Federal Reserve news and economic indicators
Europe (EUR)
European Central Bank news and key countries' GDP
Asia (JPY, CNY)
Production indicators, central banks, and export data
Persian Translation
News titles are automatically translated into Persian
IranFX
Primary data source — most reliable domestic platform
Domain-Based Security
Automatic Update Every Sunday
Bilingual Support (FA/EN)
No API Key Required
Active CORS for All Domains
Standard JSON Format
Domain-Based Security
Automatic Update Every Sunday
Bilingual Support (FA/EN)
No API Key Required
Active CORS for All Domains
Standard JSON Format
3 Simple Steps to Receive Data:
Purchase and Activate API
Purchase the product from Iran Widget store and register your website domain
Domain License Test
Use the test tool on our website to ensure your domain is authorized
Use in Your Project
With one simple line of code, receive news data in any part of your website or application
Compatibility with all modern frameworks and languages:
Test API Connection to Your Site
Copy the code below and place it in any part of your website (even in WordPress with HTML block). If your domain is authorized, the list of Factory economic news will be displayed.
<!-- Iran Widget Forex Calendar API — Quick Test Version -->
<div id="iranwidget-forex-demo" style="
max-width: 800px; margin: 20px auto; padding: 25px;
background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(255,140,0,0.15);
font-family: 'Vazirmatn', sans-serif; direction: ltr;
border: 1px solid #ffd5a6;
">
<h3 style="color: #FF8C00; margin: 0 0 20px 0; font-weight: 700; text-align: left;">
<img src="https://iranwidget.com/wp-content/uploads/2025/12/logo-widget.png" alt="Iran Widget" style="height: 28px; vertical-align: middle; margin-right: 8px;">
Forex Economic Calendar
</h3>
<div id="iranwidget-forex-status" style="margin-bottom: 20px; color: #555; text-align: left; font-size: 1.1em;">
Loading economic news...
</div>
<div id="iranwidget-forex-sample" style="
background: #f9f9f9; padding: 15px; border-radius: 12px;
max-height: 350px; overflow-y: auto;
"></div>
</div>
<script>
(function() {
const statusEl = document.getElementById('iranwidget-forex-status');
const sampleEl = document.getElementById('iranwidget-forex-sample');
fetch('https://iranwidget.com/api_economic/api.php')
.then(res => {
const contentType = res.headers.get('content-type') || '';
if (!res.ok) throw new Error('Access not authorized');
if (!contentType.includes('application/json')) throw new Error('Response is not valid');
return res.json();
})
.then(data => {
if (!Array.isArray(data) || data.length === 0) {
throw new Error('No news available for display');
}
statusEl.innerHTML = '<span style="color:#38a169; font-weight:600;">✅ Connection successful — economic data is available.</span>';
const sampleNews = data.slice(0, 4);
let html = '<div style="font-size:0.95em; color:#333;">';
sampleNews.forEach((item, i) => {
const title = item.title || item.title_fa || 'No title';
const date = new Date(item.date);
const time = date.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
const impact = item.impact || '—';
html += `
<div style="padding:12px 0; border-bottom:1px dashed #eee; ${i === sampleNews.length - 1 ? 'border:0;' : ''}">
<strong>${title}</strong><br>
<small style="color:#666;">
${time} — ${item.country} — Impact: <span style="color:${
impact === 'High' ? '#e53e3e' :
impact === 'Medium' ? '#dd6b20' : '#38a169'
}">${impact}</span>
</small>
</div>
`;
});
html += '</div>';
sampleEl.innerHTML = html;
sampleEl.style.direction = 'ltr';
})
.catch(err => {
statusEl.innerHTML = `<span style="color:#e53e3e;">❌ Error: ${err.message}</span>`;
sampleEl.innerHTML = '';
});
})();
</script>
⚠️ Note: This code only works on authorized domains (registered after purchase). On unauthorized domains, the message "Access not authorized" will be displayed.
Forex Factory Calendar API
Forex Economic Calendar API — Secure and stable access to 200+ Factory economic news with Persian translation
Secure payment with Iranian bank gateways and cryptocurrency gateway. Instant license delivery after payment.
Access-Control-Allow-Origin: * header and can be used in any framework.For complete tutorials, read the Forex Calendar API Connection page and for more comprehensive guides visit our blog. Also for technical support you can contact us through the contact page.
Market Clock Widget Reviews
Real experiences from users who purchased and use IranWidget's Global Market Session Widget
Average user rating for this product: 4.8 out of 5 | Over 150 verified reviews