GET
/search/keywordGET
/convertpdf/htmlGET
/getQuestion/GET
/getRelatedConcepts/GET
/getRelatedConcepts/ocrGET
/getText/ocr
Retrieves Text from Wikipedia for the given keyword
-
URL
/search/keyword
-
Method:
GET
-
URL Params
Required:
query=[string]
-
Success Response:
- Code: 200
Content:{"api":"search api","message":"successful","text":"<div style=\"text-align: justify !important;\"><p>A <strong>man</strong> is a male human. The term <em>man</em> is usually reserved for an adult male, with the term boy being the usual term for a male child or adolescent. However, the term <em>man</em> is also sometimes used to identify a male human, regardless of age, as in phrases such as \"men's basketball\".</p>\n<p>Like most other male mammals, a man's genome typically inherits an X chromosome from his mother and a Y chromosome from his father. The male fetus produces larger amounts of androgens and smaller amounts of estrogens than a female fetus. /....."}s
- Code: 200
Retrieves Text from Wikipedia for the given keyword
-
URL
/convertpdf/html
-
Method:
POST
-
DATA Params
Required:
name=[string]
-- File Extensionfile=[base64]
-
Success Response:
- Code: 200
Content:{"api":"Convert PDF to HTML","message":"successful","text":"<?xml version='1.0' encoding='UTF-8' standalone='yes'?><html>\n<head>\n <meta content=\"text\/html; charset=UTF-8\" http-equiv=\"Content-Type\"\/><meta content=\"iit delhi\" name=\"author\"\/><meta content=\"2017-04-26\" name=\"publicationdate\"\/><title>no title<\/title><\/head>\n<body><p> <b>INDIAN INSTITUTE OF TECHNOLOGY DELHI <\/b><\/p><p>ACADEMIC & EXAMINATION SECTION (PGS&R) <b> <\/b><\/p><p>IITD\/A&E(PGS)\/C\/2017\/40414 Dated: 26.04.2017 <\/p><p><b>Fee Circular for PG students (1<\/b><b>st <\/b><b>Semester 2017-2018) <\/b><\/p><p>All Postgraduate students are requested to make payment of fees for 1st <b>Semester 2017-2018"}
- Code: 200
Retrieves Questions from Text Provided
-
URL
/getQuestion/
-
Method:
GET
-
URL Params
Required:
text=[string]
-
Success Response:
- Code: 200
Content:{"api":"get Question","message":"successful","text":[{"answer":"speculation","question":"After all the __________ about whether we would have the fight, the last few weeks have seen much name-calling and animosity on both sides, as the rivalry intensifies ahead of the big day.","similar_words":["adverse opinion","guess","side"],"title":"mytopic"}]}
- Code: 200
Retrieves Concepts from Text Provided
-
URL
/getRelatedConcepts/
-
Method:
GET
-
URL Params
Required:
text=[string]
-
Success Response:
- Code: 200
Content:{"api":"get Related Concepts","message":"successful","text":{"usage":{"text_units":1,"text_characters":717,"features":2},"language":"en","keywords":[{"text":"Mayweather vs Conor","relevance":0.93821},{"text":"great boxer Mayweather","relevance":0.867059},{"text":"professional boxing fight","relevance":0.809104},{"text":"cross-code money-spinning abomination","relevance":0.777159},...],"concepts":[{"text":"Boxing","relevance":0.980902,"dbpedia_resource":"http://dbpedia.org/resource/Boxing"},{"text":"Ricky Hatton","relevance":0.900841,"dbpedia_resource":"http://dbpedia.org/resource/Ricky_Hatton"},...]}}
- Code: 200
Retrieves Concepts from Text in Image Provided
-
URL
/getRelatedConcepts/ocr
-
Method:
POST
-
DATA Params
Required:
name=[string]
-- File Extensionfile=[base64]
-
Success Response:
- Code: 200
Content:{"api":"get Related Concepts from image","message":"successful","text":{"usage":{"text_units":1,"text_characters":882,"features":2},"language":"en","keywords":[{"text":"Xlv favorite maitre","relevance":0.947183},{"text":"fortu- COnfirmed reservation","relevance":0.82052},{"text":"overbooked hotels","relevance":0.697043},{"text":"overbooked restaurant","relevance":0.687725}....],"concepts":[{"text":"Steffi Graf","relevance":0.932431,"dbpedia_resource":"http:\/\/dbpedia.org\/resource\/Steffi_Graf"},{"text":"Goldie Hawn","relevance":0.915043,"dbpedia_resource":"http:\/\/dbpedia.org\/resource\/Goldie_Hawn"},....]}}
- Code: 200
Retrieves Text in Image Provided
-
URL
/getText/ocr
-
Method:
POST
-
DATA Params
Required:
name=[string]
-- File Extensionfile=[base64]
-
Success Response:
- Code: 200
Content:{"api":"get Text from image","message":"successful","text":"I am the sample text on the image"}
- Code: 200