> ## Documentation Index
> Fetch the complete documentation index at: https://dev.contentify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# SEO Optimizer

> This endpoint will generate keyword, title, and description for your specified url.

<ParamField body="url" type="string">
  This is the url of your website you want to optimize. You either have to pass this or website\_copy.
</ParamField>

### Response

<ResponseField name="keyword" type="string">
  This is the keyword generated for your page.
</ResponseField>

<ResponseField name="title" type="string">
  This is the generated title for your page.
</ResponseField>

<ResponseField name="description" type="string">
  This is the generated description for your page.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST \
    <BASE_URL>/seo-optimize \
    -H 'Content-Type: application/json' \
    -d '{
      "url": "https://example-website-url.com"
      }'

  ```

  ```bash PHP theme={null}
  $url = '<BASE_URL>/seo-optimize';
  $data = array(
      'url' => 'https://example-website-url.com'
  );

  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(
      'Content-Type: application/json'
  ));

  $response = curl_exec($ch);
  curl_close($ch);

  ```

  ```bash Python theme={null}
  import requests

  url = '<BASE_URL>/seo-optimize'
  data = {
      'url': 'https://example-website-url.com'
  }

  response = requests.post(url, json=data)
  print(response.json())

  ```

  ```bash JavaScript theme={null}
  const url = '<BASE_URL>/seo-optimize';
  const data = {
      url: 'https://example-website-url.com'
  };

  fetch(url, {
      method: 'POST',
      headers: {
          'Content-Type': 'application/json'
      },
      body: JSON.stringify(data)
  })
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

  ```
</RequestExample>

<ResponseExample>
  ```json Example Response theme={null}
  {
  	"optimization": {
          "keywords": "This is the focused meta keyword",
          "title": "This is the meta title",
  		"description": "This is the meta description"	
      }
  }
  ```
</ResponseExample>

 

#

 

#

 
