Discover/myfxbook.com API
live

myfxbook.com APImyfxbook.com

Access Myfxbook economic calendar events, central bank interest rates, market hours, and holiday data via a structured JSON API with 9 endpoints.

Endpoints
9
Updated
14d ago
Try it
Time period: yesterday, today, tomorrow, this_week, next_week
api.parse.bot/scraper/09664a39-3a46-41b8-852d-1286994ec995/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/09664a39-3a46-41b8-852d-1286994ec995/get_economic_calendar?period=today' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 9 totalclick to expand

Fetch economic calendar events for a given period (yesterday, today, tomorrow, this_week, next_week).

Input
ParamTypeDescription
periodstringTime period: yesterday, today, tomorrow, this_week, next_week
Response
{
  "type": "object",
  "fields": {
    "data": "array of economic calendar event objects",
    "status": "string, always 'success'"
  },
  "sample": {
    "data": [
      {
        "id": "306282",
        "date": "Thursday, May 07, 2026",
        "time": "May 07, 00:00",
        "actual": "",
        "impact": "High",
        "country": "United Kingdom",
        "currency": "GBP",
        "datetime": "2026-05-07 00:00:00.0",
        "previous": "",
        "consensus": "",
        "event_url": "https://www.myfxbook.com/forex-economic-calendar/united-kingdom/local-elections",
        "event_name": "Local Elections"
      }
    ],
    "status": "success"
  }
}

About the myfxbook.com API

The Myfxbook API provides 9 endpoints covering forex-relevant economic data: calendar events by period, date, or country; central bank interest rates; major session market hours; and bank holiday schedules. The get_event_history endpoint returns paginated historical release records with previous, consensus, and actual values for any tracked indicator, making it straightforward to build backtesting datasets or economic surprise models.

Economic Calendar Coverage

Three endpoints let you slice the economic calendar differently. get_economic_calendar accepts a period parameter (yesterday, today, tomorrow, this_week, next_week) for time-relative queries. get_economic_calendar_by_date takes an explicit date in YYYY-MM-DD format when you need a precise day. get_economic_calendar_by_country accepts a country_slug (e.g., united-states, japan) and returns a response object that includes country, description, and an events array. All three return the same event object shape in their data field, and all respond with a status of success.

Event Detail and History

get_event_detail takes both an event_slug (e.g., initial-jobless-claims) and a country_slug and returns event_name, event_slug, country, description, impact, and event_id. That event_id — which can be a negative integer — feeds directly into get_event_history, which returns paginated historical releases with date, time, previous, consensus, and actual fields per release. Alternatively, get_event_history can resolve the event_id internally if you supply event_slug and country_slug instead. Use the page parameter to walk through long histories.

Rates, Sessions, and Holidays

get_interest_rates returns an array of objects per country with central_bank_abbr, central_bank_name, current_rate, previous_rate, change, and last_meeting date — no inputs required. get_market_hours returns a markets object keyed by day label showing open/close times for Tokyo, Sydney, New York, and London sessions, plus a liquidityLastDayValueAverage field. get_holidays_calendar covers the current week and returns holiday records with date, time, country, currency, and holiday_name.

Search

search_economic_events accepts a free-text query (e.g., GDP, inflation, jobless) and searches across event names, countries, and currencies within next week's scheduled events, returning matching event objects in the same structure as the calendar endpoints.

Common use cases
  • Build an economic surprise tracker by comparing actual vs consensus values from get_event_history
  • Display an upcoming-events widget filtered by country using get_economic_calendar_by_country
  • Populate a forex trading dashboard with live central bank rates from get_interest_rates
  • Alert users before high-impact events by querying get_economic_calendar with period=today and filtering on impact
  • Identify trading session overlaps using open/close times from get_market_hours
  • Warn users about reduced liquidity days by checking get_holidays_calendar against their trading calendar
  • Keyword-search scheduled releases with search_economic_events to find all upcoming inflation-related announcements
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Myfxbook offer an official developer API?+
Myfxbook publishes a documented API at https://www.myfxbook.com/api that covers account statistics and trading data for authenticated users. The endpoints in this Parse API cover the public-facing economic calendar, interest rates, and market hours data that does not require an account.
What does get_event_history actually return, and how far back does it go?+
Each record in the data array includes date, time, previous, consensus, and actual for a single scheduled release of the event. Results are paginated using the page parameter. The depth of history depends on how many releases Myfxbook has recorded for that specific event — there is no documented cutoff date, but major indicators like GDP and CPI typically have multi-year histories available.
Does the holidays calendar cover more than the current week?+
get_holidays_calendar returns only the current week's market and bank holidays. Future or past holiday data is not currently exposed by this API. You can fork it on Parse and revise it to add a date-range parameter for multi-week holiday lookups.
Can I filter economic calendar results by impact level (e.g., high-impact only)?+
Impact data is returned in the get_event_detail response, but the calendar endpoints (get_economic_calendar, get_economic_calendar_by_date, get_economic_calendar_by_country) do not accept an impact filter as an input parameter. Filtering by impact currently needs to be done client-side after retrieving results. You can fork the API on Parse and revise it to add server-side impact filtering.
Does the API return forex pair prices or historical exchange rate data?+
No price or exchange rate data is exposed. The API covers economic calendar events, central bank interest rates, market session hours, and holiday schedules. You can fork it on Parse and revise it to add endpoints pulling currency pair data from other sources.
Page content last updated . Spec covers 9 endpoints from myfxbook.com.
Related APIs in FinanceSee all →
mazda.ca API
Find current vehicle deals, financing rates, lease options, and incentives across all Mazda Canada models and trims, with pricing tailored to your province. Get instant payment quotes to compare your options and discover the best offers available.
13f.info API
13f.info API
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
morningstar.com.au API
Access comprehensive financial data for Australian stocks, ETFs, and managed funds including key metrics, valuations, dividends, and historical prices. Search securities, review company profiles and ownership details, and stay informed with market news and upcoming dividend information.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.