# Random Quote API

> Random Quote fetches a random quote and its author attribution on every call. Send a GET request without parameters to receive quote text ready for displays, dashboards, or daily messages.

**Endpoint:** `GET https://api.apiverve.com/v1/randomquote`  
**Category:** Entertainment  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/randomquote

## Overview

Make a GET request without query parameters to pull a single entry. The endpoint responds with the quote text and the attributed author or source name. Every call pulls a distinct quotation from the collection to populate widgets, greeting banners, or terminal screens.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/randomquote" \
  -H "x-api-key: YOUR_API_KEY"
```

## Response fields

- `quote` — string · The text content of the random quote
- `author` — string · The author or source of the quote

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "quote": "Your sacred space is where you can find yourself again and again.",
    "author": "Joseph Campbell"
  }
}
```

## Use cases

- **Daily Motivation Widgets** — When a user opens a productivity app, fetch a fresh quote and author to display on their morning dashboard.
- **Newsletter Footer Content** — Add variety to recurring marketing emails by injecting a distinct quotation and creator credit into each outgoing send.
- **Chatbot Greeting Prompts** — Community managers can program chat bots to share an inspiring quote during quiet hours to spur conversation among members.
- **Browser Tab Extensions** — Replace blank browser tabs with a randomly selected quotation and author line whenever someone opens a new window.

## SDKs

- **npm** — `npm install @apiverve/randomquote` (https://www.npmjs.com/package/@apiverve/randomquote)
- **PyPI** — `pip install apiverve-randomquote` (https://pypi.org/project/apiverve-randomquote/)
- **NuGet** — `dotnet add package APIVerve.API.RandomQuote` (https://www.nuget.org/packages/APIVerve.API.RandomQuote)
- **Source** — https://github.com/apiverve/randomquote-api

## More

- Full reference: https://docs.apiverve.com/ref/randomquote
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
