Get started

Shakespeare, as JSON.

A free, read-only API for Shakespeare's plays and poems. Retrieve lines, speeches, speakers, and word frequencies - normalized for reading and analysis.

Example

JavaScript

Request builder

Build a request

Choose an endpoint, copy the URL or cURL, and retrieve JSON.

Request
curl -sS "https://cdn.dramatis.app/v1/plays/a_midsummer_nights_dream/scenes/a01-s01.lines.json"
Response
Click "Fetch JSON" to preview the response.

Docs

API reference

All endpoints for discovery, reading, and analysis.

Discovery

ManifestGET
/v1/index.json

API version, corpus counts, and top-level entry points.

Plays indexGET
/v1/plays.json

Lists all plays with links to speakers and word frequencies.

Plays

Poetry

Fair use: Rate-limited to prevent abuse. Excessive requests return HTTP 429 - wait briefly and retry.

Identifiers

  • playSlugPlay ID from the plays index, e.g. a_midsummer_nights_dream.
  • sceneKeyScene key from a play TOC, e.g. a01-s01 or 01-dramatis-personae.
  • speakerIdCharacter ID from the speakers endpoint, e.g. theseus.
  • poemSlugPoem ID from the poems index, e.g. sonnet_018 or elegy.

Use derived endpoints (.lines.json, .speeches.json, .words.json) for most use cases. The base .json endpoint includes full tokenized data.

Source text: MIT Shakespeare (public-domain HTML), derived from the Complete Moby Shakespeare. Disclaimer · Terms · Privacy