Cannot generate API URL

When I go to Open Trivia DB: Free to use, user-contributed trivia question database. and enter the data I want, I do not get a URL. The page just refreshes and removes all my entered data when I click the button.

I’ve manually made a URL “https://opentdb.com/api.php?amount=10” which has worked, but I want the questions to be True/False.

However “https://opentdb.com/api.php?amount=10?type=boolean” just gives response code 2.

Has the argument for the type changed? If so, what’s the new one?

1 Like

I’m able to generate API URLS fine, might be a browser addon that could be preventing you from using the tool.

The URL for boolean questions is “https://opentdb.com/api.php?amount=10&type=boolean”. You had it close but the & is needed to add the boolean query parameter.

3 Likes

Thanks a lot! I have no idea how I made a mistake like that. But this fixed it

2 Likes

Does [https://opentdb.com] is (officially) down …? :face_with_monocle:

Currently looking into this, don’t have a time frame.

You can monitor the uptime here .