Summary
Currently, it is not possible to get the information from Parent Team or Sub-Teams through the API.
Suggestion
Provide the ability to get parent team and sub-team information through REST API.
https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-public-api/#api-public-teams-v1-org-orgid-teams-teamid-get