Does the API identify foreign corporations (e.g., DE entity registered in another state)?

Yes—responses include both stateOfFormation and stateOfSosRegistration. If they differ, the entity is likely a foreign registration; some states also label entityType as “Foreign”.

field-behavior-interpretation