API крайна точка:
https://short.bg/api/v1/links
Примерна заявка:
curl --location --request GET 'https://short.bg/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_bytitle for Заглавие, alias for Псевдоним, url for URL адрес. По подразбиране: title.status0 for Всички, 1 for Активен, 2 for Изтекъл, 3 for Деактивиран. По подразбиране: 0.space_iddomain_idpixel_idsort_byid for Дата на създаване, clicks for Кликове, title for Заглавие, alias for Псевдоним, url for URL адрес. По подразбиране: id.sortdesc for Низходящо, asc for Възходящо. По подразбиране: desc.per_page10, 25, 50, 100. По подразбиране: 10.API крайна точка:
https://short.bg/api/v1/links/{id}
Примерна заявка:
curl --location --request GET 'https://short.bg/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API крайна точка:
https://short.bg/api/v1/links
Примерна заявка:
curl --location --request POST 'https://short.bg/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
urldomain_idaliasspace_idpixel_ids[]redirect_passwordsensitive_content0 for Не, 1 for Да. По подразбиране: 0.privacy0 for Публичен, 1 for Частен, 2 for Парола. По подразбиране: 0.passwordprivacy е зададено на 2.active_period_start_atY-m-dTH:i:s.active_period_end_atY-m-dTH:i:s.clicks_limitexpiration_urltargets_typecontinents for Continents, countries for Countries, operating_systems for Operating systems, browsers for Browsers, languages for Languages, devices for Devices, rotations for Rotations.targets[index][key]targets_type=country, стойността трябва да е във формат ISO 3166-1 alpha-2.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, възможните стойности са: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.targets_type=devices, възможните стойности са: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, стойността трябва да е във формат ISO 639-1 alpha-2.targets_type=continents, възможните стойности са: AF for Africa, AN for Antarctica, AS for Asia, EU for Europe, NA for North America, OC for Oceania, SA for South America.targets[index][value]API крайна точка:
https://short.bg/api/v1/links/{id}
Примерна заявка:
curl --location --request PUT 'https://short.bg/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
urlaliasspace_idpixel_ids[]redirect_passwordsensitive_content0 for Не, 1 for Да.privacy0 for Публичен, 1 for Частен, 2 for Парола.passwordprivacy е зададено на 2.active_period_start_atY-m-dTH:i:s.active_period_end_atY-m-dTH:i:s.clicks_limitexpiration_urltargets_typecontinents for Continents, countries for Countries, operating_systems for Operating systems, browsers for Browsers, languages for Languages, devices for Devices, rotations for Rotations.targets[index][key]targets_type=country, стойността трябва да е във формат ISO 3166-1 alpha-2.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, възможните стойности са: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.targets_type=devices, възможните стойности са: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, стойността трябва да е във формат ISO 639-1 alpha-2.targets_type=continents, възможните стойности са: AF for Africa, AN for Antarctica, AS for Asia, EU for Europe, NA for North America, OC for Oceania, SA for South America.targets[index][value]API крайна точка:
https://short.bg/api/v1/links/{id}
Примерна заявка:
curl --location --request DELETE 'https://short.bg/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'