Bash/cURL client for the ProfitEngine API -- 32+ developer tools accessible from the command line.
- QR Code Generation -- Generate QR codes as PNG or SVG
- Email Validation -- Validate email addresses with MX record and disposable email checks
- URL Shortening -- Shorten long URLs into compact links
- UUID Generation -- Generate UUID v4, v5, and v7
- Hashing -- Hash strings with MD5, SHA1, SHA256, SHA512
- Base64 Encoding/Decoding -- Encode and decode Base64 strings
- Crypto Prices -- Get current cryptocurrency prices
- Password Strength -- Evaluate password strength
- And 25+ More -- Color conversion, timestamp parsing, text statistics, word count, slugify, MIME type lookup, HTTP status codes, lorem ipsum, URI encoding/decoding, time between dates, number formatting, currency conversion, HTTP headers, URL parsing, country info, emoji info, user agent parsing, cron expression parsing, random string generation, Markdown to HTML conversion
- bash 4+ (for associative arrays)
- curl
- jq (recommended for JSON pretty-printing)
source profitengine.sh
export PE_API_KEY="sk-your-key-here"
# Generate a QR code
pe_qr "https://example.com" > qr.png
# Validate an email address
pe_validate_email "user@example.com"
# Shorten a URL
pe_shorten_url "https://example.com/long/path"
# Get cryptocurrency price
pe_crypto_price "BTC" "USD"| Variable | Default | Description |
|---|---|---|
PE_API_KEY |
(required) | Your ProfitEngine API key |
PE_BASE_URL |
http://204.152.217.59:8080 |
API base URL |
PE_TIMEOUT |
30 |
cURL timeout in seconds |
PE_VERBOSE |
false |
Set to true to see cURL output |
Source the library and call any function. All functions that return JSON accept an optional trailing pretty argument to format output through jq.
source profitengine.sh
export PE_API_KEY="sk-your-key-here"
# Pretty-print JSON results
pe_country_info "Japan" pretty
pe_crypto_price "ETH" "EUR" pretty
# Save binary output (QR codes)
pe_qr "https://example.com" 500 png ff0000 ffffff H > custom-qr.pngpe_qr <data> [size] [format] [color] [bg] [error]pe_qr_data_url <data> [size]pe_validate_email <email>pe_shorten_url <url>pe_metadata <url>pe_stats
pe_uuid [version]pe_hash <text> [algorithm]pe_base64_encode <text>pe_base64_decode <encoded>pe_color_info <hex>pe_timestamp [timezone] [format]pe_text_stats <text>pe_word_count <text>pe_slugify <text>pe_mime_type <filename>pe_http_status <code>pe_lorem_ipsum [paragraphs] [words]pe_crypto_price [symbol] [currency]pe_password_strength <password>pe_encode_uri <text>pe_decode_uri <encoded>pe_time_between <start> [end] [unit]pe_number_format <number> [decimals] [locale]pe_currency_convert <amount> [from] [to]pe_http_headers [url]pe_url_parse <url>pe_country_info <country>pe_emoji_info <emoji>pe_user_agent_parse <user_agent>pe_cron_parser <expression>pe_random_string [length] [charset]pe_markdown_to_html <markdown>
Sign up at ProfitEngine API on RapidAPI to get your free API key with 60 requests per minute.