Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
For a personal project I came across a webapi for retrieving paginated public battle records here.
If I were to automate retrieval, would this be considered API abuse? I haven't been able to find a good TOS on this yet.