FunGenerators.com

Fun Generators API: Trivia

Below is the documentation for the API calls. You can try them out right here.

AI & machine learning#openapi#text

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Below is the documentation for the API calls. You can try them out right here.

Endpoints 6

Trivia

  • GETGET /trivia/trivia?id=stringGet a Trivia entry for a given id. Retrieves a trivia question and answer based on the id.
  • PUTPUT /trivia/trivia?question=string&category=string&answer=stringCreate a random Trivia entry.
  • DELETEDELETE /trivia/trivia?id=stringCreate a random Trivia entry.
  • GETGET /trivia/categories/trivia/categories?start=0Get a random Trivia.
  • GETGET /trivia/random/trivia/random?category=stringGet a random trivia for a given category(optional)
  • GETGET /trivia/search/trivia/search?query=string&category=stringSearch for random trivia which has the text in the query, for a given category(optional).

API details

Base URL
https://api.fungenerators.com
Authentication
An API key in the X-Fungenerators-Api-Secret header
Operations
6 operations on 4 pathsGET 4PUT 1DELETE 1
Main resources
Trivia 6
Response formats
application/js application/json application/xml
Description format
Swagger 2.0, API version 1.5
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Fun Generators API: Trivia in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Fun Generators API: Trivia collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the X-Fungenerators-Api-Secret header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “GET /trivia” (GET /trivia?id=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Fun Generators API: Trivia?

Below is the documentation for the API calls. You can try them out right here. It is listed under AI & machine learning and has 6 endpoints.

Who publishes the Fun Generators API: Trivia?

It is listed from FunGenerators.com's public API description (an OpenAPI document), not published by FunGenerators.com on Swastik Codes. Anyone who controls fungenerators.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Fun Generators API: Trivia?

Requests go to https://api.fungenerators.com. Endpoint paths are added to this base URL.

How do I authenticate with the Fun Generators API: Trivia?

With an API key in the X-Fungenerators-Api-Secret header.

How many endpoints does the Fun Generators API: Trivia have?

6 operations on 4 paths (4 GET, 1 PUT, 1 DELETE). The largest groups are Trivia.

Is forking the Fun Generators API: Trivia free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.