apyhub
ARTIFICIAL INTELLIGENCE · DEVELOPER TOOLS

AI Text Syntax Analysis API

Hosted on ApyHub

What it does

Syntax Analysis sends your text to a syntax analysis backend and returns the service-specific Google response in a structured data.google object.

Use it when you need to inspect or normalise text with Google-backed analysis from your own application. The request body requires text, requested_service, and encoding. You can also include language and a nested google object with key and google_language when that service-specific configuration is needed.

The response is intentionally lightweight: you always get a data object, and when requested_service is google, the Google payload appears under data.google. That makes it easy to plug into content workflows, text-processing pipelines, or internal tools that need a consistent wrapper around an external analysis result.

For example, you might send article copy, product descriptions, or user-submitted text and store the returned data.google payload alongside your own records for later processing.

Provider (requested_service)Atoms
Google500
POST
Syntax Analysis
http://localhost:8080/apyhub/syntax-analysis
QUICKSTARTGUIDE

Quickstart

Send your text and Google settings in a JSON body to analyze syntax with the Google service.

curl -X POST "http://localhost:8080/apyhub/syntax-analysis" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "ApyHub provides powerful APIs for developers worldwide.",
    "encoding": "UTF8",
    "requested_service": "google",
    "google": {
      "key": "AIzaSyExampleKey123456789",
      "google_language": "en"
    }
  }'

What you'll get back

Returns a JSON object with a data object field. When requested_service is google, data.google may be present as an object with the Google analysis result.

{
  "data": {
    "google": {}
  }
}
TRY ITLIVE · 500 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
google

About this endpoint

What it does

Analyzes submitted text using the requested syntax-analysis service and returns a JSON object with a data object. For this schema, the supported request service is google, and the response may include a google object inside data.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to analyze.
googleObjectNoGoogle-specific options. The schema defines key and google_language inside this object.
google.keyStringNoGoogle API key.
google.google_languageStringNoGoogle language code.
encodingStringYesText encoding.
languageStringNoLanguage code for the text.
requested_serviceENUMYesThe requested service. Allowed value: google.

Response

Returns a JSON object with a data object field. When requested_service is google, data may contain a google object.

ParameterTypeMandatoryDescription
dataObjectYesResponse wrapper object.
data.googleObjectNoPresent when requested_service is google. This object can contain additional properties.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.