Blog post

Extract text from images with Nutrient Document Web Services API on Zapier

In this tutorial, you’ll learn how to automatically extract text from images using the Nutrient Document Web Services API on Zapier. This flow is ideal for pulling text from scans, photos, screenshots, or receipts into a machine-readable format like JSON.

Illustration: Extract text from images with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is a no-code automation platform that connects your favorite apps. With simple triggers and actions, you can automate document workflows between Google Drive, Gmail, Slack, and more.

In this guide, you’ll extract text from an image stored in Google Drive and save the results as a structured JSON file.

What is the Nutrient API?

Nutrient Document Web Services API is a versatile platform for document automation. With a free account, you’ll get 100 credits to run actions like:

  • OCR, redaction, annotation, and watermarking

  • Conversion between PDF, Office, image, and HTML files

  • Structured data extraction and PDF form creation

OCR functionality uses machine learning and adaptive layout understanding to identify both plain and structured text.

What you’ll need

  • A Zapier account (a pro plan is necessary for multi-step Zaps)

  • A Google Drive account

  • An image file (JPG, PNG, TIFF, etc.) stored in a Google Drive folder

  • A Nutrient API key — sign up here

Step 1 — Trigger a new file in a Google Drive folder

  1. Select Google Drive as the trigger app.

Select Google Drive as the Zap trigger

  1. Choose the New File in Folder event.

Choose ‘New File in Folder’ trigger event

  1. Connect your Google Drive account.

  2. Configure the trigger:

  • In the Drive field, select your Google Drive.

  • Choose or create a folder where image files will be uploaded (e.g. image-to-text).

Google Drive folder selected as the input folder

  1. Test with a sample image file. You can use our sample file.

Zapier test showing detected image file

Step 2 — Extract text from image (Nutrient API)

  1. Select Nutrient Document Web Services API as the action app.

Nutrient API selected as Zapier action app

  1. Choose the Extract Text From Image action.

Extract Text From Image selected as action event

  1. Connect your Nutrient API account by pasting your API key.

Paste API key for Nutrient API connection

You can find your key in the Nutrient dashboard.

Find API key in Nutrient dashboard

  1. Fill out the fields:

    • Image File — Use the file from step 1.

    • Output File Name — Optional (e.g. receipt-text.json).

Action configuration showing image input and filename

The file must be accessible via a public URL or direct download link (Zapier will handle this if sourced from Google Drive).

  1. Test the action to confirm text is extracted.

Test result showing successful text extraction

Step 3 — Upload the extracted text to Google Drive

  1. Add Google Drive as the app. Select Upload File as the action.

Google Drive selected as final step for upload

  1. Choose your drive and output folder. In the File field, map the extracted .json file from the previous step.

Upload step showing extracted file mapped for saving

Zapier may warn you about a potential Zap loop if you use the same folder for the input and the output. You can avoid this by uploading the updated file to a different folder.

  1. Test the step to ensure the file uploads correctly.

Final Zapier test showing JSON file saved to Drive

Conclusion

You’ve now created an automated Zap that extracts text from image files and stores it as structured JSON using Nutrient API. This flow is perfect for automating invoice scanning, form extraction, or text recognition across any batch of image files.

Want to go further? Chain this Zap with form creation, text extraction, or PDF-to-Excel conversion.

Author
Hulya Masharipov
Hulya Masharipov Technical Writer

Hulya is a frontend web developer and technical writer at Nutrient who enjoys creating responsive, scalable, and maintainable web experiences. She’s passionate about open source, web accessibility, cybersecurity privacy, and blockchain.

Free trial Ready to get started?
Free trial