Question Locked

How to Call Public APIs in WordPress for Image Text Extraction and Word Cou

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi everyone, I’m working on a project in WordPress to build a custom tool that extracts text from images and then counts the words from the extracted text. I plan to use public APIs for both the text extraction (OCR) and word counting functionality.

However, I’m unsure about the best approach to integrate these APIs into a WordPress site. Should I build a custom plugin or use the functions.php file? Also, what’s the best way to handle API authentication, error handling, and performance optimization? Has anyone built similar tools or integrated public APIs into WordPress for custom functionality?

Looking forward to any advice or resources that can help!

Internet link deleted by moderator

2 replies

by rproffitt edited

The API documentation would have a WordPress example.

If they don't then you are in for a longer dev cycle as you create your own WP templates. WP template creation is not something I will write about here as there is plenty on the web about that.

by DediRock

Hello, Jhonn! A custom plugin would be cleaner long-term. Are you leaning toward cloud OCR APIs like Google Vision, or something lighter like OCR.space?

This discussion is closed to new replies.