How could I get information about indices like, e.g., S&P 500 via Python and the record matching API

Could anyone provide an example for retrieving index information via PermID's record matching API about, e.g., S&P 500?

Answers