Skip to main content

Put a QuizByt Quiz on Your Website: Embeds and the Developer API

Teachers can now put a QuizByt quiz on a class blog with one line of code, and developers can pull quizzes into their own apps through a simple API. Here is what each does, what it costs and how schools can get it free.

Responses๐Ÿ’ฌf๐•
The QuizByt embed page with a preview of a quiz embedded on another site.
The QuizByt embed page with a preview of a quiz embedded on another site.

The short version

  • Anyone can embed two quizzes per class and subject for free, with no account.
  • Teachers and schools with a free account can embed every approved quiz, plus their own.
  • The embedded quiz needs no sign-in, sets no cookies and does not save scores.
  • The developer API returns classes, subjects and quizzes as JSON, with a key bound to your own domain.
  • A school's own developer app gets the Prod plan free at 100 registered students and Prestige at 500.

Teachers already have places where their students go: a class blog, a school site, a page on the learning platform. Asking students to sign up somewhere new for one quiz is a lot of friction. So since late October, a QuizByt quiz can go where the students already are.

There are two ways to do it. Embeds are for teachers and anyone with a website. The API is for developers building their own apps.

Embeds: one line of code

Go to the embed page, choose a class, a subject and a quiz, and copy the code. Paste it into any page that accepts HTML and the quiz appears, ready to play.

  • No sign-in for students. They open the page and start.
  • No cookies, no tracking. The player does not set cookies and does not report back on who played.
  • Marked as they go. Each answer is marked straight away, with the explanation where the quiz has one, and a score at the end.
  • Nothing saved. Because there is no account, scores are not stored. If you need saved results, use the quiz inside QuizByt instead.

Which quizzes can I embed?

Without an account, two quizzes for every class and subject. With a free teacher or school account, every approved quiz in the library, plus the quizzes you or your school wrote. The embed code adds one short line under the quiz saying where it came from, and we ask that you keep it.

๐Ÿ’ก Why no cookies matters: in many countries, collecting data from children online comes with strict rules, such as COPPA in the United States and the Age Appropriate Design Code in the UK. A quiz that collects nothing is one less thing for a school to check.

The developer API

For developers building a learning app, a tutoring platform or a school system, the API returns our quizzes as JSON so you can show them in your own design.

What you can ask for

  • /api/v1/classes and /api/v1/subjects list what is available.
  • /api/v1/quizzes lists quizzes, and /api/v1/quizzes/{name} returns one with its questions.
  • /api/v1/quizzes/next gives the next quiz you have not used yet.
  • /api/v1/me shows your plan and what you have left.

Every request carries your key in an Authorization: Bearer header. The full reference is in the developer docs.

curl -H "Authorization: Bearer qb_live_YOUR_KEY" \
  https://app.quizbyt.com/api/v1/quizzes
The QuizByt API documentation page, with Get a key in three steps and Embed a quiz instead buttons, an authentication section and a code sample.
The developer docs: authentication, plans, every endpoint and code samples.

Keys bound to your domain

When you register, you give your site's address, and the key only works from that domain and its subdomains. A key that leaks in a page's source is useless anywhere else. The address cannot be changed later, so register with the domain you will use in production.

Limits and plans

PlanPriceQuizzes through the APIEmbeds
BetaFree3 per class and subject, in total5 per subject
ProdUSD 99 a year20 per class and subject each month30 per subject
PrestigeUSD 199 a year50 per class and subject each month40 per subject

Every key can make 60 requests a minute and 2,000 a day. Asking for a quiz you already used this month does not count again.

Free for growing schools

If you run a school on QuizByt, your school admin's own developer app gets the Prod plan free once 100 students are registered, and Prestige free at 500. It is checked live, so the plan follows your numbers. A school that wants to show quizzes inside its own app or website, in its own design, can do it at no cost.

Which one should I use?

If you want a quiz on a page this afternoon, use an embed. If you are building something and want the questions as data, use the API. Both use the same quizzes, written and checked by teachers.

Start here: pick a quiz to embed, read the API docs, or register for a developer key. Related: classroom mode.

References

  1. US Federal Trade Commission. Children's Online Privacy Protection Rule (COPPA).
  2. MDN Web Docs. The iframe element. How embedded content works in a web page.

Questions parents ask

Do students need an account to play an embedded quiz?

No. The quiz plays in the page with no sign-in and no cookies. It marks each answer, shows the explanation where there is one, and gives a score at the end. Scores are not saved.

What does the API cost?

The Beta plan is free. The Prod plan is USD 99 a year and Prestige is USD 199 a year. There is no monthly option.

Why is the key tied to one domain?

So a key copied from your site does not work anywhere else. Requests must come from the domain you registered or its subdomains.

What are the rate limits?

60 requests a minute and 2,000 a day for each key.

embed quizdeveloper APIquiz APIteachersschoolsedtech developersAll topics โ†’
Responses๐Ÿ’ฌf๐•
Written byQuizByt Team

The team that builds the lessons, quizzes and worksheets on QuizByt, with teachers reviewing every piece of content before a student sees it.

Read more articles โ†’

Responses

Sign in to join the conversation. Responses are open to people with a QuizByt account, which is how we keep this a place you would let your child read.

Loading responsesโ€ฆ

Try it with your child

Lessons that talk, quizzes that mark themselves, games that make kids think

QuizByt is matched to your child's class. Classes 1โ€“10 and Cambridge O Level. Every subject opens with a free lesson, quiz and worksheet, no account needed.

More from the blog