> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/code-samples/quizzes.md).

# Quizzes

- [Overview](https://docs.autocontentapi.com/code-samples/quizzes/quiz-examples.md): Snippets in C#, Node.js, Java, PHP and Python that call /content/Create with outputType quiz and control the quiz difficulty and language.
- [C#](https://docs.autocontentapi.com/code-samples/quizzes/csharp.md): .NET samples in C# for the quiz recipes, creating quizzes from text, a website or a topic and setting difficulty, language and brand settings.
- [Create a Quiz from Text](https://docs.autocontentapi.com/code-samples/quizzes/csharp/from-text.md): C# HttpClient sample that creates a multiple-choice quiz from a text resource with outputType quiz and quizDifficulty set to medium.
- [Create a Quiz from a Website](https://docs.autocontentapi.com/code-samples/quizzes/csharp/from-website.md): C# sample that turns a web page into an easy quiz by sending a website resource with quizDifficulty easy to POST /content/Create.
- [Set Difficulty and Language](https://docs.autocontentapi.com/code-samples/quizzes/csharp/set-difficulty-and-language.md): C# HttpClient sample that sets quizDifficulty hard and language español on a topic quiz about cybersecurity basics for remote teams.
- [Create a Quiz from a Topic Prompt](https://docs.autocontentapi.com/code-samples/quizzes/csharp/from-topic.md): C# sample that builds a quiz from a topic prompt about renewable energy storage, sending topic, text and quizDifficulty with HttpClient.
- [Apply Brand Settings with projectId](https://docs.autocontentapi.com/code-samples/quizzes/csharp/brand-with-project-id.md): C# HttpClient sample that applies saved brand settings to a quiz by sending project IDs in the projects array with outputType quiz.
- [Node.js](https://docs.autocontentapi.com/code-samples/quizzes/nodejs.md): Node.js snippets that mirror the quiz scenario recipes, from text and website quizzes to difficulty, language and projectId brand settings.
- [Create a Quiz from Text](https://docs.autocontentapi.com/code-samples/quizzes/nodejs/from-text.md): Node.js fetch example that turns key takeaways from a pricing study into a quiz, sending a text resource and explicit question instructions.
- [Create a Quiz from a Website](https://docs.autocontentapi.com/code-samples/quizzes/nodejs/from-website.md): Node.js fetch example that creates knowledge-check questions from a market report URL, focusing the quiz on the headline stats.
- [Set Difficulty and Language](https://docs.autocontentapi.com/code-samples/quizzes/nodejs/set-difficulty-and-language.md): Node.js fetch example that overrides quiz difficulty and language, asking for a hard Spanish quiz with recall and applied scenario questions.
- [Create a Quiz from a Topic Prompt](https://docs.autocontentapi.com/code-samples/quizzes/nodejs/from-topic.md): Node.js fetch example that requests a quiz from a topic alone, aimed at college-level students, with quizDifficulty set to medium.
- [Apply Brand Settings with projectId](https://docs.autocontentapi.com/code-samples/quizzes/nodejs/brand-with-project-id.md): Node.js fetch example that adds the projects field to a quiz request about a customer success onboarding playbook.
- [Java](https://docs.autocontentapi.com/code-samples/quizzes/java.md): Java samples for the quiz scenario recipes that create quizzes from text, websites and topic prompts and apply difficulty, language and branding.
- [Create a Quiz from Text](https://docs.autocontentapi.com/code-samples/quizzes/java/from-text.md): Java program that posts a text resource and quiz instructions through java.net.http to generate a quiz at medium difficulty.
- [Create a Quiz from a Website](https://docs.autocontentapi.com/code-samples/quizzes/java/from-website.md): Java program that posts a website resource with outputType quiz through java.net.http, asking for headline stats and scenario questions.
- [Set Difficulty and Language](https://docs.autocontentapi.com/code-samples/quizzes/java/set-difficulty-and-language.md): Java program that posts a hard, Spanish-language cybersecurity quiz request with the quizDifficulty and language fields through java.net.http.
- [Create a Quiz from a Topic Prompt](https://docs.autocontentapi.com/code-samples/quizzes/java/from-topic.md): Java program that creates a topic-based quiz with java.net.http, posting a renewable energy topic and audience guidance in text.
- [Apply Brand Settings with projectId](https://docs.autocontentapi.com/code-samples/quizzes/java/brand-with-project-id.md): Java program that posts a projects array through java.net.http so a topic-based quiz uses your stored brand settings.
- [PHP](https://docs.autocontentapi.com/code-samples/quizzes/php.md): PHP cURL snippets for the quiz scenario recipes, with links for text, website and topic quizzes, difficulty and language, and brand settings.
- [Create a Quiz from Text](https://docs.autocontentapi.com/code-samples/quizzes/php/from-text.md): PHP cURL script that requests a quiz from pasted text, setting quizDifficulty and asking for multiple-choice questions with answer options.
- [Create a Quiz from a Website](https://docs.autocontentapi.com/code-samples/quizzes/php/from-website.md): PHP cURL script that requests an easy quiz from a public web page and adds a short brief that points the questions at the key stats.
- [Set Difficulty and Language](https://docs.autocontentapi.com/code-samples/quizzes/php/set-difficulty-and-language.md): PHP cURL script that adjusts quiz difficulty to hard and language to español in a topic prompt request, then prints the API response.
- [Create a Quiz from a Topic Prompt](https://docs.autocontentapi.com/code-samples/quizzes/php/from-topic.md): PHP cURL script that generates quiz questions from a topic prompt, using text to set the audience and quizDifficulty to set the level.
- [Apply Brand Settings with projectId](https://docs.autocontentapi.com/code-samples/quizzes/php/brand-with-project-id.md): PHP cURL script that includes your project ID in projects to apply brand settings to a quiz that focuses on product milestones.
- [Python](https://docs.autocontentapi.com/code-samples/quizzes/python.md): Python requests snippets that mirror the quiz recipes for text, website and topic sources, difficulty and language, and projectId brand settings.
- [Create a Quiz from Text](https://docs.autocontentapi.com/code-samples/quizzes/python/from-text.md): Python requests snippet that sends a text resource with outputType quiz to /content/Create to build a multiple-choice quiz on SaaS pricing.
- [Create a Quiz from a Website](https://docs.autocontentapi.com/code-samples/quizzes/python/from-website.md): Python requests snippet that sends a market report URL as a website resource with quizDifficulty easy to generate a quiz.
- [Set Difficulty and Language](https://docs.autocontentapi.com/code-samples/quizzes/python/set-difficulty-and-language.md): Python requests snippet that posts a topic quiz with quizDifficulty hard and language español, mixing recall and applied scenario questions.
- [Create a Quiz from a Topic Prompt](https://docs.autocontentapi.com/code-samples/quizzes/python/from-topic.md): Python requests snippet that posts topic, text and quizDifficulty with outputType quiz to /content/Create for a topic-based quiz.
- [Apply Brand Settings with projectId](https://docs.autocontentapi.com/code-samples/quizzes/python/brand-with-project-id.md): Python requests snippet that sends projects with a topic and quizDifficulty medium to create a quiz with your brand settings.
