---
title: "Analyze competitors"
method: POST
path: "/serp/competitors"
tags: ["SERP"]
---

# Analyze competitors

`POST /serp/competitors`

## Request

- Base URL: `https://next.frase.io/api/v1`
- URL: `https://next.frase.io/api/v1/serp/competitors`
- Auth: one of:
  - API key in header `X-API-KEY`
  - HTTP bearer

Compare a URL against SERP competitors for a keyword.

## Request body

- object
  - `keyword` string, required
  - `url` string, uri, required
  - `location` string
  - `country_code` string
  - `language_code` string

## Response `200`

Competitor analysis

- object
  - `data` object
    - `keyword` string
    - `target_url` string
    - `target_domain` string
    - `search_parameters` object
    - `target_visibility` object
      - `is_ranking` boolean
      - `position` integer, nullable
      - `title` string, nullable
      - `snippet` string, nullable
    - `competitive_analysis` object
      - `total_competitors` integer
      - `competitors` object[]
    - `opportunities` object
  - `request_id` string

## Other responses

- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/frase/apis/frase-api.md) · [All operations](https://skmtc.dev/frase/apis/frase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frase/apis/frase-api/revisions/7fb75d89f7a4?raw)
