Iran Widget - Smart Financial Widgets
Accurate Data
Weekly Updates
Domain Security

Forex Factory Calendar API

Easy and secure access to real-time economic news for global markets. Designed for developers, financial websites, and fintech platforms.

200+ Coverage of over 200 Factory economic news with Low/Medium/High importance
FA/EN News titles in both Persian and English languages
✔️ Domain-based security — No API Key required
Weekly Automatic data updates every Sunday at 15:00
1 line Easy to use: Only one line of code needed
✔️ Performance guarantee — Data source from IranAffix
Buy API
📊 Track live financial data with our widgets!
Your Direct API Link:
https://iranwidget.com/api_economic/api.php

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.

Target Audience for the API

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

Unique Features

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

Complete Coverage of Factory Economic News

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

Advanced Technical Capabilities

Domain-Based Security

Automatic Update Every Sunday

Bilingual Support (FA/EN)

No API Key Required

Active CORS for All Domains

Standard JSON Format

Advanced Technical Capabilities

Domain-Based Security

Automatic Update Every Sunday

Bilingual Support (FA/EN)

No API Key Required

Active CORS for All Domains

Standard JSON Format

How to Use the API

3 Simple Steps to Receive Data:

1

Purchase and Activate API

Purchase the product from Iran Widget store and register your website domain

2

Domain License Test

Use the test tool on our website to ensure your domain is authorized

3

Use in Your Project

With one simple line of code, receive news data in any part of your website or application

Technical Support and Full Compatibility

Compatibility with all modern frameworks and languages:

JavaScript (Vanilla, React, Vue)
PHP, Python, Node.js
Mobile Applications (Flutter, React Native)
Custom Content Management Systems
Telegram Bots and Automated Systems

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.

Special Pricing

Forex Factory Calendar API

$29.99
Lifetime license for one domain
Lifetime access to all future updates and new features
Specialized technical support and lifetime support via ticket


Forex Economic Calendar API — Secure and stable access to 200+ Factory economic news with Persian translation

Frequently Asked Questions
Can I test the API before purchasing?
Yes! Use the test code on this page. If your domain is authorized, economic news will be displayed.
Do I need an API Key or complicated setup?
No! Only your website domain is registered in our system. No additional keys or setup required.
Does the API support CORS?
Yes! All responses are sent with the Access-Control-Allow-Origin: * header and can be used in any framework.
How often is the data updated?
Factory economic news is updated every Sunday at 15:00 from the reliable source IranAffix.

Market Clock Widget Reviews

Real experiences from users who purchased and use IranWidget's Global Market Session Widget

Ali Rezaei
The session widget is amazing! Market hours display is completely real-time and accurate. Thank you IranWidget.
Mehdi Farhadi
The widget loading speed is fantastic, my website doesn't slow down at all. The best choice for financial websites.
Sara Karimi
I installed the digital mode with dark theme, my page looks very elegant and professional. Thanks iranwidget.
Reza Nowroozi
The countdown timer until the next market open/close is very practical. I don't miss any session anymore!
Fatemeh Mohammadi
Quick support and installation in less than 2 minutes. The IranWidget team is truly professional.
Amir Hosseini
Simultaneous display of local time and Tehran time is excellent. Ideal for Iranian traders.
Narges Ahmadi
The classic analog mode in the sidebar looks beautiful and attractive. Thank you for the beautiful design.

Light