apyhub
Back
ARTIFICIAL INTELLIGENCE · SEO

AI Text Keyword Extraction API

Hosted on ApyHub

What it does

Keyword Extraction helps you send text and get the most relevant keywords back. Use it when you need a quick way to summarize a document, index content, or power search and tagging workflows.

POST a body object with text, and optionally set language. If you want ApyHub to handle the request, leave requested_service at its default of apyhub; if you need to route through Azure, set it to azure and include the azure credentials object. The service is designed for plain text input, so it fits articles, support tickets, notes, and other unstructured content.

The response returns a data object with either an apyhub result or an azure result, depending on the service you request. That makes it useful for building content pipelines where you need keyword signals for search relevance, topic clustering, or lightweight document classification.

If you are normalising incoming text at scale, Keyword Extraction gives you a simple interface for turning raw paragraphs into structured keyword output without adding a separate NLP step to your app.

Provider (requested_service)Atoms
Azure500
ApyHub2000
POST
Extract keywords from text
https://api.eu.apyhub.com/apyhub/extract-keywords-from-text

QUICKSTART

GUIDE

Quickstart

Extract keywords from a short text by sending the text in the request body.

curl -X POST "https://api.eu.apyhub.com/apyhub/extract-keywords-from-text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"This document describes details on security protocols and cryptography."}'

What you'll get back

Returns a JSON object with a data object field. The data object can contain azure and/or apyhub response objects, depending on which service is used.

{
  "data": {
    "apyhub": {},
    "azure": {}
  }
}
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*
azure
Custom credentials for Azure services.
Azure subscription key.
Azure service region.
Azure endpoint URL.

About this endpoint

What it does

Extracts keywords from the text you send in the request body. You can also provide an optional language and select whether the extraction should use ApyHub or Azure, with Azure-specific credentials supplied under azure.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe input text to analyze.
azureObjectNoCustom credentials for Azure services. If provided, include any of the nested fields below as needed.
azure.keyStringNoAzure subscription key.
azure.regionStringNoAzure service region.
azure.endpointStringNoAzure endpoint URL.
azure.account_idStringNoAzure account ID.
azure.access_tokenStringNoOAuth access token for Azure service.
languageStringNoLanguage code for the input text.
requested_serviceENUMNoWhich service to use: azure or apyhub. Default: apyhub.

Response

Returns a JSON object with a data object field. That data object may contain an azure object and/or an apyhub object, depending on which service is used.

ParameterTypeMandatoryDescription
dataObjectYesContainer for the extraction result.
data.azureObjectNoResponse object from Microsoft Azure Cognitive Services.
data.apyhubObjectNoResponse object from ApyHub language tools.

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.