Is there a way to get s&p 500 symbols constituents through API?

Is there a way to get s&p 500 symbols constituents through API?

For example, if I want to get the s&p 500 constituents on 12/31/2018, and 12/31/2017, how to do it in API?

Thanks!

Regards,

Best Answer