Endpoint reference
GET
/ocr_translate
Requires Auth
Perform OCR and translate the text
Extract text from an image URL and translate it to the specified language.
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_translate?url=https%3A%2F%2Fnexonapi.com%2Fimages%2F1.jpg&dest=es'
Parameters
url
*
query
string
URL of the image to process
Example:
https://nexonapi.com/images/1.jpg
dest
*
query
string
Target language code for translation
Example:
es
Example cURL Request
curl -X GET \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexonapi.com/api/ocr-extract-text/ocr_translate?url=https%3A%2F%2Fnexonapi.com%2Fimages%2F1.jpg&dest=es'
frontend.example_response
{
"text": "string",
"original_text": "string"
}