Endpoints Overview Part 1: AI, Business, Code, Image & PDF

Part 1 of our three-part series: Discover our API endpoints in AI, Business, Code, Image, and PDF. Learn what they do, how they work, and their benefits.

Published
June 13, 2024

In this three-part series, we'll look at some API endpoints available in our ecosystem, showing what they do, how they work and their benefits. This first section covers five key categories: AI, Business, Code, Image, and PDF. Each category contains specialized endpoints designed to simplify various tasks, from text recognition and content detection to email validation and code execution.

AI

The AI category includes a diverse range of endpoints designed to use advanced algorithms and machine learning techniques. Each execution of the AI endpoints costs 10 credits. These endpoints enable various functionalities such as:

Picture Text Recognition

The Picture Text Recognition endpoint is an API that extracts text from images. By inputting an image URL, the API processes the image using Optical Character Recognition (OCR) and returns the text contained within.

Detect Adult Content

The Adult Content Detection endpoint is an API designed to analyze images for inappropriate content, such as adult, racy, or gory material. By submitting an image URL, the API evaluates the image and provides a detailed assessment, including confidence scores for each category of inappropriate content.

Entity Detection

The Entity Detection endpoint is an API that identifies and categorizes key entities within a given text, such as dates, locations, and other significant elements. By inputting text, the API processes it to detect these entities, providing details about their categories and positions within the text along with confidence scores. If you would like to see a use case with this endpoint, we encourage you to read this blog.

Business

The Business category focuses on endpoints essential for business operations and data validation. Each execution of the Business endpoints costs 1 credit. These endpoints include:

Validate Email

The Email Validator API ensures the accuracy of email addresses by checking their validity and offering corrections for common errors. By inputting an email address, the API analyzes it to verify its correctness and suggests corrections if needed, helping to maintain reliable communication channels and high-quality data.

Validate VAT

The VAT Validation API is a crucial tool for European businesses, enabling them to verify the validity of VAT numbers to ensure compliance and accuracy in transactions. By providing either a full VAT ID or separating it into a country code and VAT number, the API checks the validity and returns details about the VAT number's status.

Validate Geolocation

The Validate Geolocation endpoint is an API that confirms the validity of provided addresses. By entering an address, the API checks its existence and accuracy, returning validation results along with possible geolocation details like latitude and longitude. Important: This is the only Business endpoint where each execution costs 5 credits.

Code

The Code category offers endpoints for executing and managing code snippets across different programming languages. Each execution of the Code endpoints costs 2 credits. These endpoints include:

Run JS Code

The JavaScript Code Executor endpoint allows you to run JavaScript code snippets on a remote platform. Users send their JavaScript code in a request, and the API executes it and returns the results quickly.

Asynchronous Python  

The Asynchronous Python Code Executor allows you to run Python code snippets asynchronously on a remote platform. Users submit their code along with any required dependencies, and the API executes the code on its servers and sends the results to a specified webhook URL.

Run Python Code

The Python Code Executor allows you to run Python code snippets on a remote platform, receiving execution results quickly. Users send their Python code in a request, and the API processes it on its servers and returns the output in a structured format. Here's a YouTube video showcasing an automation in which our Python Code Executor was used.

Image

The Image category provides endpoints for processing and manipulating images programmatically. Each execution of the Image endpoints costs 5 credits. These endpoints include:

Exif

The Get Exif endpoint allows you to extract detailed EXIF (Exchangeable Image File Format) data from images. Users submit an image URL, and the API retrieves valuable information about the photo's technical aspects, such as camera settings, software used, and more.

Crop

The Image Crop API allows you to crop images to precise dimensions by specifying coordinates and size parameters. Users provide the image URL and the desired cropping details, and the API processes the image and returns a URL for the cropped version.

Blur

The Blur Image endpoint allows you to apply blurring effects to images to obscure sensitive or identifiable details. By providing an image URL and optionally adjusting the blur intensity using a sigma value, the endpoint processes the image and returns a URL for the blurred version.

PDF

The PDF category offers a comprehensive set of endpoints for manipulating PDF documents programmatically. Each execution of the PDF endpoints costs 5 credits. These endpoints include:

Merge

The PDF Merger endpoint combines multiple PDF files into one cohesive document. Users specify the PDF files to be merged, along with their URLs or directly from buffers. The API processes the PDF files and merges them into a single document, optionally allowing users to specify a custom file name for the merged PDF.

HTML to PDF

The HTML to PDF Converter endpoint transforms HTML content into PDF documents. Users can input HTML directly or specify a URL, and the endpoint processes the HTML to return a PDF file. Options include receiving the PDF as a downloadable URL or directly as a buffer for immediate use.  

OCR

The PDF OCR endpoint extracts text from PDF documents using Optical Character Recognition (OCR) technology. Users provide a PDF document URL as input, and the API identifies text elements within the PDF pages.

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.