---
title: "Semrush API: Content Rewrite | Perceptlayer"
description: "Content Rewrite from Semrush as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/semrush/content-rewrite
---

[APIs](https://perceptlayer.com/apis) / [Semrush](https://perceptlayer.com/apis/semrush) / Content Rewrite

# Semrush: Content Rewrite

Content Rewrite from Semrush as JSON. 1 credit per successful call.

POST `/v1/semrush/content-rewrite` Needs terms

Note 

This endpoint needs the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints), which you can accept in your dashboard.

## Parameters

Send parameters in the JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `tool` | string | Required | paragraph-rewriter, sentence-rewriter, paraphrase-generator |
| `category` | string | Required | improve, simplify, summarize |
| `text` | string | Required | Up to 5,000 characters |

## Example request

cURL shell 

```
curl -X POST "https://api.perceptlayer.com/v1/semrush/content-rewrite" \
  -H "X-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"paragraph-rewriter","category":"improve","text":"Coffee is a brewed drink prepared from roasted coffee beans."}'
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/semrush?try=content-rewrite#playground) with your own parameters. 1 credit per successful call; failed calls are free.
