API Documentation

Access our tools programmatically through our API.

Overview

Our API allows developers to integrate our utility tools into their own applications. Currently, we offer access to select calculators and converters.

Authentication

To use our API, you'll need an API key. Currently, API access is limited. Please contact us to request access.

Base URL

All API endpoints are relative to:

https://api.rajubhi.site/v1/

Endpoints

Password Generator

POST /password/generate

Parameters:

  • length (integer): Password length (8-64)
  • uppercase (boolean): Include uppercase letters
  • lowercase (boolean): Include lowercase letters
  • numbers (boolean): Include numbers
  • symbols (boolean): Include symbols

Unit Converter

POST /convert

Parameters:

  • value (number): Value to convert
  • from (string): Source unit
  • to (string): Target unit
  • type (string): Conversion type (length, weight, temperature, etc.)

Currency Converter

GET /currency/convert?from=USD&to=EUR&amount=100

Parameters:

  • from (string): Source currency code (e.g., USD)
  • to (string): Target currency code (e.g., EUR)
  • amount (number): Amount to convert

Response Format

All responses are in JSON format. Successful requests return HTTP 200 with the following structure:

{
    "success": true,
    "data": {
        // endpoint-specific data
    }
}

Error responses include an error message and appropriate HTTP status code:

{
    "success": false,
    "error": "Invalid API key"
}

Rate Limiting

The API is currently limited to 100 requests per hour per API key. Additional rate limits may apply to specific endpoints.

Terms of Use

By using our API, you agree to:

  • Use the API only for lawful purposes
  • Not attempt to circumvent rate limits
  • Not use the API in a manner that could damage our services
  • Include proper attribution where appropriate

Contact

For API access or questions, please contact us at contact@rajubhi.site.