# Semrush Title Generator

Generates title ideas for a topic with the Semrush title generator, grouped into guide, listicle, question, and other styles. Generation is AI-bound and typically takes a few seconds.

- **Documentation:** [https://scrappa.co/docs/semrush-api/semrush_content_titles](https://scrappa.co/docs/semrush-api/semrush_content_titles)
- **API group:** Semrush API
- **Endpoint:** `POST https://scrappa.co/api/semrush/content/titles`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The input text for the writer (a topic for titles/blogpost, the passage to rewrite or summarize otherwise). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/semrush/content/titles?text=best+coffee+makers"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "semrush_content_titles",
        "text": "best coffee makers"
    },
    "titles": {
        "guide": [
            "The Complete Guide to the Best Coffee Makers"
        ],
        "listicle": [
            "10 Best Coffee Makers for Every Budget"
        ],
        "wh": [
            "What Are the Best Coffee Makers in 2026?"
        ],
        "other": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter failed validation. |
| 503 | Semrush Upstream Unavailable | Semrush could not be fetched through the configured proxy pool after the full attempt budget. Never charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
