Skip to main content
POST
Provide a URL and a shortened link will be returned. Analytics can then be gathered on the clicks, browser type, etc. Submitting the same URL for shortening will always result in the same shortened link. To generate a unique shortened link for the same URL, you can add extra query parameters to it. For example, appending a unique identifier like https://ayrshare.com?uniqueId=123 will create a distinct shortened link. You may also include UTM parameters, which will be embedded in the shortened URL link.

Header Parameters

Body Parameters

string
required
URL to be shortened. Must be a valid URL starting with https://
string
Used to identify which Google Analytics ads campaign this referral references.
string
Used to identify a search engine, newsletter name, or other source.
string
Used to identify a medium such as email or cost-per-click.
string
Used for keyword analysis. Used to identify a specific product promotion or strategic campaign.
string
Used for paid search. Used to note the keywords for this ad.
string
Used for A/B testing and content-targeted ads. Used to differentiate ads or links that point to the same URL.