Named Entity Recognition API

Extract structured entities such as brand, model, year, and more from unstructured text descriptions.

🟢 Endpoint

POST https://kubus.co.id/api/v1/ner/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

Configured Entity Groups

No entity groups configured yet.

Send a JSON object with a list of texts:


            {
                "entity_group":"car",
                "texts": [
                    "2022 Hyundai Stargazer 1.5 Prime MPV",
                    "2021 Toyota Avanza 1.3 G MT MPV"
                ]
            }

✅ Response

Example a successful request returns:

                {
    "results": [
        {
            "ner": "{\"brand\": \"Hyundai\", \"tipe mobil\": \"Stargazer\", 
                    \"transmisi\": \"AWD\", \"tahun\": \"2022\", \"bahan bakar\": \"E85/E10\", 
                    \"kubikasi\": \"1.5\"}",
            "text": "2022 Hyundai Stargazer 1.5 Prime MPV"
        },
        {
            "ner": "{\"brand\": \"Toyota\", \"tipe_mobil\": \"Avanza\", 
                    \"transmisi\": \"MT\", \"tahun\": \"2021\", \"bahan_bakar\": \"Bensin\", 
                    \"kubikasi\": \"1300cc\"}",
            "text": "2021 Toyota Avanza 1.3 G MT MPV"
        }
    ],
    "status": "success"
}
            

Notes

  • Extracted entities are returned as a JSON-formatted string per input text.
  • Maximum of 10 texts per batch is supported.
  • Ensure your API key is valid and not expired.