Search our Knowledge Base
Search

Add Link API



The add_link method allows you to add a new link to Link Manager. 

Refer to the 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 The unique API key assigned to your account
link_from URL The link source URL
link_to URL The link destination URL
manager_id int The link manager assigned to the link.
Refer to Manage Users documentation for assistance with creating account sub-users.
profile_id
int
Profile ID (refer to Get All Profiles to obtain a list of Profile IDs.)
supplier_id int Refer to Manage Contacts for assistance with creating supplier records.
anchor_text string The text that is linking to the destination URL. If the anchor is an image instead of text, you may enter [image]
link_type int Enter 1 for Paid link, 2 for Non-paid link or 3 for Link Exchange
link_position string Enter header, middle, footer or other
link_price int Optional: can be used if you want to register a paid link price
link_currency string Optional: can be used if paid link and you register a link price. Refer to ISO Codes alpha list for country currency codes (for example, United States currency code is USD).
invoice_number string Optional: can be used to store an invoice number for a paid link
link_start_date date Optional: Enter the date that the link should be live. Format: YYYY-MM-DD
link_end_date date Optional: Enter the date that the link is to expire. Format: YYYY-MM-DD
notes string Optional: you may record your internal notes (max. 255 characters)



Request Examples

 
Construct & test API requests in the API Console or follow one of these examples:

https://www.rankranger.com/api/v2/?add_link&key=YourAPIkey&manager_id=12&profile_id=18&supplier_id=1&link_from=https://www.link-source.com&link_to=https://www.link-destination.com&anchor_text=your anchor text&link_type=1&price=25.00&link_currency=USD&start_date=YYYY-MM-DD&link_position=middle

The default output format is XML, if you want JSON simply add "&output=json" to the end of the string.



Response Example

            
 
AخA
 
<tracking-data provider="rankranger" date="07/16/2017" time="14:24:56" status="ok">
    <status>success</status>
    <link_id>12525</link_id>
</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