Skip to content

Poetry Foundation API: Get poem by title

Finds a poem on Poetry Foundation by title (optionally by poet) and returns its full public text, poet, printed source, publication year and subject tags.

poetryfoundation.org (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Poetry Foundation.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Poet optionalpoet

The poet’s name to distinguish poems with the same title, for example Robert Frost.

Rudyard Kipling

Title, requiredtitle

The title of the poem, for example The Road Not Taken.

If—

Output

From a run on Oct 31, 2026, shortened for this page.
{  "poet": "Rudyard Kipling",  "tags": [    "Farewells & Good Luck",    "Graduation",    "Stanza Forms > Rhymed Stanza"  ],  "text": "If you can keep your head when all about you\n    Are losing theirs and blaming it on you,\nIf you can trust yourself when all men doubt you,\n    But make allowance for their doubting too;\nIf you can wait and not be tired by waiting,\n    Or being lied about, don’t deal in lies,\nOr being hated, don’t g…",  "title": "If—",  "source": "A Choice of Kipling's Verse (1943)",  "themes": [    "Living > Coming of Age"  ],  "poem_link": "https://www.poetryfoundation.org/poems/46473/if---",  "poet_page_link": "https://www.poetryfoundation.org/poets/rudyard-kipling",  "publication_year": 1943}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
poetryfoundation.org/get_poem
Returns
title, poet, full text, source, publication year, themes, tags, poet page link, poem link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method poetryfoundation.org/get_poem with the inputs above.

Ask your agent

  • Pull up the full text of "Ozymandias" by Percy Bysshe Shelley along with where it was first printed and the year.
  • I need the complete poem "We Real Cool" by Gwendolyn Brooks from Poetry Foundation, plus its subject tags and a link to the poem page.
  • What themes and tags are attached to Elizabeth Bishop's "One Art"? Also give me the text and the original source it appeared in.
  • Find "Wild Geese" by Mary Oliver on poetryfoundation.org and give me the poem text, publication year, and a link to her poet page.
  • Can you get me the words to "Do not go gentle into that good night"? I think it's Dylan Thomas, and I'd like to know when it was published.
  • Finds poems matching a topic or occasion, or poems by a named poet, in Poetry Foundation search order. Older magazine poems without public text have no first two lines; untagged poems have no themes or occasions.

    poetryfoundation.org/search_poems
  • Gets the plain text of a public-domain Project Gutenberg book by title, optionally matching its author and language. Chooses the most downloaded matching edition with a plain-text file, removes the Gutenberg header and license, and can cut the text after a chosen number of words.

    gutenberg.org/get_book_text
  • Gets a book's catalog details from Open Library by its title, with an optional author or ISBN to identify the right book. Reading availability reflects listed editions; details may be missing when the catalog has none.

    openlibrary.org/get_book
  • Finds free public-domain Project Gutenberg books by title, author or topic, with authors, languages, subjects, recent downloads, and reading and download links. Public-domain status is based on the United States.

    gutenberg.org/search_free_books
  • Looks up a Google Books book by title or ISBN. Returns its details, reader ratings and the Google Play ebook offer in a chosen country.

    books.google.com/get_book
  • Looks up an audiobook in an Audible store by title (optionally narrowed by author) or by Audible book link, and returns its details, narrators, length, rating, visitor price, series, publisher summary and whether that store's Plus Catalog includes it.

    audible.com/get_audiobook
  • Gets the full PubMed abstract and publication details for one article by title, PubMed link, or PubMed number (PMID). A title is searched in PubMed titles first and must closely match a found article. Some articles have no abstract or free full text.

    pubmed.ncbi.nlm.nih.gov/get_article
  • Finds a Discogs release by title, artist or release link and returns its edition details, tracks, community counts, current price and sold price statistics.

    discogs.com/get_release