MLB API documentation should be very similar. Both were built by MLB Advanced Media.
I believe there is one for NBA basketball, too. Someone posted a terminal program for reading its scores on HN once, but since I have no interest in basketball, I didn't bookmark it.