Endpoint reference
GET
/ocr
Requires Auth
Perform OCR on an image
Extract text from an image URL with optional text coordinates.
Endpoint URL
Use this marketplace URL in your integration.
Code Examples
Replace YOUR_API_TOKEN with your own key. Store it on your server.
curl -X GET \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexonapi.com/api/ocr-extract-text/ocr?url=https%3A%2F%2Fnexonapi.com%2Fimages%2F1.jpg&coords=false'
Parameters
url
*
query
string
URL of the image to process
Example:
https://nexonapi.com/images/1.jpg
coords
query
string
Whether to return detected text coordinates
Example:
false
Allowed Values:
false
true
Example cURL Request
curl -X GET \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexonapi.com/api/ocr-extract-text/ocr?url=https%3A%2F%2Fnexonapi.com%2Fimages%2F1.jpg&coords=false'
frontend.example_response
{
"text": "string",
"xy_coordinates": {}
}