OCR API to Extract data from Documents & Images

Shyam Paliwal
Shyam Paliwal at March 27th 2024

OCR API  makes real-time data extraction from invoices possible not only in key-value pairs but line items as well, have a look at Masters India OCR API. They are built to extract the data from any kind of invoice, there is no dependency on the template.

OCR API will solve the problem of Manual data entry of bills or invoices into the system or ERPS. Businesses, start-ups, and Enterprises who want to reduce manual data entry and automate the whole Invoicing Process can use the OCR to improve the output.

What is OCR API?

Businesses that want to automate their data extraction process they looking for ways to integrate OCR into their current system, Applications, Or ERPs. One of the best ways to do this is through the use of OCR API.   In the market Free OCR API is also available but they have limitations of usage and are not accurate to fulfill business needs. Image OCR API also helps in extracting text from printed or handwritten invoices.

OCR API is a simple way of extracting data from images or multi-page PDF documents such as Invoices. You will get the extracted text response in JSON format. 

These APIs are AI-powered OCR APIs to capture data from Any Document and get data from the invoices within seconds.

How OCR API Will Be Helpful?

  • Invoice OCR API is the way to automate Invoice Processing or accounts payable process
  • Free OCR API will give real-time data extraction within seconds Not in minutes, hours, or days
  • Inbuilt with AI & Ml for better accuracy & to reduce template dependency data extraction
  • OCR-free APIs are beneficial for Any type of industry & can save up to 90% of time consumed in invoice data entry.
  • OCR API can be integrated in ERP and current Systems, No third-party UI requirement for Invoice 
  • Image OCR API Made data extraction possible from PDF and images within the system easy
  • It will get fit in the current Accounts payable process and can be used in the current process to improve productivity.
  • OCR Vision API is friendly and very affordable
  • OCR API is filled with Security and encryption
  • OCR API helps in automating the GRN Process, and 3-way matching reduces invoice entry time.
  • OCR API improves operational efficiency, within the company by reducing data entry errors and optimizing output.

Masters India OCR API

Masters India OCR API is perfect for fast text recognition and data extraction from receipts, and invoices, these APIs are Powered by machine learning.  

The optical character recognition API extracts enriches and categorizes details from unstructured digital or handwritten invoices, Into structured editable data and This OCR API is fast, gives you output in JSON for efficient communication.

  1. Submit files any time via API at your end
  2. Fast processing of doc for extraction
  3. JSON output can be used as per choice in the form
  4. Real-time OCR API will convert Documents into structured data within a few seconds.

OCR API for Real-Time Data Extractions

Masters India offers OCR API offers true real-time data extraction from invoices, these OCR APIs will get integrated into your existing Solution or ERP such as SAP Oracle, Microsoft, and others.

These OCR Vision APIs extract over 50+ different field data (Including line items) and this advanced OCR free API also extracts the data from not only digital invoices but also handwritten ones.

OCR API Documentation

  • Visit below API doc link below to see code examples for making API requests to Masters India OCR: View Documents

How to Use OCR APIs?

Now it's time to get started: Below you will find an example and document links that will help you in set up OCR API over Postman.

The steps will explain the whole process of how you can Test OCR free API over Postman and in your ERP. To Try Our image OCR API at your own Invoice over Postman you require a token - 

  • You require credentials - Generate token by using credential
  • Setup - View OCR API documentation  - Follow the steps mentioned in the documents
  • Generate token
  • Upload file either PDF/Image
  • Get Results

Once checked, go ahead and register on the Masters India website to get the necessary tokens. You will need your username and password to access the token. This is a synchronous API call, which returns all the data extracted in ~10 -15 seconds for a single-page document. Each additional page for PDF documents may take another 3 – 4 seconds per page.

  • Masters India OCR API can capture data from receipts and invoices of formats: jpg, png, and pdf.
  • OCR vision API returns results in JSON format.
  • The result typically contains the field name its value and accuracy as visible in response.

How to TRY OCR API on Postman for Free

Use the free Postman app for Windows, Mac, and Linux to test the Masters India free OCR API. If you have Postman installed you can click the "Run in Postman" button above to add these two OCR vision APIs into Postman.  

Video - The video will help you to complete the setup over Postman

https://drive.google.com/file/d/1okynfsI-8gvERXlA555ffoCYbuaXM9Uz/view?usp=sharing 

OCR vision API - to be used in Postman 

Auth - https://api-platform.mastersindia.co/api/v1/token-auth/
Upload - https://api-platform.mastersindia.co/api/v1/ocr/upload/


Auth API -  https://api-platform.mastersindia.co/api/v1/token-auth/


Method Type  - POST

  • Header

    • Authorization: JWT

    • Subid: 657

    • Productid: arap

  • Body

    • Add credentials in the Body
      {
          "username": "*********@mastersindia.co",
          "password": "***********"
      }

  • Hit Send button 
    JWT token will get Generated - Copy & paste it Into the header section of the Upload API

Authentication

Masters India supports access-token-based authentication. To our user, our OCR API requires an access_token from a user after validating his credentials. This key can be used in subsequent requests but expires after 24 hours which must be requested again by hitting again. The key needs to be passed as a request parameter. 

To generate the Authorization token by clicking on the Send button. Once the Token Is generated paste it in Upload API.

Upload API - https://api-platform.mastersindia.co/api/v1/ocr/upload/

