---
title: "Set Keyword Location Ep"
method: PUT
path: "/sites/{site_id}/tracked-keywords/location"
tags: ["sites"]
---

# Set Keyword Location Ep

`PUT /sites/{site_id}/tracked-keywords/location`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/sites/{site_id}/tracked-keywords/location`
- Auth: API key in header `X-Agent-Key`

Set ICP target location for keyword tracking.

## Path parameters

- `site_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- SetLocationRequest
  - `location_code` integer, nullable
  - `location_name` string
  - `location_type` string
  - `search_engine` 'google'
  - `language_code` string
  - `device` 'desktop' | 'mobile'

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
