Output details in HomeAssistant

on discovery of HomeAssistant using the api HOME_ASSISTANT_URL + “/api/states” , I am getting all the states of the devices including updations. I need to seperate out only devices or want to know how the entity id is assigned?