Where to find shop ID and Language ID

Where to find shop ID and Language ID ?

In the database or you can use the api or maybe the product export to get it.