How to extract all peptide sequences for a UniProt protein entry with an API? I know how to generally pull down information for a UniProt entry using the REST API, for example:
https://www.uniprot.org/uniprot/?query=id:Q9UJL9&amp;sort=score&amp;columns=id,go(molecular%20function)&amp;format=tab
I'm looking at this entry as an example. I'm able to pull down most of the attributes I want with a variation of the API query above, however, I'm stuck on one part.
For all human proteins, I want to pull down the peptide sequences that come from that protein.
In the example above, it would be the sequences of the peptides associated with this section:

Can this be done with the API or do I have to come with a scraping method for all human proteins where I (1) get the protein sequence of each entry, (2) get this table, (3) calculate where the peptides start and end from the sequence in step 1?
I feel like this alternative will be much slower, so I want to check I'm not missing anything obvious.
If downloading the complete database is not an option, you may able to use the instructions from this help page (based on the gff format for any given query):
https://www.uniprot.org/help/download_subsequences