APIHub
Back to Explore

1pt

The API provides a single operation to create a shortened URL by POSTing a long URL and optionally a desired custom alias; if the custom alias is omitted or already taken, a random five‑letter short code is generated.

URL Shorteners
none
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

654ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
POST

/addURL

Create a shortened URL

  • long (query, required) — The long URL to shorten
  • short (query) — Optional - The part after 1pt.co/ that will redirect to your long URL. If not provided or already taken, a random 5-letter string is returned

1 endpoint auto-detected

curl -X POST \
  "https://github.com/1pt-co/api/blob/main/README.md/addURL"

github.com · HTTPS only