I’ve successfully integrated the open Trivia api into an app, but find the tools available to prevent duplicate questions limited.
One thing that would help a lot is be ability to front load seen questions into a session. Meaning that when we create a session token, we can push a list of seen questions.
Now, of course, the api would also need to return question IDs for this suggestion to be possible.
Otherwise my options are to
- download the entire db, give each question an ID myself and include that with the app
Or
- the lazy load approach, which is to write messy code that retains each question seen by the api and scans what we’ve seen by string.
Neither approach above is great, and I would love to have a more advanced way of preventing duplicates.
I’d be happy to help with this, but the code for the backend doesn’t seem to be open source.
Overall, I love this database.
I’ve gotten hours of fun from it with friends and family. So, thank you all for maintaining it.
Thanks,
Nicholas