Search our Knowledge Base
Search

Add Competitor URL API



The add_competitor_url method allows you to add a competitor URL to rank tracking in a campaign that has capacity for additional websites.

Refer to Rank Ranger API Overview page for information on how to obtain API access, obtain an API Key, a full list of API methods and error codes.

 
 

Parameters

 

key string A unique API key assigned in your account API & Connected Apps screen
campaign_id int Campaign ID 
You can obtain a list of campaign IDs by running a package_campaigns request
url string Domain URL
The campaign's tracking mode determines whether you may add a top level domain URL, sub-domain URL, sub-directory URL or a specific web page URL, learn more...
output string Output format options:
  • &output=xml  (this is the default format)
  • &output=json
    Either of these parameters can be added to the json output parameter:
    • &output=json&json_strict=true 
      (forces the results to come back as array instead of objects) 
    • &output=json&json_arr=true 
      (causes the entire json to be wrapped as array)


Example

 

Construct & test API requests in the API Console or follow this example:

https://www.rankranger.com/api/v2/?add_competitor_url&key=YourAPIKey&campaign_id=XXXXX&url=domain-url.com


Response

 

AخA
 
<tracking-data provider="rankranger" date="02/21/2019" time="11:00:43" status="ok">
    <status>success</status>
</tracking-data>



How to Obtain API Access

More

How to Generate New API Keys

More

API Console: Construct & Test API Requests

More

API Query Limits

More

Developer API Methods

More

API Error Codes

More

Get the ultimate SEO tools with the Rank Ranger Software
Learn More About Rank Ranger