Skip to main content

Official Urlcut Public API package.

Project description

Urlcut.py

This is the official Urlcut Python package.

Install

pip install Urlcut.py

Usage

import urlcutpy as Urlcut
Urlcut.Authenticate("API-Key")

How to shortend a link

Response = Urlcut.Create("https://www.example.com")
print(Response)

Output

{

  "success": true,

  "shortened": "CxTYCb",

  "domain": "example.com",

  "credits": 0.4
}

How to delete an existing short link

Response = Urlcut.Delete("Example-Short")
print(Response)

Output

{

  "success": true

}

How to get the analytics of a short link

Response = Urlcut.Analytics("Example-Short")
print(Response)

Output

{

  "success": true,

  "countriesOfTheUsers": [ { "DE": 1 } ],

  "usersDeviceType": { "PC": 1, "PHONE": 0 }

}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Urlcut.py-1.0.9.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file Urlcut.py-1.0.9.tar.gz.

File metadata

  • Download URL: Urlcut.py-1.0.9.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for Urlcut.py-1.0.9.tar.gz
Algorithm Hash digest
SHA256 ea5b99b6b5a21fb0ee0c0c849f26441a4ade4ee32e41a99170684f6ffd93e119
MD5 3280f76eae3ce4cff877d6720772b25f
BLAKE2b-256 98a62e29918f8dcd8b3bcd2c75aa774fc09af70d2b6188c6ecada7dba8b1b3ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page