how to find out if a building permit was obtained

how to find out if a building permit was obtained