Keyword Extraction API

Extract key terms or entities from a batch of text inputs.

🟢 Endpoint

POST https://kubus.co.id/api/v1/text/keywords/batch

Enable

🔐 Headers

Use your API key to authorize requests. Replace YOUR_API_KEY with your actual key.

                Authorization: Bearer YOUR_API_KEY
                Content-Type: application/json
            
Manage Your API Keys

📦 Request Body

Example request body:


            {
            "texts": [
                "Borobudur is the largest Buddhist temple in the world, located in Indonesia.",
                "iPhone 14 Pro features an A16 chip, Dynamic Island, and improved battery life."
            ]
            }

✅ Response

A successful request returns:


            {
            "results": [
                {
                "keywords": [
                    "Borobudur",
                    "temple",
                    "Indonesia"
                ],
                "text": "Borobudur is the largest Buddhist temple in the world, located in Indonesia."
                },
                {
                "keywords": [
                    "iPhone",
                    "A16",
                    "Dynamic"
                ],
                "text": "iPhone 14 Pro features an A16 chip, Dynamic Island, and improved battery life."
                }
            ],
            "status": "success"
            }

Notes

  • Each input is processed independently to extract key terms or phrases.
  • Maximum 10 texts per batch.
  • Returned keywords are sorted by relevance.
  • Ensure your API key is active and valid.