Following a number of requests I’ve added JSONP as an alternative response format. This allows client-side applications to access the API without the restrictions of the same origin policy imposed by browsers.
JSONP is obtained by appending ".json
" to URLs and a query parameter named "callback
" which must specify a valid Javascript function name. For example:
http://ergast.com/api/f1/drivers.json?callback=myParser
Let me know if you find any problems or build something interesting with it!
Leave a Reply