Due to changes in the Firebase
Policies,
the api URL
https://api-thirukkural.web.app/api?num=x
is to be
retired from 15 March, 2021.
Developers using the deprecated URL are therefore requested to migrate and update to the new URL from Vercel
Functions:
Thirukkural is considered to be the world's greatest work on
ethics
and morality gifted by the Tamilians.
Written by the poetic saint Thiruvalluvar, it is the collection of
1330 two-lined poems, each of which shows the path to integrity, non-violence and
knowledge.
I have designed an API with Cloud Functions that returns the poem,
explanation and english translation for a given Kural Number.
Developers (I meant 'YOU') are called for using this
API...
A JSON object with following properties
: numberint
The kural poem number that is returned sect_tamstring
The section (in Tamil) to which the poem belongs chapgrp_tamstring
The Chapter Group (in Tamil) to which the poem belongs chap_tamstring
The Chapter (in Tamil) to which the poem belongs line1string
The First Line (in Tamil) of the poem line2string
The Second Line (in Tamil) of the poem tam_expstring
The explanation (in Tamil) of the poem sect_engstring
The section (in English) to which the poem belongs chapgrp_engstring
The Chapter Group (in English) to which the poem belongs chap_engstring
The Chapter (in English) to which the poem belongs engstring
The poem traslated to English eng_expstring
The explanation (in English) of the poem
[Try changing the kural number in the URL...]
https://api-thirukkural.vercel.app/api?num=
{
"number": 1,
"sect_tam": "அறத்துப்பால்",
"chapgrp_tam": "பாயிரவியல்",
"chap_tam": "கடவுள் வாழ்த்து",
"line1": "அகர முதல எழுத்தெல்லாம் ஆதி",
"line2": "பகவன் முதற்றே உலகு.",
"tam_exp": "அகரம் எழுத்துக்களுக்கு முதன்மை; ஆதிபகவன், உலகில் வாழும் உயிர்களுக்கு முதன்மை",
"sect_eng": "Virtue",
"chapgrp_eng": "Prologue",
"chap_eng": "The Praise of God",
"eng": "'A' leads letters; the Ancient Lord Leads and lords the entire world",
"eng_exp": "As the letter A is the first of all letters, so the eternal God is first in the world"
}