Method Type  - POST

  • Header

    • Authorization: JWT Token value

    • Subid: 657

    • Productid: arap

  • Body

    • File_url: Upload file 

      • Upload file  - The document Type you can upload are - PDF/JPEG/PNG

  • Hit Send button
    Within a few seconds, results will be visible in Postman JSON from

Invoice OCR API Response in JSON Form

Below is a JSON example of the data extracted from an invoice: Success Response for free OCR API will show data of  Both key-value pair as well as Line item data. 

{
    "status": true,
    "message": "Data Extracted Successfully!",
    "data": {

 "invoice_number": {
            "value": "BDT/054",
            "accuracy": 99.98
        },
        "po_number": {
            "value": "PO/018/0220",
            "accuracy": 97.2
        },
        "invoice_date": {
            "value": "2-Mar-2020",
            "accuracy": 99.99
        },
        "invoice_due_date": {
            "value": "17-03-2020",
            "accuracy": 86.89
        },
        "payment_terms": {
            "value": "15",
            "accuracy": 86.89
        },
        "irn": "",
        "ewaybill_number": "",
        "supplier_gstin": {
            "value": "29AAMFB9996N1Z5",
            "accuracy": 99.99
        },
        "supplier_name": {
            "value": "BlueDot Technologies",
            "accuracy": 99.81
        },
        "buyer_gstin": {
            "value": "29AAECA7764Q1ZS",
            "accuracy": 99.97
        },
        "buyer_name": {
            "value": "BIZZWORLD TECHNOLOGIES PRIVATE LIMITED",
            "accuracy": 73.46
        },
        "ship_to_gstin": "",
        "total_taxable": {
            "value": 28900.0,
            "accuracy": 99.91
        },
        "total_igst": {
            "value": 0.0,
            "accuracy": 96.81
        },
        "total_cgst": {
            "value": 2601.0,
            "accuracy": 99.9
        },
        "total_sgst": {
            "value": 2601.0,
            "accuracy": 99.76
        },
        "total_cess": "",
        "total_tax_amount": {
            "value": 5202.0,
            "accuracy": 99.76
        },
        "invoice_amount": {
            "value": 34102.0,
            "accuracy": 99.67
        },
        "other_charges": "",
        "discount": ""
    },
    "table_data": [
        [
            {
                "item_hsn": {
                    "value": "85176990",
                    "accuracy": 92.89
                },
                "item_rate": {
                    "value": 18.0,
                    "accuracy": 82.39
                },
                "item_quantity": {
                    "value": 6.0,
                    "accuracy": 99.61
                },
                "item_unit_price": {
                    "value": 3350.0,
                    "accuracy": 99.9
                },
                "item_description": {
                    "value": "Tplink Outdoor Accesspoint",
                    "accuracy": 99.98
                },
                "item_total_amount": {
                    "value": 20100.0,
                    "accuracy": 99.3
                }
            },
            {
                "item_hsn": {
                    "value": "85176290",
                    "accuracy": 92.88
                },
                "item_rate": {
                    "value": 18.0,
                    "accuracy": 83.18
                },
                "item_quantity": {
                    "value": 8.0,
                    "accuracy": 99.85
                },
                "item_unit_price": {
                    "value": 1100.0,
                    "accuracy": 99.74
                },
                "item_description": {
                    "value": "TP-LINK POE INJECTOR",
                    "accuracy": 99.92
                },
                "item_total_amount": {
                    "value": 8800.0,
                    "accuracy": 99.94
                }
            }

Example of OCR API on Postman

Authorization

Generate JWT Token
 

 

Add token

Upload file

OCR API to for response

Price of OCR APIs

Masters India API has two tiers  FREE OCR API & Paid OCR API - In addition to connecting to our OCR servers, you can also directly Purchase OCR APIs and integrate them into your System or ERP.

  1. FREE OCR API - To Get Your OCR free API Key
    Visit the Masters India website submit a request and get your free OCR API key. The free OCR API plan has a rate limit of 150 requests within one month per IP address to prevent spamming.

  2. Paid OCR API
    Another one is a Paid Plan or Enterprise OCR API License. Here businesses can purchase the OCR API as per their requirement or business case for their desired time duration. Paid API can also integrate into the respective system for better use.

How Masters India OCR API is different from Free OCR API

OCR API Plan Included Masters India OCR API Image OCR API
Data Formatting Yes NA
Cost-effective & Time-Saving Yes NA
Training required Less Yes
Self-learning AI Yes NA
Template setup required No Yes
Integrate with system Yes N

 

 

 

 

 

Sign-Up

& Get API Key

Try Now

Contact Sales

Indel4 Port Name | TCS on Sale of Goods Above 50 Lakhs | UQC Code List | Best Business in India | Tax on Education In India | Objectives of Accounting | GST Number List

Frequently Asked Questions

How does OCR work?

First you need to submit the file into ocr then it conver the pdf file into image then it will decode its content and conver the content in to machine redible or editable form.

Where is OCR used?

OCR can be used To extract data from different types of documents such as invoices, receipts, contracts etc.

Which OCR API is best?

Masters India OCR API is best to extract the Data from the document - currently, many businesses are using these API for a different purposes to achieve automation in their solution.

About the Author

Rate your experience
4.70 / 5. Vote count: 1414
Need Help in Getting Started?
Make smart decision to replace your manual work with modern solution and improve your business output
Request Callback
Continue Browsing
Subscribe Now!
Receive GST, E way bill, e-Invoice, Accounts payable and OCR updates from our experts.