Page:
Trivia API
Pages
API SMHI
API Sudoku
API TimeEdit
Accessibility Testing
Api documentation
Bat/Ps
Branch Creation
C# Coding Convention
CSS Coding Convention
Coding Conventions
Creating new databases
Dapper
Dictionary API
Documentation for service endpoints
Documentation of useTemperature and mock sensor
Energy endpoints
Environment
Evaluation react-grid-layout
Evaluation Localization
Evaluation Password hashing
Evaluation Testing framework
Evaluation of Logging Frameworks
Formatter
Frontend model
Generic Diagram for Sensor data flow
Home
How to- Creating Databases in Docker
Implementing different Styles
Implementing new Services (and Mockups)
Implementing new Views
Installation script documentation
Installation
Integration testing utilizing testcontainers, xUnit and ASP.NET core web testservers
Issues
JSON Coding Convention
Jest Testing
Layout endpoints
Linux
Localization
Login endpoints
Mac
Menu Endpoints
Middleware model
Mock API Ceation Guidelines
Mockup models
Model Tools and Standards
Parking endpoints
React/JavaScript Coding Convention
React
Reviews
Room booking endpoints
SQL Coding Convention
Scheduled Database tasks
Scripting Coding Convention
Seasonal theme
Secrets and .env
Server Access
Server-DeploymentUnix
Server-DeploymentWindows
Server-Hardware/Benchmarks
Service/API models
System models
System requirements
Temperature endpoints
Testing API with Bruno
Testing Architecture
Testing frontend for Mobile devices
Testing frontend with Playwright
Testing methodology
Themes
Trivia API
Västtrafik API
Webpage Design
Windows
file endpoints
pg_cron and scheduled database jobs
xUnit Testing
No results
3
Trivia API
Kristoffer Laxing edited this page 2026-05-27 12:26:54 +00:00
Table of Contents
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
CC BY-SA 4.0 Deed in Swedish: Deed
Complete legal license in Swedish: License
1. Setup
2. Standards
- Coding Conventions
- Issues
- Branch creation
- Reviews
- Implementation Standards
- [WIP] Creating new databases
- Localization
3. Models and Diagrams
4. Testing
- Testing methodology
- Testing Architecture
- Testing frontend with Playwright
- Integration testing utilizing testcontainers, xUnit and ASP.NET core webhost
5. Documentation
- Documentation for service endpoints
- API documentation
- Webpage Design
- Secrets and .env
- Evaluations
- Installation and Rebuild script documentation
6. Guides and How-to's
7. Micro Service Mockup Api
- Guidelines Mircro Service Mockup
- Documentation of useTemperature/useTemperatureTimeSeries mockup sensor