Trivia api #943

Closed
opened 2026-05-13 08:01:07 +00:00 by c24danli · 9 comments
Collaborator

Open Trivia db have an api to get questions and answers for trivia questions, research needed.

As this is not a important part of the system the api does not have to be long time available if it goes down we just remove the view BUT i does have to be legal to use. I believe this will be fairly short research so this issue involves.

  1. Can we use the api
  2. If it's ok to use create a view that shows the data.
[Open Trivia db](https://opentdb.com/api_config.php) have an api to get questions and answers for trivia questions, research needed. As this is not a important part of the system the api does not have to be long time available if it goes down we just remove the view BUT i does have to be legal to use. I believe this will be fairly short research so this issue involves. 1. Can we use the api 2. If it's ok to use create a view that shows the data.
Collaborator

Research

The open trivia db provides a public API for retrieving trivia questions and answers the API is free to use under the licensing conditions and suitable for light-weight use such as trivia games.

The API data is distributed under the CC BY-SA 4.0

This means that:

  • the data can be used freely in applications provided the license terms are followed
  • However we must make an attribution to Open Trivia DB in our project can be placed in a footer, about page or similar as long as its visible on our website.
  • If we modify the data and redistribute it as a dataset then it must remain under the same license.

Basically for our project that only fetches and displays the content the main requirement would be attribution. That is assuming there are no redistribution of the dataset occurs.

Technical suitability.

  • simple REST API with no required authentication
  • it supports categories, difficulty and question types.
  • It returns the content in JSON format:
{
  "response_code": 0,
  "results": [
    {
      "type": "multiple",
      "difficulty": "easy",
      "category": "Art",
      "question": "Who painted the Sistine Chapel?",
      "correct_answer": "Michelangelo",
      "incorrect_answers": [
        "Leonardo da Vinci",
        "Pablo Picasso",
        "Raphael"
      ]
    },

Conclusion

The API is acceptable to use for a trivia view and the only requirement would be to include a proper attribution for the data source. and the application respects the CC BY-SA 4.0 license terms.

CC BY-SA 4.0 Deed in English: Deed

CC BY-SA 4.0 Deed in Swedish: Deed

Complete legal license in Swedish: License

### Research The open trivia db provides a public API for retrieving trivia questions and answers the API is free to use under the licensing conditions and suitable for light-weight use such as trivia games. ### LEGAL USE The API data is distributed under the CC BY-SA 4.0 This means that: - the data can be used freely in applications provided the license terms are followed - However we must make an attribution to Open Trivia DB in our project can be placed in a footer, about page or similar as long as its visible on our website. - If we modify the data and redistribute it as a dataset then it must remain under the same license. Basically for our project that only fetches and displays the content the main requirement would be attribution. That is assuming there are no redistribution of the dataset occurs. ### Technical suitability. - simple REST API with no required authentication - it supports categories, difficulty and question types. - It returns the content in JSON format: ``` { "response_code": 0, "results": [ { "type": "multiple", "difficulty": "easy", "category": "Art", "question": "Who painted the Sistine Chapel?", "correct_answer": "Michelangelo", "incorrect_answers": [ "Leonardo da Vinci", "Pablo Picasso", "Raphael" ] }, ``` ### Conclusion The API is acceptable to use for a trivia view and the only requirement would be to include a proper attribution for the data source. and the application respects the CC BY-SA 4.0 license terms. ### Links: CC BY-SA 4.0 Deed in English: [Deed](https://creativecommons.org/licenses/by-sa/4.0/) CC BY-SA 4.0 Deed in Swedish: [Deed](https://creativecommons.org/licenses/by-sa/4.0/deed.sv) Complete legal license in Swedish: [License](https://creativecommons.org/licenses/by-sa/4.0/legalcode.sv)
Collaborator

Research looks good and is written in a way that is understandable.

Research looks good and is written in a way that is understandable.
Collaborator

@c24danli can we close this issue and open a new on what is next step for this?

@c24danli can we close this issue and open a new on what is next step for this?
Author
Collaborator

Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year?

Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year?
Collaborator

@c24danli wrote in #943 (comment):

Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year?

It is currently not added to the wiki i could add it under evaluations if thats needed.

@c24danli wrote in https://git.webug.se/Andras/BoundlessFlowCampus2K/issues/943#issuecomment-14755: > Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year? It is currently not added to the wiki i could add it under evaluations if thats needed.
Author
Collaborator

That would be good, then you can comment here and i will close it after @b24krila wrote in #943 (comment):

@c24danli wrote in #943 (kommentar):

Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year?

It is currently not added to the wiki i could add it under evaluations if thats needed.

That would be good, then you can comment here and i will close it after @b24krila wrote in https://git.webug.se/Andras/BoundlessFlowCampus2K/issues/943#issuecomment-14778: > @c24danli wrote in #943 (kommentar): > > > Looks Good, we could just copy paste the research into the wiki if it doesnt exist there then we can close it, and create a issue for next year? > > It is currently not added to the wiki i could add it under evaluations if thats needed.
Collaborator

Wait is it more fitting to place it in evaluations or under API section?

Wait is it more fitting to place it in evaluations or under API section?
Author
Collaborator

in my oppinion evaluations as we havent implimented it yet

in my oppinion evaluations as we havent implimented it yet
Collaborator

It is now added to the wiki under evaluations named Trivia API Research

It is now added to the wiki under evaluations named [Trivia API Research](https://git.webug.se/Andras/BoundlessFlowCampus2K/wiki/Trivia-API)
Sign in to join this conversation.
No milestone
No project
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#943
No description provided.