1pt API

⭐ Beginner's Pick Url Shorteners / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

1pt is a free, minimalist URL shortener API that converts long URLs into compact short links using the 1pt.co domain. It requires no authentication or sign-up, making it one of the easiest URL shorteners to integrate into any project. Simply send a GET request with your long URL and receive a shortened link in seconds.

💡

Beginner Tip

Send your long URL as a query parameter to the shorten endpoint and you will get a short URL back as plain text with no JSON parsing needed. Perfect for simple scripts or quick prototyping.

Available Data

shortened URL
original URL
click count
creation date
Use case: Integrate a simple url shortener data into web and mobile applications

Example Response

JSON Response
{
  "id": "abc123",
  "short_url": "https://short.ly/abc123",
  "long_url": "https://example.com/very/long/url/path",
  "clicks": 1542,
  "created_at": "2025-01-10T14:30:00Z"
}

Field Reference

status HTTP-like status code indicating success (201) or failure
short The generated short code appended to https://1pt.co/
long The original long URL that was shortened

Implementation Example

const url = "https://github.com/1pt-co/api/blob/main/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Empty or invalid response URL parameter is missing or malformed in the request
Ensure the URL is properly encoded; use encodeURIComponent() in JavaScript or urllib.parse.quote() in Python
400 Bad Request Provided URL is not a valid HTTP/HTTPS URL
Make sure the URL starts with http:// or https:// before sending it to the API
Short link not resolving The 1pt.co domain may be temporarily unavailable
Add error handling and a fallback mechanism in case the shortener service is down

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 652ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Url Shorteners
Difficulty Beginner
Verified: 2026-04-04

Alternatives to 1pt

Technical alternatives for different use cases.

Minimalist URL shortener with no registration

Better For

Analytics, branded links, and link management

Trade-off

Simplest possible URL shortening integration

Similar APIs

View All →