Every day, millions of transcriptions are created using the AssemblyAI API. Developers transcribe videos, podcasts, phone calls, interviews, and a slew of other types of content that we never imagined back when we started the company in 2017.
A common ask we get from developers is for an easy way to query for, and paginate through, all the transcriptions they’ve historically created with the AssemblyAI API. Traditionally, we’ve advised developers to store the IDs of all the transcriptions they create. That way a developer can, at any time, query the AssemblyAI API for the details of a historical transcription with a GET request like below:
But over time we’ve found that storing these transcription IDs may not always be easy for developers, as it often requires a schema change to a database which is never fun. More commonly, developers integrating the AssemblyAI API want to be able to query for a list of transcriptions that are still processing, failed, or queued, to help them debug their applications as they are building.
That’s why today we are happy to make available our new List Endpoint, which give developers the ability to query for, and paginate through, all of their historical transcriptions. For example, here’s how we can quickly query for the most recent 200 completed transcriptions on our account:
The above query will return a JSON response like this:
As you can see above, the API returns a list of our most recent completed transcripts. The API only returns up to 200 transcriptions in the API response, so you can easily make iterative GET requests to the prev_url or next_url in the page_details section of the JSON response to “iterate” to the next “page” of transcriptions, giving you the ability to paginate through all of the transcriptions in your account. You can also filter the results by status, to query for only your “processing” transcriptions, for example.
For more details on this new API endpoint, check out the API Docs here - and if you have any questions at all, just let us know! You can email firstname.lastname@example.org any time, and you can also use the chat in the bottom right corner of the page to chat live with our support team!