Discontinued

This API no longer responds. Our last check on 2026-07-31 found no working endpoint — the service appears to have shut down or moved. The documentation, code samples and score below are kept for reference only; do not build against this API. See working Url Shorteners APIs →

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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

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

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Url Shorteners
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

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 →