डेवलपर्स के लिए Presend API
सामान्य कार्यों के लिए निःशुल्क सर्वर-साइड एंडपॉइंट्स, साथ ही एम्बेड करने योग्य क्लाइंट-साइड टूल्स। किसी API कुंजी की आवश्यकता नहीं। कोई साइनअप नहीं।
सर्वर-साइड एंडपॉइंट्स
ये Cloudflare के edge नेटवर्क पर चलते हैं और JSON लौटाते हैं। केवल फेयर-यूज़ — कोई आधिकारिक SLA नहीं, भारी या स्वचालित ट्रैफ़िक बिना सूचना के सीमित किया जा सकता है।
POST /api/hash
Returns SHA-256, SHA-1 and SHA-512 for any file up to 20MB.
curl -X POST --data-binary @file.pdf \
https://presend.pages.dev/api/hash
# {"size_bytes":17,"hashes":{"sha256":"...","sha1":"...","sha512":"..."}}
GET /api/url-clean
Strips 60+ tracking parameters (utm_*, fbclid, gclid...) from a URL.
curl "https://presend.pages.dev/api/url-clean?url=https://example.com/?utm_source=x"
# {"clean":"https://example.com/","removed":1,"valid":true}
POST /api/url-clean
Same, batched — up to 100 URLs per request.
curl -X POST -H "Content-Type: application/json" \
-d '{"urls":["https://a.com?fbclid=x","https://b.com?gclid=y"]}' \
https://presend.pages.dev/api/url-clean
GET /api/ip
Returns the caller's IP with geolocation, currency, language and EU/VPN flags.
curl https://presend.pages.dev/api/ip
GET /api/uuid
Generates random UUIDs (v4), up to 100 per request.
curl "https://presend.pages.dev/api/uuid?count=5"
GET /api/base64
Encode or decode Base64 text.
curl "https://presend.pages.dev/api/base64?action=encode&text=hello"
GET /api/jwt-decode
Decodes a JWT's header and payload (does not verify the signature).
curl "https://presend.pages.dev/api/jwt-decode?token=eyJhbGci..."
GET /api/timestamp
Current time, or convert between Unix timestamp and ISO date.
curl "https://presend.pages.dev/api/timestamp?unix=1700000000"
GET /api/color
Convert between hex, RGB and HSL color formats.
curl "https://presend.pages.dev/api/color?hex=ff5733"
GET /api/user-agent
Parses a User-Agent string into browser, OS and device type.
curl "https://presend.pages.dev/api/user-agent"
GET /api/password
Generates a cryptographically secure password with entropy estimate.
curl "https://presend.pages.dev/api/password?length=20&symbols=1"
GET /api/email-validate
Validates email syntax and checks for a valid MX record (real deliverability check).
curl "https://presend.pages.dev/api/email-validate?email=foo@example.com"
GET /api/favicon
Fetches the favicon URL for any domain.
curl "https://presend.pages.dev/api/favicon?domain=github.com"
GET/POST /api/csv-json
Converts between JSON and CSV. Nested objects are stringified, not flattened.
curl -X POST -H "Content-Type: application/json" \
-d '{"direction":"json-to-csv","data":"[{\"a\":1}]"}' \
https://presend.pages.dev/api/csv-json
GET /api/password-breach
Checks if a password appears in known data breaches (HIBP k-anonymity — your password is never sent or logged in full).
curl "https://presend.pages.dev/api/password-breach?password=..."
GET /api/email-disposable
Detects disposable/throwaway email providers from a list of 576+ known domains.
curl "https://presend.pages.dev/api/email-disposable?email=foo@mailinator.com"
GET /api/security-headers
Audits HTTP security headers (CSP, HSTS, X-Frame-Options...) and gives a letter grade.
curl "https://presend.pages.dev/api/security-headers?url=https://example.com"
GET /api/url-reputation
Checks a URL against URLhaus, a public malware/phishing database.
curl "https://presend.pages.dev/api/url-reputation?url=https://example.com"
GET /api/subdomains
Passive subdomain discovery via Certificate Transparency logs (crt.sh) — for auditing your own attack surface. Note: depends on crt.sh, which has occasional downtime outside our control.
curl "https://presend.pages.dev/api/subdomains?domain=example.com"
क्लाइंट-साइड टूल्स (एम्बेड)
फ़ाइल-प्रोसेसिंग टूल्स (EXIF हटाना, PDF कंप्रेशन, आदि) पूरी तरह से ब्राउज़र में चलते हैं — कुछ भी अपलोड नहीं होता, इसलिए इनके लिए कोई सर्वर एंडपॉइंट नहीं है। सीधे एम्बेड करें:
<iframe src="https://presend.pages.dev/tools/exif-remover?embed=1" width="100%" height="600" frameborder="0" ></iframe>
उपलब्ध टूल्स
File Hash Checker
SHA-256 / SHA-1 / SHA-512 — server API available
URL Cleaner
Strip tracking params — server API available
IP Geolocation
IP, location, currency — server API available
UUID Generator
Random UUIDs — server API available
Base64 Encoder/Decoder
Encode/decode text — server API available
JWT Decoder
Decode JWT tokens — server API available
Timestamp Converter
Unix/ISO date conversion — server API
Color Converter
Hex/RGB/HSL — server API
User-Agent Parser
Browser/OS detection — server API
Password Generator API
Secure passwords with entropy — server API
Email Validator
Syntax + MX record check — server API
Favicon Fetcher
Get any site's favicon — server API
CSV/JSON Converter
Bidirectional — server API
Password Breach Check
HIBP-powered — server API
Disposable Email Detector
576+ known domains — server API
Security Headers Analyzer
CSP, HSTS grade — server API
URL Reputation Check
Malware/phishing lookup — server API
Attack Surface Discovery
Passive subdomain enum — server API
EXIF Remover
Strip GPS and metadata from photos (client-side)
PDF Compress
Reduce PDF file size (client-side)
Password Generator
Cryptographically secure passwords (client-side)
GET /api/api-stats
Public usage counters per endpoint, aggregated by day. No cookies, no IP stored.
curl "https://presend.pages.dev/api/api-stats"
npm पैकेज
एक निर्भरता-मुक्त JS क्लाइंट जो ऊपर के सभी एंडपॉइंट्स को रैप करता है।
npm install presend-api
const presend = require('presend-api');
const { uuids } = await presend.generateUuid(3);
एम्बेड करने योग्य विजेट
अपनी साइट पर सीधे एक काम करने वाला टूल जोड़ें — बिना iframe के, सीधे हमारे API द्वारा संचालित। समर्थित: url-cleaner, uuid, color।
<div data-presend-tool="url-cleaner"></div> <script src="https://presend.pages.dev/widget.js" async></script>
जोड़ें data-badge="false" "Powered by Presend" क्रेडिट लिंक छिपाने के लिए।
OpenAPI स्पेसिफिकेशन
सभी सर्वर-साइड एंडपॉइंट्स के लिए मशीन-रीडेबल स्पेसिफिकेशन: openapi.json
ओपन सोर्स
सभी टूल्स ओपन सोर्स हैं। GitHub पर योगदान करें या अपने प्रोजेक्ट्स के लिए फोर्क करें। github.com/presendapp/presend