# Random Lovecraft API

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

Random Lovecraft is a text analysis API from randomlovecraft.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 4 endpoints.

## At a glance

- Category: [Text Analysis](https://www.openparable.com/apis/category/text-analysis)
- Provider: randomlovecraft.com
- Authentication: None (no API key)
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://randomlovecraft.com/api
- Documentation: https://randomlovecraft.com/
- OpenAPI description: https://api.apis.guru/v2/specs/randomlovecraft.com/1.0/openapi.json
- Version: 1.0
- Specification updated: 2021-06-21

## Example request

```bash
curl -X GET "https://randomlovecraft.com/api/books" \
  -H "Accept: application/json"
```

## Endpoints

- `GET /books` — List all books
- `GET /books/{id}/sentences` — Random sentences from a specific book
- `GET /sentences` — A random sentence
- `GET /sentences/{id}` — A specific sentence

## Questions

### Does the Random Lovecraft API need an API key?

No. The Random Lovecraft API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

### Does the Random Lovecraft API support HTTPS?

Yes, the Random Lovecraft API is served over HTTPS.

### How many endpoints does the Random Lovecraft API have?

Its OpenAPI description lists 4 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the Random Lovecraft API?

Other Text Analysis APIs include Google Cloud Natural, LanguageTool, Tisane, LibreTranslate, Asynchronous Speech-To-Text API Documentation.

## Similar text analysis APIs

- [Google Cloud Natural](https://www.openparable.com/apis/google-cloud-natural): Natural language understanding technology, including sentiment, entity and syntax analysis
- [LanguageTool](https://www.openparable.com/apis/languagetool): Style and Grammar Checker for 25+ Languages
- [Tisane](https://www.openparable.com/apis/tisane): Text Analytics with focus on detection of abusive content and law enforcement applications
- [LibreTranslate](https://www.openparable.com/apis/libretranslate): Translation tool with 17 available languages
- [Asynchronous Speech-To-Text API Documentation](https://www.openparable.com/apis/asynchronous-speech-to-text-documentation): Rev.ai provides quality speech-text recognition via a RESTful API. All public methods and objects are documented here for developer reference. For a real-time speech to text solution, use Rev.ai's [Streaming API](/docs/streaming). # Base Endpoint The base url for this version of the API is > `https://api.rev.ai/speechtotext/v1` All endpoints described in this documentation are relative to this base url. # Quick Start Follow the [getting started checklist](https://www.rev.ai/getting_started) ## Get your Access Token You can generate your [access token](#section/Authentication/Access-Token) on the [settings page](https://www.rev.ai/access_token) of your account. This access token only needs to be generated once and never expires. You can re-generate your token, however this will invalidate the previous token. ## Submit a File To submit an audio file for transcription to Rev.ai: ``` curl -X POST "https://api.rev.ai/speechtotext/v1/jobs" -H "Authorization: Bearer $REV_ACCESS_TOKEN" -H "Content-Type: application/json" -d "{\"media_url\":\"https://www.rev.ai/FTC_Sample_1.mp3\",\"metadata\":\"This is a sample submit jobs option\"}" ``` You’ll receive a response like this: ~~~ { "id": "Umx5c6F7pH7r", "created_on": "2018-09-15T05:14:38.13", "name": "sample.mp3", "metadata": "This is a sample submit jobs option for multipart", "status": "in_progress" } ~~~ The `id` (in this case `Umx5c6F7pH7r`) will allow you to retrieve your transcript. ## Get Your Transcript Once a transcription job's `status` becomes `transcribed`, you can retrieve the transcript in JSON format by running: ``` curl -X GET "https://api.rev.ai/speechtotext/v1/jobs/{id}/transcript" -H "Authorization: Bearer $REV_ACCESS_TOKEN" -H "Accept: application/vnd.rev.transcript.v1.0+json" ``` Alternatively you can get the plain text version by running: ``` curl -X GET "https://api.rev.ai/speechtotext/v1/jobs/{id}/transcript" -H "Authorization: Bearer $REV_ACCESS_TOKEN" -H "Accept: text/plain" ``` You can poll for the `status` of your job by querying for the job periodically: ``` curl -X GET https://api.rev.ai/speechtotext/v1/jobs/{id} -H "Authorization: Bearer $REV_ACCESS_TOKEN" ``` **Note:** Polling is NOT recommended in a production server. Rather, use [webhooks](#section/Webhooks) to asynchronously receive notifications once the transcription job completes If you have any further questions, contact us at <support@rev.ai> # Submitting Files Two `POST` request formats can be used to submit a file: `application/json` or `multipart/form-data`. ## JSON This is the preferred method of file submission. Uses the `media_url` property to provide a direct download URL to the Rev.ai server. This method supports the use of pre-signed URLs. Links to videos hosted on platforms like Youtube are not valid because they are not direct download links. **Important note on presigned URLs:** Signed URLs usually have an expiration time which is configurable. To ensure the Rev.ai server can access the link, make sure the expiration time is set to 2 hours or more. In the event you plan on resending the same file, make sure to generate a new presigned URL. ## FormData Used to send a local file to the Rev.ai server. This allows the customer to send the file directly from the host machine. Certain limits apply to this format, see the [Async API Limits section](#section/Async-API-Limits) for more detals. # Turnaround Time and Chunking Often, especially for shorter files, your transcript will be ready in 5 minutes or less. It generally takes no longer than 15 minutes to return longer audios. If you require faster turn around time please contact <support@rev.ai> Chunking is the act of breaking audio files into smaller segments. Rev.ai uses this method to decrease turnaround time of audios greater than 3 minutes in length. # Webhooks If the optional `callback_url` is provided, the API will make an HTTP POST request to the `callback_url` with the following request body when the job either completes successfull
- [Detect Language](https://www.openparable.com/apis/detect-language): Detects text language
- [ELI](https://www.openparable.com/apis/eli): Natural Language Processing Tools for Thai Language
- [Handwrytten API](https://www.openparable.com/apis/handwrytten): This is the Handwrytten API for sending cards written in the handwriting of your choice. Using this api, you can send cards to users. You can also customize cards with logos, which can be saved and then used like any other card in the system. For a "sandbox" account, please contact contact@handwrytten.com To move from credit card per-transaction to monthly invoicing, also contact us. [https://www.handwrytten.com](https://www.handwrytten.com)
- [MotaWord API](https://www.openparable.com/apis/motaword): Use MotaWord API to post and track your translation projects.
- [Word Associations API](https://www.openparable.com/apis/word-associations): The Word Associations Network API allows developers to embed the ability to find associations for a word or phrase into their mobile apps or web services. Words are grouped by semantics, meaning, and psychological perception. The Word Associations Network API currently supports English, French, Spanish, German, Italian, Portuguese, and Russian vocabulary. Please [register and subscribe](https://api.wordassociations.net/subscriptions/) to one of available tariff plans to get a valid API key.
- [apilayer languagelayer](https://www.openparable.com/apis/apilayer-languagelayer): Language Detection JSON API supporting 173 languages
- [eidosSpeech](https://www.openparable.com/apis/eidosspeech): Free text-to-speech API with 1,200+ neural voices in 75+ languages

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/random-lovecraft (OpenParable). Cite the canonical URL above.
