Here's some APIs that would be a good fit for your use case. Also, I suggest you to look at our website for specific APIs relevant to your business case.
Visa Offers Platform API - You Can Search Merchant by ID
VOP Overview - https://developer.visa.com/capabilities/vop
Merchant Search API - The Merchant Search API lets clients find the merchant identification information using the acquirer provided Merchant Name and other attributes such as address and card acceptor identifiers.
Merchant Search Overview - https://developer.visa.com/capabilities/merchant_search
CyberSource Payments API - This API also deals with Merchant IDs but if you'd like to confirm if CyberSource can do what you are specifically looking for then please call the phone number provided below. We have an expert team that manages questions specific to CyberSource. Please reach out to the CyberSource team directly.
CyberSource Overview - https://developer.visa.com/capabilities/cybersource
CyberSource Support - 800-709-7779