GET
/ocr
Requires Auth
Perform OCR on an image
Extract text from an image URL using OCR
Parameters
url
*
query
string
URL of the image to process
coords
query
string
Whether to return coordinates of detected text
Example:
false
Allowed Values:
true
false
Code Examples
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
'https://nexus-api.dhurgham.dev/api/ocr-extract-text/ocr?coords=false'
Example cURL Request
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://nexus-api.dhurgham.dev/api/ocr-extract-text/ocr?coords=false'
frontend.example_response
{
"text": "string",
"coordinates": []
}