FYI there is a tool (Spiderfoot) that has this capability specifically targeting the OSINT space. You may be able to leverage the same method they use to add more capabilities to this tool.
Spiderfoot - https://github.com/smicallef/spiderfoot/blob/master/modules/...
Resource used by Spiderfoot to do account lookups - https://raw.githubusercontent.com/WebBreacher/WhatsMyName/ma...