Developers - ShortGPT

Developers

1. API Documentation

Our API allows developers to integrate ShortGPT's link shortening services into their applications. Below is a quick guide to get started.

2. Getting Started

To use our API, you need to obtain an API key. You can generate your API key from your account dashboard.

  • Sign in to your ShortGPT account.
  • Navigate to the API Keys section in your dashboard.
  • Generate a new API key and keep it secure.

3. API Endpoints

Here are the main API endpoints you can use:

  • Shorten URL: POST /api/v1/shorten
  • Get Link Analytics: GET /api/v1/analytics/{short_code}
  • Delete Short Link: DELETE /api/v1/links/{short_code}

4. Example Requests

Here is an example of how to shorten a URL using our API:


POST /api/v1/shorten HTTP/1.1
Host: api.shortgpt.blogspot.com
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
    "long_url": "https://example.com/very-long-url",
    "custom_alias": "myalias"
}

                

5. SDKs and Libraries

We provide SDKs and libraries for popular programming languages to make integration easier:

  • Python: pip install shortgpt-sdk
  • JavaScript: npm install shortgpt-sdk
  • PHP: composer require shortgpt/sdk

6. Rate Limits

To ensure fair usage, our API has rate limits:

  • Free Plan: 100 requests per hour.
  • Pro Plan: 1,000 requests per hour.
  • Enterprise Plan: Custom limits based on agreement.

7. Support

If you have any questions or need assistance, please contact our developer support team at developers@shortgpt.blogspot.com.