Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Kahoot Game Finder. Where do I start?

KENNETHTRIPP
KENNETHTRIPP

So, I had a great project idea. I was playing Kahoot and saw a bunch of people in my class trying to get onto random games, and I thought "I bet I could make a Python program to do that work for me." So, I thought about how I might do it, but came up empty handed. If anyone knows where I might start that would be great. I would prefer a Python solution, but JS, PHP, or C++ (No pointers please. They scare me) would also work.
Maybe

@rafrafraf
?

2 years ago
You are viewing a single comment. View All
1
19wintersp
19wintersp

You can get data about a Kahoot by sending a GET to "https://kahoot.it/rest/kahoots/", where "" is the Kahoot's ID (referenced in their schema as "uuid"). You can find this by searching for the Kahoot, which can be done by sending a GET to "https://create.kahoot.it/rest/kahoots/?query=&limit=25".

You can implement this in Python with the requests module, to send these HTTP requests, and json module to parse the response.

2 years ago
2
19wintersp
19wintersp

Oops, misread question, to check if a code is in reference to a game, GET to "https://kahoot.it/reserve/session/". If it returns 404, it's invalid, if it returns 200 and JSON body, it'll work.

,[object Object], ,[object Object]
2 years ago
1
KENNETHTRIPP
KENNETHTRIPP

@19wintersp
Oh, I think that'll work. I didn't realize that it used GET. I tried looking at the URL, but it revealed nothing. Thanks!

2 years ago
1
KENNETHTRIPP
KENNETHTRIPP

@19wintersp
Yeah! That works like a charm. That was way easier than I expected. I guess I'll have to learn the requests library to understand it though. Thanks again!

2 years ago