# Cannot generate API URL

**URL:** <https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890>\
**Category:** Open Trivia DB\
**Created:** [February 17, 2024, 10:16pm UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890 "2024-02-17T22:16:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarPython](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/omarpython/32/71547_2.png) [@OmarPython](https://forums.pixeltailgames.com/u/OmarPython)\
**Post date:** [February 17, 2024, 10:16pm UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890/1 "2024-02-17T22:16:07Z")

</div>

When I go to [Open Trivia DB: Free to use, user-contributed trivia question database.](https://opentdb.com/api_config.php) 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](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](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?

---

<div class="post-metadata">

**Author:** ![macdguy](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/macdguy/32/3448_2.png) [@macdguy](https://forums.pixeltailgames.com/u/macdguy)\
**Post date:** [February 17, 2024, 10:18pm UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890/2 "2024-02-17T22:18:19Z")

</div>

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](https://opentdb.com/api.php?amount=10&type=boolean)”. You had it close but the & is needed to add the boolean query parameter.

---

<div class="post-metadata">

**Author:** ![OmarPython](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/omarpython/32/71547_2.png) [@OmarPython](https://forums.pixeltailgames.com/u/OmarPython)\
**Post date:** [February 18, 2024, 5:49am UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890/3 "2024-02-18T05:49:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Louis\_Sparkle](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/louis_sparkle/32/72802_2.png) [@Louis\_Sparkle](https://forums.pixeltailgames.com/u/Louis_Sparkle)\
**Post date:** [April 18, 2024, 3:29pm UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890/4 "2024-04-18T15:29:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sabrina](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/sabrina/32/83818_2.png) [@Sabrina](https://forums.pixeltailgames.com/u/Sabrina)\
**Post date:** [April 18, 2024, 3:31pm UTC](https://forums.pixeltailgames.com/t/cannot-generate-api-url/49890/5 "2024-04-18T15:31:09Z")

</div>

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

You can monitor the uptime [here](https://stats.uptimerobot.com/r99niw4gk/50247).
