apyhub

AI Text Syntax Analysis API

What it does

Syntax Analysis parses a text string and returns Google syntax analysis results in the data.google object when you set requested_service to google.

Send your body.text along with requested_service, and include body.language, body.encoding, or a body.google object when you need to provide Google-specific options. The service is designed for developers who need to inspect or process text with Google-backed language analysis in a structured API response.

Use Syntax Analysis when you want to run automated language checks on user-generated content, message bodies, or documents before further processing. The response keeps the Google output under data.google, making it straightforward to pass into downstream classification, enrichment, or moderation workflows.

If you are building a pipeline that needs syntax-aware text processing, Syntax Analysis gives you a focused endpoint for sending text in and receiving structured analysis data back.

POST
Syntax Analysis
https://api.eu.apyverse.com/apyhub/syntax-analysis

QUICKSTART

GUIDE

Quickstart

Analyze text with the Google syntax service by sending the required text and service name.

curl -X POST "https://api.eu.apyverse.com/apyhub/syntax-analysis" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "ApyHub provides powerful APIs for developers worldwide.",
    "requested_service": "google"
  }'

What you'll get back

Returns a JSON object with a data object. When requested_service is google, data.google is present and contains 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 the submitted text and returns a JSON object containing a data object. When requested_service is google, the response may include a google object with service-specific analysis results.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to analyze.
googleObjectNoGoogle-specific configuration object. See schema for nested fields.
google.keyStringNoGoogle API key.
google.google_languageStringNoGoogle language code.
encodingStringNoText encoding.
languageStringNoLanguage code for the input text.
requested_serviceENUMYesRequested analysis service. Allowed value: google.

Response

Returns a JSON object with a data object field. The data object may include a google object when requested_service is google.

ParameterTypeMandatoryDescription
dataObjectYesContainer for the analysis result. May include a google object when the requested service is google.

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.