API endpoint:
https://yplinks.com/api/v1/links
Request example:
curl --location --request GET 'https://yplinks.com/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
by
title
for Title, alias
for Alias, url
for URL.status
0
for All, 1
for Active, 2
for Expired, 3
for Disabled.space
domain
sort
desc
for Descending, asc
for Ascending, max
for Best performing, min
for Least performing.API endpoint:
https://yplinks.com/api/v1/links/{id}
Request example:
curl --location --request GET 'https://yplinks.com/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://yplinks.com/api/v1/links
Request example:
curl --location --request POST 'https://yplinks.com/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
API endpoint:
https://yplinks.com/api/v1/links/{id}
Request example:
curl --location --request PUT 'https://yplinks.com/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
API endpoint:
https://yplinks.com/api/v1/links/{id}
Request example:
curl --location --request DELETE 'https://yplinks.com/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'