Add competitors
Add competitor domains to Competitor Tracking of a project for one country.
POST https://cotlet.dev/api/v1/ubersuggest/competitors
Does what Add Competitors to Track does: adds the domains for the location you name. Ubersuggest tracks competitors at country level only, so a city becomes its country. Competitors times locations must fit your plan limit, otherwise the call fails and adds nothing. It reaches no one and does not buy the add-on for more slots. It is not confirmed by default because you undo it by removing the competitor in the app.
Parameters
| Name | Type | Description |
|---|---|---|
| project string required | string | Project domain. |
| competitors string[] required | string[] | Competitor domains or URLs. |
| location string required | string | Country to track them in, e.g. United States. |
Request
curl -X POST https://cotlet.dev/api/v1/ubersuggest/competitors \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"project":"project","competitors":["competitors"],"location":"location"}' result = client.call("ubersuggest", "add_competitors", {"project":"project","competitors":["competitors"],"location":"location"}) const result = await cotlet.call('ubersuggest', 'add_competitors', {"project":"project","competitors":["competitors"],"location":"location"}); cotlet call ubersuggest add_competitors --data '{"project":"project","competitors":["competitors"],"location":"location"}' Example response
{
"project": "brewlab-store.com",
"location": "United States",
"added": [
"northbeanco.com",
"tidalroast.com",
"emberandoak.coffee"
],
"slots_used": 3
}