Deal records can be associated with Company records, but because they're distinct objects you can't pull Company records using the Deals API. You'd need to get a deal's associatedCompanyId, and then use the Companies API to pull the details for that specific company record.