credits for ap

How many high school credits can I get for ap classes?

And do they go towards college or high school?

Passing AP tests will give you college credit but it depends upon each college’s AP Policy on how much credit you will receive.
Taking AP courses in HS will give you HS credit and again how much depends upon if your HS is semester, quarter or trimester along with how your HS weights these courses.