API for THIRUKKURAL
[ -- MY FIRST API -- ]
-- AGILAN --
-- agilan-pro.web.app --

NOTE
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:
https://api-thirukkural.vercel.app/api?num=x
   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...

-- Special Credits --
(Database Forked from)
Arjunkumar tk120404


வாழ்க தமிழ் !
(Long live, Tamil !)
வெல்க தமிழர் !!
(Achieve, Tamilians !!)
URL STRUCTURE
https://api-thirukkural.vercel.app/api?num={kural_num}
{kural_num}The required kural poem number
HTTP REQUEST METHOD
GET
RETURNS
A JSON object with following properties :

number int
The kural poem number that is returned

sect_tam string
The section (in Tamil) to which the poem belongs

chapgrp_tam string
The Chapter Group (in Tamil) to which the poem belongs

chap_tam string
The Chapter (in Tamil) to which the poem belongs

line1 string
The First Line (in Tamil) of the poem

line2 string
The Second Line (in Tamil) of the poem

tam_exp string
The explanation (in Tamil) of the poem

sect_eng string
The section (in English) to which the poem belongs

chapgrp_eng string
The Chapter Group (in English) to which the poem belongs

chap_eng string
The Chapter (in English) to which the poem belongs

eng string
The poem traslated to English

eng_exp string
The explanation (in English) of the poem
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" }