- Published on
I turned Tagore's Nobel Prize-winning Gitanjali into a freely accessible API
- Authors
- Name
- Srinjoy Santra
- @s_srinjoy
During one of those days of endless scrolling and consumption, I stumbled upon this YouTube video where someone built an API for the Bhagavad Gita. That single video planted a seed — what if I did something similar for Gitanjali by Rabindranath Tagore?
Who was Rabindranath Tagore?
Rabindranath Tagore (1861–1941) was a Bengali poet, philosopher, musician, and polymath who fundamentally shaped modern Indian literature and thought. He was the first non-European to win the Nobel Prize in Literature, awarded in 1913 for Gitanjali — a collection of deeply spiritual poems that blended devotion, nature, and longing into something universally human. Beyond poetry, he founded Visva-Bharati University, composed the national anthems of both India and Bangladesh, and left behind a body of work so vast it still hasn't been fully catalogued.
Why is Gitanjali famous?
Gitanjali, meaning Song Offerings, is Tagore's most celebrated work — a collection of prose poems addressed to the divine, written with an intimacy that felt radical for its time. The Nobel committee described it as expressing profoundly sensitive, fresh, and beautiful verse. What made it resonate globally was Tagore's own English translation, which stripped the poems of religious formality and presented them as something closer to a quiet conversation between a soul and its creator. It remains one of the rare works that crosses language, culture, and belief without losing its essence.
Why build an API for it?
Since all of Tagore's works are in the public domain, there are no copyright restrictions on reusing this material — making it a perfect candidate.
For the Bengali text, I sourced the poems from Wikisource.
1913 edition - গীতাঞ্জলি (১৯১৩), ইণ্ডিয়ান প্রেস লিমিটেড, ইণ্ডিয়ান পাবলিশিং হাউস হতে প্রকাশিত
1923 edition - গীতাঞ্জলি (১৯২৩)
1954 edition - গীতাঞ্জলি (১৯৫৪), বিশ্বভারতী গ্রন্থন বিভাগ হতে প্রকাশিত
1956 edition - গীতাঞ্জলি (১৯৫৬), বিশ্বভারতী গ্রন্থন বিভাগ হতে প্রকাশিত
For the English translation, I referred to Project Gutenberg, which hosts Tagore's own English rendering of Gitanjali in its entirety. The same exists in wikisource too.
But digging into both sources revealed some interesting discrepancies worth preserving properly.
- The English translation that won the Nobel Prize does not include all the poems from the original Bengali edition.
- Renumbering the sequence a. বাঁচান বাঁচি মারেন মরি was removed in later editions from 118 page b. Newer editions have a rediscovered poem on page 142 Reconciling these variations wasn't trivial — Milan Sagar's indices of both the Bengali and English editions were invaluable in mapping out the differences clearly.
The API endpoints I designed account for all these variations, letting you query poems by their Bengali number, English number, or both.
Some of the poems are also songs — Tagore set many of them to music, and those are noted accordingly.
Why does this matter to someone who isn't a developer?
An API might sound like something only programmers care about, but think of it as a well-organized library with a very fast librarian. Instead of manually searching through a book, anyone can build a tool on top of this API — a daily poem widget, a quote generator, a reading app, a learning tool — that surfaces Tagore's words in whatever context feels meaningful. The API does the heavy lifting so that the poetry itself can travel further and reach more people, in more places, than a static webpage ever could.
Endpoints
URL : https://tagore-gitanjali-api.srinjoy-s-1ef.workers.dev
Bengali
GET /bn/poems— all poems, sorted alphabeticallyGET /bn/poems/v1— 1913/1923 edition orderGET /bn/poems/v2— 1954/1956 edition orderGET /bn/poems/v1/:id— single poem by v1 serialGET /bn/poems/v2/:id— single poem by v2 serialGET /bn/search?q=— search by Bengali first line
Year aliases (redirect to v1 or v2)
/bn/poems/y1913,/bn/poems/y1923,/bn/poems/স১৯১৩,/bn/poems/স১৯২৩→ v1/bn/poems/y1954,/bn/poems/y1956,/bn/poems/স১৯৫৪,/bn/poems/স১৯৫৬→ v2
Pagination
All list endpoints support ?page=1&limit=20 (max 100).
English
GET /en/poems— poems with English translationsGET /en/poems/:id— single poem by English serial (e.g.15)GET /en/search?q=— search by English title
Tech Stack
Clouflare workers with HonoJS
Tagore wrote Gitanjali over a century ago, yet its themes of longing, devotion, and surrender feel as immediate today as ever. This project is a small attempt to make sure those words don't stay locked inside a PDF or a dusty archive — but travel freely, get built into things, and find new readers in new contexts. If you end up using this API for something, however big or small, I'd love to hear about it.
(Parts of the post has been rewritten by LLM / AI)