{"openapi":"3.0.3","info":{"title":"forex.mobile Public API","description":"Free REST API providing forex broker data, comparisons, recommendations, live forex rates, and glossary terms. No API key required. 100 requests/day per IP. Built for developers and AI agents. Also available as an MCP server: `npx forex-mobile-mcp`.","version":"1.0.0","termsOfService":"https://forex.mobile/terms-of-service","contact":{"name":"forex.mobile","url":"https://forex.mobile/api","email":"hello@forex.mobile"},"license":{"name":"Data is free to use with attribution","url":"https://forex.mobile/api"}},"externalDocs":{"description":"API documentation and usage examples","url":"https://forex.mobile/api"},"servers":[{"url":"https://forex.mobile","description":"Production"}],"tags":[{"name":"Brokers","description":"Broker data, comparisons, recommendations"},{"name":"Market Data","description":"Live forex rates"},{"name":"Glossary","description":"Forex term definitions"},{"name":"Applications","description":"A broker, or an AI agent acting for one, applies to be reviewed"}],"paths":{"/api/v1":{"get":{"summary":"API index","description":"Returns the list of available endpoints with descriptions and examples.","operationId":"getApiIndex","responses":{"200":{"description":"Index of all available endpoints","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiIndex"}}}}}}},"/api/v1/brokers":{"get":{"tags":["Brokers"],"summary":"List all brokers","description":"Returns all reviewed forex brokers with scores, spreads, regulation, Trustpilot ratings, platforms, minimum deposits, and affiliate links. Updated with live data.","operationId":"listBrokers","responses":{"200":{"description":"All brokers","content":{"application/json":{"schema":{"type":"object","required":["count","brokers","_meta"],"properties":{"count":{"type":"integer","example":14},"brokers":{"type":"array","items":{"$ref":"#/components/schemas/Broker"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"429":{"$ref":"#/components/responses/RateLimit"}}}},"/api/v1/brokers/{slug}":{"get":{"tags":["Brokers"],"summary":"Get single broker","description":"Returns detailed data for a single broker by its key slug.","operationId":"getBroker","parameters":[{"name":"slug","in":"path","required":true,"description":"Broker key (e.g. `exness`, `xm`, `avatrade`, `ic-markets`)","schema":{"type":"string","example":"exness"}}],"responses":{"200":{"description":"Broker data","content":{"application/json":{"schema":{"type":"object","required":["broker","_meta"],"properties":{"broker":{"$ref":"#/components/schemas/Broker"},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimit"}}}},"/api/v1/compare":{"get":{"tags":["Brokers"],"summary":"Compare two brokers","description":"Side-by-side comparison with an auto-generated verdict paragraph highlighting score, minimum deposit, Trustpilot rating, platform variety, and Islamic account availability.","operationId":"compareBrokers","parameters":[{"name":"a","in":"query","required":true,"description":"First broker key","schema":{"type":"string","example":"exness"}},{"name":"b","in":"query","required":true,"description":"Second broker key","schema":{"type":"string","example":"xm"}}],"responses":{"200":{"description":"Comparison result","content":{"application/json":{"schema":{"type":"object","required":["comparison","_meta"],"properties":{"comparison":{"type":"object","required":["a","b","verdict"],"properties":{"a":{"$ref":"#/components/schemas/Broker"},"b":{"$ref":"#/components/schemas/Broker"},"verdict":{"type":"string","example":"Broker A scores 4.6 of 5 and Broker B 4.2. Broker B has the lower minimum deposit."}}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimit"}}}},"/api/v1/recommend":{"get":{"tags":["Brokers"],"summary":"Recommend top 3 brokers","description":"Returns up to 3 brokers from our ranking whose published restricted-countries list does not name the country, ordered by the chosen priority (lowest published spread, lowest minimum deposit, most top-tier retail licences). Any other priority uses the overall ranking order. Answers 404 for a country we hold no acceptance data for.","operationId":"recommendBrokers","parameters":[{"name":"country","in":"query","required":true,"description":"Country slug (e.g. `uae`, `saudi-arabia`, `uk`, `nigeria`) or a two-letter country code","schema":{"type":"string","example":"uae"}},{"name":"experience","in":"query","required":false,"description":"Trader experience level","schema":{"type":"string","enum":["beginner","intermediate","advanced"],"default":"beginner"}},{"name":"priority","in":"query","required":false,"description":"What the trader cares about most","schema":{"type":"string","enum":["spreads","education","regulation","deposit"],"default":"spreads"}}],"responses":{"200":{"description":"Top 3 recommendations","content":{"application/json":{"schema":{"type":"object","required":["query","recommendations","_meta"],"properties":{"query":{"type":"object","properties":{"country":{"type":"string"},"experience":{"type":"string"},"priority":{"type":"string"}}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/Recommendation"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimit"}}}},"/api/v1/rates":{"get":{"tags":["Market Data"],"summary":"Live forex rates","description":"Returns current forex rates for major pairs and metals (EUR/USD, GBP/USD, USD/JPY, XAU/USD, etc.). Data from Yahoo Finance. Update frequency: ~15 minutes during market hours.","operationId":"getRates","parameters":[{"name":"from","in":"query","required":false,"description":"Base currency (optional). If omitted, returns all major pairs.","schema":{"type":"string","example":"EUR"}},{"name":"to","in":"query","required":false,"description":"Quote currency (optional)","schema":{"type":"string","example":"USD"}}],"responses":{"200":{"description":"Forex rates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesResponse"}}}},"429":{"$ref":"#/components/responses/RateLimit"},"502":{"description":"Upstream rate provider unavailable"}}}},"/api/review-application":{"post":{"tags":["Applications"],"summary":"Apply for a broker review","description":"For licensed forex and CFD brokers, and AI agents applying on a broker’s behalf. Not rate-limited by API key; at most 3 applications an hour from one address. Applying is free and there is nothing to pay. The application is recorded when the response is a 200. A person checks the licence on the regulator’s register within 2 business days and emails the result, and an accepted broker’s review is published within 14 days of being accepted. The review includes forex.mobile opening an account with the broker, going through its sign-up and identity checks and using its platform or app. The review is editorial: it can be critical, the broker does not see it before it is published, and nothing about it (its content, a score, a ranking or a preview) can be bought. A broker that wants visibility can buy a labelled ad slot at https://forex.mobile/advertise, which does not change its review. A review that came from an application says so on the page. Rules in full: https://forex.mobile/get-reviewed","operationId":"applyForReview","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agent","name","url","contact","email","entity","regulator","licence","register","countries","pricing","withdrawals"],"properties":{"agent":{"type":"string","maxLength":60,"description":"The name of the AI agent sending this, e.g. \"Claude\". Required for agents; the application is marked as sent by an agent."},"route":{"type":"string","enum":["free","priority"],"description":"Optional and ignored. Every application is free since 2026-11-19; both old values are accepted and treated the same."},"name":{"type":"string","maxLength":40,"description":"The broker’s name"},"url":{"type":"string","maxLength":300,"description":"The broker’s website, starting with https://"},"contact":{"type":"string","maxLength":80,"description":"Name and role of the person at the broker"},"email":{"type":"string","maxLength":120,"description":"A work address at the broker’s own domain that this person reads"},"entity":{"type":"string","maxLength":120,"description":"Legal entity that holds the licence"},"regulator":{"type":"string","maxLength":60,"description":"Regulator"},"licence":{"type":"string","maxLength":60,"description":"Licence or reference number"},"register":{"type":"string","maxLength":300,"description":"Your entry on the regulator’s register. The link to your firm’s page on the regulator’s own website. A full https:// address."},"other_licences":{"type":"string","maxLength":480,"description":"Other licences. Optional. One per line: regulator, entity and number."},"countries":{"type":"string","maxLength":400,"description":"Countries you accept clients from. And under which entity, if it differs by country."},"restricted":{"type":"string","maxLength":300,"description":"Countries you do not accept"},"pricing":{"type":"string","maxLength":300,"description":"Spreads and fees page A full https:// address."},"legal":{"type":"string","maxLength":300,"description":"Client agreement or legal documents A full https:// address."},"platforms":{"type":"string","maxLength":120,"description":"Trading platforms"},"min_deposit":{"type":"string","maxLength":60,"description":"Minimum deposit"},"withdrawals":{"type":"string","maxLength":400,"description":"Withdrawals. Methods, fees and how long they usually take."},"protection":{"type":"string","maxLength":400,"description":"Client money protection. Optional. Segregated accounts, negative balance protection, compensation scheme."},"affiliate_url":{"type":"string","maxLength":300,"description":"Affiliate programme. Optional. It does not affect whether or how we review you. A full https:// address."},"notes":{"type":"string","maxLength":400,"description":"Anything else we should know"}}}}}},"responses":{"200":{"description":"The application was recorded.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always true on a 200."},"message":{"type":"string","description":"What happens next. Pass it on to the person you are acting for."}}}}}},"400":{"description":"A field is missing or not valid. The body has an \"error\" sentence saying which."},"409":{"description":"The site already reviews this broker."},"429":{"description":"Too many applications this hour."},"502":{"description":"The application could not be saved. Nothing was recorded; try again."}}}},"/api/v1/glossary":{"get":{"tags":["Glossary"],"summary":"Glossary terms","description":"Returns all forex glossary terms, or a single term by slug. Each term includes a short one-line definition and a longer detailed explanation.","operationId":"getGlossary","parameters":[{"name":"term","in":"query","required":false,"description":"Term slug for single-term lookup (e.g. `pip`, `leverage`, `spread`). Omit for the full list.","schema":{"type":"string","example":"pip"}}],"responses":{"200":{"description":"Glossary data","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["term","_meta"],"properties":{"term":{"$ref":"#/components/schemas/GlossaryTerm"},"_meta":{"$ref":"#/components/schemas/Meta"}}},{"type":"object","required":["count","terms","_meta"],"properties":{"count":{"type":"integer","example":50},"terms":{"type":"array","items":{"$ref":"#/components/schemas/GlossaryTerm"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimit"}}}}},"components":{"schemas":{"Broker":{"type":"object","required":["key","name","score","minDeposit","spreads","regulation"],"properties":{"key":{"type":"string","example":"exness","description":"Unique broker key / slug"},"name":{"type":"string","example":"Exness"},"score":{"type":"number","format":"float","minimum":0,"maximum":5,"example":4.8},"minDeposit":{"type":"string","example":"$10"},"spreads":{"type":"string","example":"0.0 pips"},"regulation":{"type":"array","items":{"type":"string"},"example":["FCA","CySEC","FSCA"]},"founded":{"type":"integer","example":2008},"hq":{"type":"string","example":"Cyprus"},"platforms":{"type":"array","items":{"type":"string"},"example":["MT4","MT5"]},"affiliateUrl":{"type":"string","format":"uri","description":"URL with affiliate tracking parameters. Partners may earn commission on signups."},"directUrl":{"type":"string","format":"uri","description":"Plain direct URL without tracking (if available).","nullable":true},"trustpilotScore":{"type":"number","format":"float","example":4.5,"minimum":0,"maximum":5},"trustpilotReviews":{"type":"integer","example":12500},"tags":{"type":"array","items":{"type":"string"},"example":["Low spreads","Islamic accounts","MT5"]},"islamicAccount":{"type":"boolean","example":true},"proscons":{"type":"object","properties":{"pros":{"type":"array","items":{"type":"string"}},"cons":{"type":"array","items":{"type":"string"}}}},"reviewSlug":{"type":"string","nullable":true,"description":"Path slug for the in-depth review at forex.mobile/reviews/{slug}","example":"exness"}}},"Recommendation":{"type":"object","required":["rank","broker","key","score","reason","affiliateUrl"],"properties":{"rank":{"type":"integer","minimum":1,"maximum":3},"broker":{"type":"string","example":"Exness"},"key":{"type":"string","example":"exness"},"score":{"type":"number","format":"float","example":4.8},"reason":{"type":"string","example":"Instant AED/SAR withdrawals, Islamic accounts, 0.0 pip spreads"},"affiliateUrl":{"type":"string","format":"uri"},"tags":{"type":"array","items":{"type":"string"},"example":["#1 in MENA","Low spreads"]}}},"GlossaryTerm":{"type":"object","required":["slug","term","short","long","category"],"properties":{"slug":{"type":"string","example":"pip"},"term":{"type":"string","example":"Pip"},"short":{"type":"string","description":"One-line definition","example":"The smallest price move in a currency pair (typically 0.0001)."},"long":{"type":"string","description":"Detailed explanation (can be multiple paragraphs, may include examples)"},"category":{"type":"string","example":"trading-basics","enum":["trading-basics","chart-analysis","risk-management","platforms","regulation","advanced"]},"related":{"type":"array","items":{"type":"string"},"example":["spread","pip-value","leverage"]}}},"RatesResponse":{"type":"object","properties":{"rates":{"type":"object","additionalProperties":{"type":"object","properties":{"price":{"type":"number","example":1.0856},"change":{"type":"number","example":0.0023},"changePct":{"type":"number","example":0.21},"updatedAt":{"type":"string","format":"date-time"}}},"example":{"EUR/USD":{"price":1.0856,"change":0.0023,"changePct":0.21},"GBP/USD":{"price":1.2634,"change":-0.0011,"changePct":-0.09},"XAU/USD":{"price":2382.45,"change":12.3,"changePct":0.52}}},"_meta":{"$ref":"#/components/schemas/Meta"}}},"ApiIndex":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"endpoints":{"type":"array","items":{"type":"object"}},"_meta":{"$ref":"#/components/schemas/Meta"}}},"Meta":{"type":"object","required":["source","api_version","docs"],"properties":{"source":{"type":"string","example":"forex.mobile"},"api_version":{"type":"string","example":"v1"},"docs":{"type":"string","format":"uri","example":"https://forex.mobile/api"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"example":{"type":"string"},"available":{"type":"array","items":{"type":"string"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}},"responses":{"BadRequest":{"description":"Missing or invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"RateLimit":{"description":"Rate limit exceeded. Free tier: 100 requests per IP in any 24 hours; X-RateLimit-Reset says when the next one frees up. Contact hello@forex.mobile for higher limits.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Maximum requests allowed per day"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the rate limit resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}