---
title: Generate Hospitality Product Categories API
slug: generate-hospitality-product-categories
url: https://apyhub.com/sharpapi/service/generate-hospitality-product-categories
provider: SharpAPI
categories: [Model Kit]
tags: [hospitality, travel-categories, content-classification, category-generation, taxonomy, asynchronous-jobs]
auth: api_key
version: 1.0.0
service_type: job
endpoints: 2
atoms: 1-50
mcp: true
alias: sharpapi-hospitality-product-categories
---

# Generate Hospitality Product Categories API

Generate ranked hospitality category names from travel content. Returns job status plus category names and weights for taxonomy workflows.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories` | What it does Submits a job to generate hospitality product categories from the provided content. Th… | 50 |
| GET | `https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories/job/status/:job_id` | What it does Checks the status of a previously submitted hospitality product category generation jo… | 1 |

## Endpoint reference

### Generate Hospitality Product Categories - Submit Job

`POST https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories` · 50 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `city` | body | string | no | Specify the city to travel. |
| `content` | body | string | yes | Provide the content to generate travel product categories. |
| `context` | body | string | no | Provide additional context to improve paraphrasing accuracy. |
| `country` | body | string | no | Specify the country to travel. |
| `language` | body | string | no | Specify the language of the output. Default: `English`. |
| `voice_tone` | body | string | no | Specify the voice tone. Default: `neutral`. |
| `max_quantity` | body | number | no | Maximum number of product categories to generate. |

#### Quickstart

Submit a hospitality content job with the required `content` field.

```bash
curl -X POST "https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"Hotels in Paris"}'
```

#### What you'll get back

Returns a JSON object with:

- `job_id` (`string`, UUID): the unique identifier of the submitted job

```json
{
  "job_id": "831f5f92-13dd-49f2-aaf1-b27dbb6829cd"
}
```

### Generate Hospitality Product Categories - Check Job Status

`GET https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories/job/status/:job_id` · 1 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `job_id` | path | string (uuid) | yes |  |

#### Quickstart

Check the status of a hospitality categories generation job by its `job_id`.

```bash
curl -X GET "https://api.eu.apyhub.com/sharpapi/generate-hospitality-product-categories/job/status/:job_id" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `data` object. `data` contains the job `id` (UUID), `type` (`api_job_result`), and `attributes`, which include the job `type`, `status`, and `result` array.

```json
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "type": "api_job_result",
    "attributes": {
      "type": "tth_hospitality_product_categories",
      "status": "success",
      "result": [
        {
          "name": "Hotel Amenities",
          "weight": 0.92
        }
      ]
    }
  }
}
```

## About

## What it does
Hospitality Product Categories generates a ranked list of product category names from your travel or hospitality content. Send a `content` string, and you can also include `city`, `country`, `language`, `context`, `voice_tone`, and `max_quantity` to shape the output. The submit endpoint returns a `job_id`, so you can process larger requests asynchronously.

Use Hospitality Product Categories when you need structured category ideas from unstructured text: hotel collections, destination guides, tour packages, amenity groupings, or marketplace merchandising for a travel brand. The service is built for content classification and category generation, not for booking or geocoding.

Poll the job status endpoint with the returned `job_id`. When the job finishes successfully, the response includes a `result` array with category objects. Each object contains a `name` and a `weight`, letting you sort or filter categories by relevance in your own workflow.

If you are building content operations, travel commerce tooling, or an AI-assisted taxonomy generator, this service gives you machine-readable category suggestions you can plug into dashboards, search filters, or CMS pipelines.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/sharpapi/service/generate-hospitality-product-categories
