How Many People Are In Space Right Now
http://api.open-notify.org/astros.json
How many humans are in space right now?
Overview
This API returns the current number of people in space. When known it also returns the names and spacecraft those people are on. This API takes no inputs.
Output
JSON
http://api.open-notify.org/astros.json
JSONP
Appending a callback request to the query string will return JSONP:
http://api.open-notify.org/astros.json?callback=CALLBACK
Examples
Here is an example using jquery:
This should log the number of people in space to the console.
Data Source
I gather and update this data personally as launches and landing occur. There is no official source of data for this kind of thing.