HTTP METHOD POST & GET
RESPONSE FORMAT JSON
API URL https://api.ekawijanarka.info/ocr/
CLASS EXAMPLES API EXAMPLES

1. Display Teks From Image

Parameter Description
url URL Link Image Teks. #example : https://i.stack.imgur.com/sFPWe.png

Example Response

Successful response Failed Response
{
    "code":200,
    "ocr_result":"This is a lot of 12 point text to test the ocr code and see if it works on all type sof file format.The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quickbrown dog jumped over the lazy fox."
}
{
    "code":400,
    "message":"Invalid request method."
}
{
    "code":404,
    "message":"Failed"
}
{
    "code":500,
    "message":"OCR result is empty"
}
Reason:
  • Invalid request method.
  • Bad Request.
  • Url not valid or empty!