# Semrush Blog Post Writer

Generates a complete markdown blog article for a topic with the Semrush AI text generator. Generation is AI-bound and can take up to ~15 seconds.

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

## 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/blogpost?text=how+to+brew+pour-over+coffee"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "semrush_content_blogpost",
        "text": "how to brew pour-over coffee"
    },
    "article_markdown": "# How to Brew Pour-Over Coffee\n\nPour-over coffee rewards patience..."
}
```

## 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)
