Element API, query entries where relationship field ':empty:' AND the same relationship field with specified entry ID
Craft will include this functionality in their next release.
https://github.com/craftcms/cms/issues/7256#issuecomment-744644568