{"openapi":"3.2.0","info":{"title":"Forex Brokers and Servers - MetaTrader API","description":"Access comprehensive data on 400+ forex brokers and their MT4/MT5 server information. Perfect for trading platforms, broker comparison tools, and financial applications.","version":"1.0.0"},"servers":[{"url":"https://pcsaz.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"servers"},{"name":"brokers"}],"x-agent-commerce":{"catalog_url":"https://pcsaz.jojapi.net/_jojapi/agent/plans","discovery_url":"https://pcsaz.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/forex-brokers-and-servers-metatrader","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/":{"get":{"operationId":"get","summary":"root__get","description":"Root endpoint with API information","responses":{"200":{"description":"Successful Response","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"}}},"/api/brokers/{broker_id}/servers/search":{"get":{"operationId":"get_api_brokers_broker_id_servers_search","summary":"search_broker_servers_endpoint_api_brokers__broker_id__servers_s","description":"Search for specific servers within a broker's server list. Returns up to 10 matching results.","tags":["servers"],"responses":{"200":{"description":"Matching servers found","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"id":{"type":"integer","title":"Id"},"platform":{"type":"string","title":"Platform"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","platform","title"],"title":"Server"},"title":"Response Search Broker Servers Endpoint Api Brokers  Broker Id  Servers Search Get"},"examples":{"Example_1":{"value":[{"id":307,"platform":"mt4","title":"Alpari-Demo"},{"id":57744,"platform":"mt5","title":"Alpari-Demo01"}]}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"404":{"description":"Broker not found","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"examples":{"Example_1":{"value":{"detail":[{"loc":[],"msg":"","type":""}]}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"parameters":[{"name":"broker_id","in":"path","required":true,"schema":{"type":"number"}},{"name":"q","in":"query","description":"Search query for server title (case-insensitive)","required":true,"schema":{"type":"string","example":"demo"}}]}},"/api/brokers/{broker_id}/servers":{"get":{"operationId":"get_api_brokers_broker_id_servers","summary":"get_broker_servers_api_brokers__broker_id__servers_get","description":"Retrieve all trading servers for a specific broker, including both MT4 and MT5 servers.","tags":["servers"],"responses":{"200":{"description":"List of servers for the broker","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"id":{"type":"integer","title":"Id"},"platform":{"type":"string","title":"Platform"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","platform","title"],"title":"Server"},"title":"Response Get Broker Servers Api Brokers  Broker Id  Servers Get"},"examples":{"Example_1":{"value":[{"id":2286,"platform":"mt4","title":"Alpari-Broker-Server"},{"id":233,"platform":"mt4","title":"Alpari-Classic"},{"id":57744,"platform":"mt5","title":"Alpari-Demo01"}]}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"404":{"description":"Broker not found","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"examples":{"Example_1":{"value":{"detail":[{"loc":[],"msg":"","type":""}]}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"parameters":[{"name":"broker_id","in":"path","required":true,"schema":{"type":"number"}}]}},"/api/brokers/search":{"get":{"operationId":"get_api_brokers_search","summary":"search_brokers_endpoint_api_brokers_search_get","description":"Search for brokers by name across both MT4 and MT5 platforms. Returns up to 10 results.","tags":["brokers"],"responses":{"200":{"description":"Successful search with matching brokers","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"platform":{"type":"string","title":"Platform"}},"type":"object","required":["id","name","platform"],"title":"BrokerDetail"},"title":"Response Search Brokers Endpoint Api Brokers Search Get"},"examples":{"Example_1":{"value":[{"id":1,"name":"Alpari","platform":"both"},{"id":863,"name":"Alfa-Forex","platform":"both"}]}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"examples":{"Example_1":{"value":{"detail":[{"loc":[],"msg":"","type":""}]}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"parameters":[{"name":"q","in":"query","description":"Search query for broker name (case-insensitive)","required":true,"schema":{"type":"string","example":"alpari"}}]}},"/api/brokers/{broker_id}":{"get":{"operationId":"get_api_brokers_broker_id","summary":"get_broker_api_brokers__broker_id__get","description":"Retrieve detailed information about a specific broker by their unique ID.","tags":["brokers"],"responses":{"200":{"description":"Broker found successfully","content":{"application/json":{"schema":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"platform":{"type":"string","title":"Platform"}},"type":"object","required":["id","name","platform"],"title":"BrokerDetail"},"examples":{"Example_1":{"value":{"id":1,"name":"Alpari","platform":"both"}}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"404":{"description":"Broker not found","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"examples":{"Example_1":{"value":{"detail":[{"loc":[],"msg":"","type":""}]}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"parameters":[{"name":"broker_id","in":"path","required":true,"schema":{"type":"number"}}]}},"/api/brokers/mt5":{"get":{"operationId":"get_api_brokers_mt5","summary":"get_mt5_brokers_api_brokers_mt5_get","description":"Retrieve a complete list of all MetaTrader 5 (MT5) forex brokers available in the database.","tags":["brokers"],"responses":{"200":{"description":"Successful response with list of MT5 brokers","content":{"application/json":{"schema":{"items":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"Broker"},"type":"array","title":"Response Get Mt5 Brokers Api Brokers Mt5 Get"},"examples":{"Example_1":{"value":[{"id":1,"name":"Alpari"},{"id":107,"name":"Exness"},{"id":128,"name":"Pepperstone"}]}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"500":{"description":"Internal server error - data not loaded","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"}}},"/api/brokers/mt4":{"get":{"operationId":"get_api_brokers_mt4","summary":"get_mt4_brokers_api_brokers_mt4_get","description":"Retrieve a complete list of all MetaTrader 4 (MT4) forex brokers available in the database.","tags":["brokers"],"responses":{"200":{"description":"Successful response with list of MT4 brokers","content":{"application/json":{"schema":{"items":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"Broker"},"type":"array","title":"Response Get Mt4 Brokers Api Brokers Mt4 Get"},"examples":{"Example_1":{"value":[{"id":1,"name":"Alpari"},{"id":22,"name":"ActivTrades"},{"id":107,"name":"Exness"}]}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"500":{"description":"Internal server error - data not loaded","content":{"application/json":{"examples":{"Example_1":{"value":{}}}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}