LinksGPT URL Expander Python SDK
Uncover truth behind short links to avoid malicious sites and privacy breaches. LinksGPT URL Expander SDK, provides an easy way to interact with the URL Expander API - Expands shortened URLs and retrieves details about redirections and the final destination URL.
LinksGPT is a professional link management platform for custom short urls, brand building and conversion optimization. It offers intelligent URL shortening and expansion, custom domains, team roles, customizable QR codes, tracking and AI-based in-depth analytics, deep linking, openAPI and enhanced link security. Powered by AI, it provides intelligent insights and recommendations based on user behavior and click patterns, support data-driven brand strategies and marketing decisions.
What is URL Expander?
URL Expander is a tool that reveals the final destination of any URL, including shortened links. It allows users to see the original or expanded URL that is hidden behind a short link. By entering a shortened URL, the tool retrieves the actual URL destination and provides users with more information about where they will be directed if they click on the link. This is especially important for security purposes, as shortened URLs can be a means to disguise malicious or harmful links. By expanding the link, users can assess its legitimacy and make more informed decisions about whether to click on it.
Requirements
Python 2.7 and 3.4+
Installation & Usage
pip install
pip install short-url-expander
Then import the package:
import url_expander
Getting Started
from __future__ import print_function
import time
import url_expander
from url_expander.rest import ApiException
from pprint import pprint
# Configure the client
configuration = url_expander.Configuration()
# create an instance of the API class
api_instance = url_expander.URLExpanderApi(url_expander.ApiClient(configuration))
body = url_expander.ToolsUrlexpanderBody(url="https://0t1.co/linksgptapidoc") # ToolsUrlexpanderBody | JSON payload containing the URL to expand
try:
# Expand a shortened URL
api_response = api_instance.url_expander(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling URLExpanderApi->url_expander: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://app.linksgpt.com/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| URLExpanderApi | url_expander | POST /tools/url-expander | Expand a shortened URL |
Source Code
GitHub Repo: url-expander-sdk-python
Documentation For Authorization
All endpoints do not require authorization.
Author
Metadata
Release files for short-url-expander 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| short_url_expander-1.0.0.tar.gz | 17.2 kB | Without provenance | Details for short_url_expander-1.0.0.tar.gz |
Release files / short_url_expander-1.0.0.tar.gz
| Download URL | short_url_expander-1.0.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c07221c5b9d5d8422755f18a9d15e9fcde88e2e48f7e4d56bf48329a3bdcfa3d
|
|
BLAKE2b-256 checksum How to use checksums |
6f8423ade482ead762f3501c6d3e2de02a28639c000aae702a038fa1cdd3ea6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.7
|
Security for short-url-expander 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.