For APIs that provide UV Index, check out OpenUV.
The OpenUV API provides UV index data in real time (even hourly). This API requires an API key from the provider.
The UV Index provides a 14 day UV index forecast from cities all over the world.
The UV Index API is free up to 20 requests/month and then costs $0.04 per additional request.