Passes $api_key via constructor. Uses http_build_query.