# Random Lovecraft API

> Random Lovecraft API on Apizie: 4 endpoints (List all books, Random sentences from a specific book, A random sentence, A specific sentence) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/ai:randomlovecraft/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `ai:randomlovecraft`
- Category: Artificial Intelligence
- Status: live
- Source: https://randomlovecraft.com
- Page: https://zieapi.vercel.app/api/ai/randomlovecraft
- OpenAPI: https://zieapi.vercel.app/api/ai/randomlovecraft/openapi.json

Random sentences from the complete works of H.P. Lovecraft. CORS-enabled.

## Endpoints

### List all books
`GET https://zieapi.vercel.app/v1/ai:randomlovecraft/get-books`

### Random sentences from a specific book
`GET https://zieapi.vercel.app/v1/ai:randomlovecraft/get-sentences-from-book`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Book ID |
| limit | integer | no |  |

### A random sentence
`GET https://zieapi.vercel.app/v1/ai:randomlovecraft/get-sentences`

| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | no |  |

### A specific sentence
`GET https://zieapi.vercel.app/v1/ai:randomlovecraft/get-specific-sentence`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Sentence ID |

## Example
```
curl "https://zieapi.vercel.app/v1/ai:randomlovecraft/get-books" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Random Lovecraft API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/ai:randomlovecraft/get-books with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Random Lovecraft API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Random Lovecraft API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key ai:randomlovecraft.

### What is the status of the Random Lovecraft API?
Live: works with just an Apizie key
