नया: फ़्री WhatsApp, UPI QR और लिंक-सुरक्षा टूल — साइन-अप की ज़रूरत नहीं। आज़माएं
डेवलपर

API की बनाएं

REST API और बल्क CSV इम्पोर्ट इस्तेमाल करें।

यह लेख अभी अंग्रेज़ी में है। हिंदी वर्शन जल्द आ रहा है।

The hi4.in REST API lets your own software create short links and read their stats. Each request is signed with an API key that belongs to your account. Bulk CSV import does the same job without any code.

स्टेप

  1. Log in and open API Management → API Keys in your dashboard.
  2. Select the button to create a new key and give it a name that says where it will be used, such as "Website order form".
  3. Copy the key and store it somewhere safe, like a password manager. Treat it like a password — anyone with the key can make links in your account.
  4. Send the key in the X-API-Key header with every request (see the example below).
  5. If a key leaks, delete it from the same page and create a new one.

If you do not see the option to create a key in your dashboard yet, email support@hi4.in from your account email and we will set one up for you.

Create a short link

curl -X POST https://hi4.in/api/v1/links \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"long_url": "https://example.com/diwali-offer", "title": "Diwali offer", "custom_slug": "diwali-offer"}'

long_url is required. title, custom_slug, password and expires_at are optional. The reply includes the new link's id, slug and short_url.

Other endpoints

  • GET /api/v1/links — list your links.
  • GET /api/v1/links/{id} — one link.
  • PUT /api/v1/links/{id} — update a link, for example its destination.
  • DELETE /api/v1/links/{id} — delete a link.
  • GET /api/v1/links/{id}/analytics — click stats for a link.

There is an hourly limit on requests per account. If you go over it, the API answers with HTTP 429 — wait and try again. Full details are on the Developers & API page.

No code? Use bulk CSV

  1. Open My Links → Bulk Operations.
  2. Under Import Links, upload a CSV file with the columns URL, Title and (optionally) Custom Slug.
  3. On the same page you can select links to export them, set an expiry date for many links at once, or delete them.

The API and bulk CSV are part of the Pro and Business plans — see pricing.

आख़िरी अपडेट: 22 अक्टूबर 2026

अब भी कोई सवाल है?

हेल्प सेंटर में खोजें, या हमें संदेश भेजें — हमारी टीम एक कामकाजी दिन में जवाब देगी।

Esc
↑ ↓ ऊपर-नीचे जाने के लिएEnter खोलने के लिए/ खोज खोलता है