Utilorax 开发者 API
一个免费、快速的 JSON API,涵盖日常开发者工具——哈希、单位转换、文本工具、计算器、网页查询、生成器以及真实文件转换。一个密钥,每月数千次调用。
获取你的免费 API 密钥
注册一个免费账户——每个账户一个密钥,用量和套餐都在你的控制台里。
免费方案:每个密钥每月 500 次请求。无密钥时可每天试用 10 次。额度在每月 1 日(UTC)重置。
方案与价格
免费开始。随时升级以获得更高的每月额度——只需为方案付费,所有接口保持不变。
- 全部 203+ 个端点
- 无需信用卡
- 每月重置(UTC)
- 全部 203+ 个端点
- 可商用
- 每月重置(UTC)
- 全部 203+ 个端点
- 可商用
- 每月重置(UTC)
- 全部 203+ 个端点
- 可商用
- 每月重置(UTC)
升级需要免费账户——请先在上方创建账户,然后在控制台中升级。付款确认后方案立即生效;由 Paddle 提供安全结账。可随时通过 Paddle 收据邮件取消。
需要定制套餐?
告诉我们您的项目和预计用量,我们会为您提供定制报价。
快速上手
每个响应都是带有 "ok" 标志和 "result" 的 JSON。无需密钥,现在就试试:
curl "https://utilorax.com/zh/api/v1/calc/bmi?weight=70&height=175"使用你的密钥即可享受完整配额——将其作为请求头发送:
curl -H "X-API-Key: YOUR_KEY" \
"https://utilorax.com/zh/api/v1/convert/length?from=meters&to=feet&value=10"Prefer to generate a client? The full OpenAPI 3.1 specification describes every endpoint, parameter and response.
转换器
在 14 个计量家族之间转换数值——长度、重量、温度、体积、数据、速度等等。
GET
/api/v1/convert/categories
列出所有单位分类及其单位。
curl "https://utilorax.com/zh/api/v1/convert/categories" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/convert/{category}
在两个单位之间转换数值。分类:长度、重量、温度、体积、面积、速度、数据、时间、压力、能量、角度、功率、频率、力。
| 参数 | 必填 | 说明 |
|---|---|---|
from | 是 | Source unit slug, e.g. meters |
to | 是 | Target unit slug, e.g. feet |
value | 是 | The number to convert |
curl "https://utilorax.com/zh/api/v1/convert/{category}?from=meters&to=feet&value=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/convert/currency
使用实时汇率在货币之间转换金额。
| 参数 | 必填 | 说明 |
|---|---|---|
from | 是 | ISO code, e.g. USD |
to | 是 | ISO code, e.g. EUR |
value | 是 | Amount |
curl "https://utilorax.com/zh/api/v1/convert/currency?from=USD&to=EUR&value=100" \
-H "X-API-Key: YOUR_KEY"
开发者
日常开发者工具箱:哈希、Base64、URL 编码、JSON 工具、CSV 转 JSON、UUID 以及 JWT 解码。
GET
/api/v1/dev/hash
使用指定算法对文本进行哈希。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Text to hash |
algo | 否 | md5, sha1, sha256 (default), sha512, sha384, sha224, crc32b, ripemd160 |
curl "https://utilorax.com/zh/api/v1/dev/hash?text=hello&algo=sha256" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/dev/hash-all
一次返回 MD5、SHA-1、SHA-256、SHA-512 和 CRC32。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Text to hash |
curl "https://utilorax.com/zh/api/v1/dev/hash-all?text=hello" \
-H "X-API-Key: YOUR_KEY"
POST
/api/v1/dev/hmac
计算 HMAC 签名。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Message |
key | 是 | Secret key |
algo | 否 | Algorithm (default sha256) |
curl -X POST "https://utilorax.com/zh/api/v1/dev/hmac" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","key":"secret-key","algo":"sha256"}'
POST
/api/v1/dev/bcrypt
使用 bcrypt 对密码进行哈希。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Password |
cost | 否 | Cost factor 4-15 (default 10) |
curl -X POST "https://utilorax.com/zh/api/v1/dev/bcrypt" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"my-password","cost":"10"}'
GET
/api/v1/dev/uuid
生成随机 UUID v4 值。
| 参数 | 必填 | 说明 |
|---|---|---|
count | 否 | How many (1-100, default 1) |
curl "https://utilorax.com/zh/api/v1/dev/uuid?count=3" \
-H "X-API-Key: YOUR_KEY"
POST
/api/v1/dev/base64
编码或解码 Base64。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/dev/base64" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","mode":"encode"}'
POST
/api/v1/dev/url-encode
对 URL 组件进行百分号编码或解码。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/dev/url-encode" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"a b&c=d","mode":"encode"}'
POST
/api/v1/dev/json-validate
检查字符串是否为有效的 JSON。
| 参数 | 必填 | 说明 |
|---|---|---|
json | 是 | JSON string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/json-validate" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"Utilorax\",\"free\":true,\"tools\":496}"}'
POST
/api/v1/dev/json-minify
压缩 JSON(同时进行校验)。
| 参数 | 必填 | 说明 |
|---|---|---|
json | 是 | JSON string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/json-minify" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"Utilorax\",\"free\":true,\"tools\":496}"}'
POST
/api/v1/dev/json-format
使用 2 个空格缩进美化 JSON。
| 参数 | 必填 | 说明 |
|---|---|---|
json | 是 | JSON string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/json-format" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"Utilorax\",\"free\":true,\"tools\":496}"}'
POST
/api/v1/dev/json-to-typescript
从 JSON 样本生成 TypeScript 接口。
| 参数 | 必填 | 说明 |
|---|---|---|
json | 是 | JSON string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/json-to-typescript" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"Utilorax\",\"free\":true,\"tools\":496}"}'
POST
/api/v1/dev/csv-to-json
将 CSV 文本转换为对象的 JSON 数组。
| 参数 | 必填 | 说明 |
|---|---|---|
csv | 是 | CSV text (first row = header) |
delimiter | 否 | Field delimiter (default ,) |
curl -X POST "https://utilorax.com/zh/api/v1/dev/csv-to-json" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"csv":"name,city\nAda,London\nAlan,Cambridge","delimiter":","}'
POST
/api/v1/dev/jwt-decode
解码 JWT 的头部和载荷(不校验签名)。
| 参数 | 必填 | 说明 |
|---|---|---|
token | 是 | The JWT string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/jwt-decode" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}'
POST
/api/v1/dev/argon2
使用 Argon2id 对密码进行哈希。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Password |
curl -X POST "https://utilorax.com/zh/api/v1/dev/argon2" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"my-password"}'
POST
/api/v1/dev/password-verify
根据 bcrypt/Argon2 哈希校验密码。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Password |
hash | 是 | The stored hash |
curl -X POST "https://utilorax.com/zh/api/v1/dev/password-verify" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"my-password","hash":"$2y$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy"}'
POST
/api/v1/dev/ntlm
计算 NTLM 哈希。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Password |
curl -X POST "https://utilorax.com/zh/api/v1/dev/ntlm" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"my-password"}'
POST
/api/v1/dev/mysql
计算 MySQL PASSWORD() 哈希。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Password |
curl -X POST "https://utilorax.com/zh/api/v1/dev/mysql" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"my-password"}'
POST
/api/v1/dev/markdown-to-html
将 Markdown 转换为 HTML。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Markdown |
curl -X POST "https://utilorax.com/zh/api/v1/dev/markdown-to-html" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"# Utilorax\n\nA **free** developer API."}'
POST
/api/v1/dev/xml-to-json
将 XML 转换为 JSON。
| 参数 | 必填 | 说明 |
|---|---|---|
xml | 是 | XML string |
curl -X POST "https://utilorax.com/zh/api/v1/dev/xml-to-json" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"xml":"<note><to>Ada</to><body>Hello</body></note>"}'
POST
/api/v1/dev/regex-test
针对文本测试正则表达式。
| 参数 | 必填 | 说明 |
|---|---|---|
pattern | 是 | Delimited pattern, e.g. /ab+c/i |
text | 是 | Subject text |
curl -X POST "https://utilorax.com/zh/api/v1/dev/regex-test" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pattern":"/[a-z]+@[a-z]+\\.[a-z]{2,}/i","text":"write to [email protected] today"}'
GET
/api/v1/dev/color-palette
从某个颜色生成明暗色调。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | A HEX colour like #4f7cff |
curl "https://utilorax.com/zh/api/v1/dev/color-palette?value=%234f7cff" \
-H "X-API-Key: YOUR_KEY"
文本
转换并分析文本:更改大小写、生成 slug、统计字数、反转、排序行、去重、查找和替换。
POST
/api/v1/text/case
更改文本大小写。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | upper, lower, title, sentence, camel, pascal, snake, kebab |
curl -X POST "https://utilorax.com/zh/api/v1/text/case" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","mode":"upper"}'
POST
/api/v1/text/slugify
将文本转换为干净的 URL slug。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/slugify" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax!"}'
POST
/api/v1/text/word-count
统计字数、字符数、句子数、行数和阅读时间。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/word-count" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax"}'
POST
/api/v1/text/reverse
按字符、单词或行反转文本。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
by | 否 | characters (default), words or lines |
curl -X POST "https://utilorax.com/zh/api/v1/text/reverse" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","by":"characters"}'
POST
/api/v1/text/sort-lines
按字母顺序排序行。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
order | 否 | asc (default) or desc |
case_insensitive | 否 | 1 to ignore case |
curl -X POST "https://utilorax.com/zh/api/v1/text/sort-lines" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"banana\napple\ncherry","order":"asc"}'
POST
/api/v1/text/dedupe
移除重复行。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/dedupe" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"apple\nbanana\napple\ncherry"}'
POST
/api/v1/text/remove-empty
移除空行。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/remove-empty" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"one\n\ntwo\n\n\nthree"}'
POST
/api/v1/text/trim
去除每行首尾的空白字符。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/trim" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":" padded line \n another "}'
POST
/api/v1/text/find-replace
查找并替换文本。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
find | 是 | Text to find |
replace | 否 | Replacement (default empty) |
curl -X POST "https://utilorax.com/zh/api/v1/text/find-replace" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","find":"World","replace":"Everyone"}'
POST
/api/v1/text/extract-emails
从文本中提取所有电子邮件地址。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/extract-emails" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Contact [email protected] or [email protected] for details."}'
POST
/api/v1/text/extract-urls
从文本中提取所有 URL。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/extract-urls" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"See https://utilorax.com and https://utilorax.com/api for more."}'
POST
/api/v1/text/strip-html
移除 HTML 标签,仅保留纯文本。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | HTML input |
curl -X POST "https://utilorax.com/zh/api/v1/text/strip-html" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"<p>Hello <strong>World</strong></p>"}'
POST
/api/v1/text/add-line-numbers
为每一行添加行号前缀。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
start | 否 | Starting number (default 1) |
curl -X POST "https://utilorax.com/zh/api/v1/text/add-line-numbers" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"first\nsecond\nthird","start":"1"}'
POST
/api/v1/text/remove-line-breaks
将多行合并为一行,替换换行符。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
separator | 否 | Replacement (default space) |
curl -X POST "https://utilorax.com/zh/api/v1/text/remove-line-breaks" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"first\nsecond\nthird","separator":" "}'
POST
/api/v1/text/repeat
将文本重复 N 次。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
times | 否 | How many (default 2) |
separator | 否 | Between copies (default newline) |
curl -X POST "https://utilorax.com/zh/api/v1/text/repeat" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Utilorax","times":"3","separator":", "}'
POST
/api/v1/text/count-occurrences
统计子字符串出现的次数。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
find | 是 | Substring to count |
curl -X POST "https://utilorax.com/zh/api/v1/text/count-occurrences" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"the cat sat on the mat with the hat","find":"the"}'
POST
/api/v1/text/word-frequency
统计每个词的出现频率,按出现次数从高到低排列。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
limit | 否 | Top N words (default 50) |
curl -X POST "https://utilorax.com/zh/api/v1/text/word-frequency" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"the cat sat on the mat with the hat","limit":"5"}'
POST
/api/v1/text/unique-words
列出文本中的不重复词。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/text/unique-words" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"the cat sat on the mat with the cat"}'
计算器
以简洁的 JSON 输出常见计算:BMI、BMR、百分比、小费、折扣、VAT、利息、贷款还款和年龄。
GET
/api/v1/calc/bmi
根据体重和身高计算身体质量指数。
| 参数 | 必填 | 说明 |
|---|---|---|
weight | 是 | Weight in kg |
height | 是 | Height in cm |
curl "https://utilorax.com/zh/api/v1/calc/bmi?weight=70&height=175" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/bmr
基础代谢率(Mifflin-St Jeor)。
| 参数 | 必填 | 说明 |
|---|---|---|
weight | 是 | kg |
height | 是 | cm |
age | 是 | years |
gender | 否 | male (default) or female |
curl "https://utilorax.com/zh/api/v1/calc/bmr?weight=70&height=175&age=30&gender=male" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/percentage
某个值的 P% 是多少。
| 参数 | 必填 | 说明 |
|---|---|---|
percent | 是 | P |
value | 是 | The number |
curl "https://utilorax.com/zh/api/v1/calc/percentage?percent=15&value=200" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/percentage-of
A 是 B 的百分之几。
| 参数 | 必填 | 说明 |
|---|---|---|
a | 是 | Part |
b | 是 | Whole |
curl "https://utilorax.com/zh/api/v1/calc/percentage-of?a=25&b=200" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/percentage-change
从一个值到另一个值的百分比变化。
| 参数 | 必填 | 说明 |
|---|---|---|
from | 是 | Original |
to | 是 | New |
curl "https://utilorax.com/zh/api/v1/calc/percentage-change?from=100&to=125" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/tip
计算小费并分摊账单。
| 参数 | 必填 | 说明 |
|---|---|---|
bill | 是 | Bill amount |
tip_percent | 是 | Tip % |
people | 否 | Split between N people (default 1) |
curl "https://utilorax.com/zh/api/v1/calc/tip?bill=80&tip_percent=15&people=4" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/discount
折扣后的售价。
| 参数 | 必填 | 说明 |
|---|---|---|
price | 是 | Original price |
discount_percent | 是 | Discount % |
curl "https://utilorax.com/zh/api/v1/calc/discount?price=120&discount_percent=25" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/vat
增加或去除 VAT / 销售税。
| 参数 | 必填 | 说明 |
|---|---|---|
amount | 是 | Amount |
rate | 是 | Tax rate % |
mode | 否 | add (default) or remove |
curl "https://utilorax.com/zh/api/v1/calc/vat?amount=100&rate=20&mode=add" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/simple-interest
单利。
| 参数 | 必填 | 说明 |
|---|---|---|
principal | 是 | Principal |
rate | 是 | Annual rate % |
years | 是 | Time in years |
curl "https://utilorax.com/zh/api/v1/calc/simple-interest?principal=1000&rate=5&years=3" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/compound-interest
复利。
| 参数 | 必填 | 说明 |
|---|---|---|
principal | 是 | Principal |
rate | 是 | Annual rate % |
years | 是 | Years |
compounds_per_year | 否 | Compounds/year (default 1) |
curl "https://utilorax.com/zh/api/v1/calc/compound-interest?principal=1000&rate=5&years=3&compounds_per_year=12" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/loan
每月贷款还款额(EMI)。
| 参数 | 必填 | 说明 |
|---|---|---|
principal | 是 | Loan amount |
annual_rate | 是 | Annual interest % |
months | 是 | Term in months |
curl "https://utilorax.com/zh/api/v1/calc/loan?principal=20000&annual_rate=7.5&months=60" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/age
根据出生日期计算年龄。
| 参数 | 必填 | 说明 |
|---|---|---|
birthdate | 是 | YYYY-MM-DD |
at | 否 | Date to measure at (default today) |
curl "https://utilorax.com/zh/api/v1/calc/age?birthdate=1996-05-20" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/average
数字的平均值、中位数、最小值、最大值和总和。
| 参数 | 必填 | 说明 |
|---|---|---|
numbers | 是 | Comma or space separated numbers |
curl "https://utilorax.com/zh/api/v1/calc/average?numbers=4,8,15,16,23,42" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/standard-deviation
平均值、方差和标准差——总体和样本两种都给出,因为单说“标准差”是有歧义的。
| 参数 | 必填 | 说明 |
|---|---|---|
numbers | 是 | Comma or space separated numbers (at least two) |
curl "https://utilorax.com/zh/api/v1/calc/standard-deviation?numbers=2,4,4,4,5,5,7,9" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/quadratic
求解 ax² + bx + c = 0——实根或复根、判别式和顶点。
| 参数 | 必填 | 说明 |
|---|---|---|
a | 是 | Coefficient of x² (cannot be 0) |
b | 是 | Coefficient of x |
c | 是 | Constant term |
curl "https://utilorax.com/zh/api/v1/calc/quadratic?a=1&b=-3&c=2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/tdee
根据 Mifflin-St Jeor 基础代谢率和活动强度计算每日热量消耗(TDEE)。
| 参数 | 必填 | 说明 |
|---|---|---|
weight | 是 | Weight in kg |
height | 是 | Height in cm |
age | 是 | Age in years |
gender | 否 | male (default) or female |
activity | 否 | sedentary, light, moderate (default), active or very-active |
curl "https://utilorax.com/zh/api/v1/calc/tdee?weight=70&height=175&age=30&gender=male&activity=moderate" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/ideal-weight
按 Devine、Robinson 和 Miller 三种公式计算理想体重——三个都给,因为它们结果并不一致。
| 参数 | 必填 | 说明 |
|---|---|---|
height | 是 | Height in cm |
gender | 否 | male (default) or female |
curl "https://utilorax.com/zh/api/v1/calc/ideal-weight?height=180&gender=male" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/body-fat
按美国海军围度法计算体脂率。
| 参数 | 必填 | 说明 |
|---|---|---|
height | 是 | Height in cm |
neck | 是 | Neck circumference in cm |
waist | 是 | Waist circumference in cm |
hip | 否 | Hip circumference in cm — required for female |
gender | 否 | male (default) or female |
curl "https://utilorax.com/zh/api/v1/calc/body-fat?height=180&neck=38&waist=85&gender=male" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/future-value
一笔本金加上每月存入最终会变成多少,并单独列出所得利息。
| 参数 | 必填 | 说明 |
|---|---|---|
rate | 是 | Annual interest rate as a percentage |
years | 是 | How many years |
present_value | 否 | Starting amount (default 0) |
monthly | 否 | Monthly deposit (default 0) |
curl "https://utilorax.com/zh/api/v1/calc/future-value?present_value=1000&monthly=100&rate=6&years=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/roi
投资回报率;填入年数时还会给出年化收益率。
| 参数 | 必填 | 说明 |
|---|---|---|
cost | 是 | What it cost |
return | 是 | What it returned |
years | 否 | Holding period, for the annualised figure |
curl "https://utilorax.com/zh/api/v1/calc/roi?cost=1000&return=1500&years=3" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/margin
由成本和售价算出利润、利润率和加价率——利润率和加价率不是同一个数字。
| 参数 | 必填 | 说明 |
|---|---|---|
cost | 是 | Cost price |
price | 是 | Selling price |
curl "https://utilorax.com/zh/api/v1/calc/margin?cost=60&price=100" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/salary
时薪与年薪互换,并给出日薪、周薪和月薪。
| 参数 | 必填 | 说明 |
|---|---|---|
hourly | 否 | Hourly rate — pass this or annual |
annual | 否 | Annual salary — pass this or hourly |
hours_per_week | 否 | Default 40 |
weeks_per_year | 否 | Default 52 |
curl "https://utilorax.com/zh/api/v1/calc/salary?hourly=25" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/fuel-cost
油耗和一趟行程的花费。不限单位:公里配 km/l,或英里配 mpg。
| 参数 | 必填 | 说明 |
|---|---|---|
distance | 是 | Trip distance |
efficiency | 是 | Distance per unit of fuel |
price | 是 | Price per unit of fuel |
curl "https://utilorax.com/zh/api/v1/calc/fuel-cost?distance=300&efficiency=15&price=250" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/speed
速度、距离、时间三者留空哪个就算哪个——任意填两个即可。
| 参数 | 必填 | 说明 |
|---|---|---|
distance | 否 | Distance |
time | 否 | Time |
speed | 否 | Speed |
curl "https://utilorax.com/zh/api/v1/calc/speed?distance=120&time=2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/pace
每公里或每英里的跑步配速(已格式化),以及时速。
| 参数 | 必填 | 说明 |
|---|---|---|
distance | 是 | Distance covered |
minutes | 是 | Time taken, in minutes |
curl "https://utilorax.com/zh/api/v1/calc/pace?distance=10&minutes=50" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/mortgage
由房价、首付、利率和年限算出每月房贷还款额。
| 参数 | 必填 | 说明 |
|---|---|---|
price | 是 | Property price |
down_payment | 否 | Deposit (default 0) |
rate | 是 | Annual interest rate % |
years | 是 | Term in years |
curl "https://utilorax.com/zh/api/v1/calc/mortgage?price=300000&down_payment=60000&rate=6&years=30" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/cagr
两个数值之间的复合年增长率。
| 参数 | 必填 | 说明 |
|---|---|---|
start | 是 | Starting value |
end | 是 | Ending value |
years | 是 | Number of years |
curl "https://utilorax.com/zh/api/v1/calc/cagr?start=1000&end=2000&years=5" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/savings-goal
达成储蓄目标所需的每月存入金额。
| 参数 | 必填 | 说明 |
|---|---|---|
goal | 是 | Target amount |
rate | 是 | Annual interest rate % |
months | 是 | Months to save |
curl "https://utilorax.com/zh/api/v1/calc/savings-goal?goal=10000&rate=6&months=24" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/sip
固定每月投资的未来价值。
| 参数 | 必填 | 说明 |
|---|---|---|
monthly | 是 | Monthly contribution |
rate | 是 | Expected annual return % |
years | 是 | Years invested |
curl "https://utilorax.com/zh/api/v1/calc/sip?monthly=5000&rate=12&years=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/inflation
一笔金额在通胀之后相当于多少。
| 参数 | 必填 | 说明 |
|---|---|---|
amount | 是 | Amount today |
rate | 是 | Annual inflation % |
years | 是 | Years ahead |
curl "https://utilorax.com/zh/api/v1/calc/inflation?amount=1000&rate=5&years=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/break-even
覆盖固定成本所需的销量。
| 参数 | 必填 | 说明 |
|---|---|---|
fixed_costs | 是 | Total fixed costs |
price | 是 | Price per unit |
variable_cost | 是 | Variable cost per unit |
curl "https://utilorax.com/zh/api/v1/calc/break-even?fixed_costs=10000&price=50&variable_cost=30" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/markup
由成本加上加价率得出售价和利润率。
| 参数 | 必填 | 说明 |
|---|---|---|
cost | 是 | Unit cost |
markup_percent | 是 | Markup % |
curl "https://utilorax.com/zh/api/v1/calc/markup?cost=100&markup_percent=50" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/rule-of-72
资金翻倍、翻三倍或翻四倍所需的年数。
| 参数 | 必填 | 说明 |
|---|---|---|
rate | 是 | Annual return % |
curl "https://utilorax.com/zh/api/v1/calc/rule-of-72?rate=8" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/apy
由名义利率换算年化收益率。
| 参数 | 必填 | 说明 |
|---|---|---|
rate | 是 | Nominal annual rate % |
compounds_per_year | 否 | Compounding periods (default 12) |
curl "https://utilorax.com/zh/api/v1/calc/apy?rate=5&compounds_per_year=12" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/cd
定期存款到期时的本息合计。
| 参数 | 必填 | 说明 |
|---|---|---|
principal | 是 | Deposit amount |
rate | 是 | Annual rate % |
years | 是 | Term in years |
compounds_per_year | 否 | Compounding periods (default 12) |
curl "https://utilorax.com/zh/api/v1/calc/cd?principal=10000&rate=4&years=5&compounds_per_year=4" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/cpm
每千次展示成本。
| 参数 | 必填 | 说明 |
|---|---|---|
cost | 是 | Total spend |
impressions | 是 | Impressions delivered |
curl "https://utilorax.com/zh/api/v1/calc/cpm?cost=500&impressions=250000" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/gst
在金额上加上或扣除 GST。
| 参数 | 必填 | 说明 |
|---|---|---|
amount | 是 | Amount |
rate | 是 | GST rate % |
mode | 否 | add or remove (default add) |
curl "https://utilorax.com/zh/api/v1/calc/gst?amount=1000&rate=18&mode=add" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/sales-tax
在金额上加上或扣除销售税。
| 参数 | 必填 | 说明 |
|---|---|---|
amount | 是 | Amount |
rate | 是 | Tax rate % |
mode | 否 | add or remove (default add) |
curl "https://utilorax.com/zh/api/v1/calc/sales-tax?amount=200&rate=7.5&mode=add" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/debt-to-income
债务收入比,以及放贷方如何解读它。
| 参数 | 必填 | 说明 |
|---|---|---|
monthly_debt | 是 | Total monthly debt payments |
monthly_income | 是 | Gross monthly income |
curl "https://utilorax.com/zh/api/v1/calc/debt-to-income?monthly_debt=1500&monthly_income=5000" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/down-payment
首付金额和剩余贷款额。
| 参数 | 必填 | 说明 |
|---|---|---|
price | 是 | Purchase price |
percent | 是 | Deposit % |
curl "https://utilorax.com/zh/api/v1/calc/down-payment?price=250000&percent=20" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/property-tax
每年和每月的房产税。
| 参数 | 必填 | 说明 |
|---|---|---|
assessed_value | 是 | Assessed value |
rate | 是 | Tax rate % |
curl "https://utilorax.com/zh/api/v1/calc/property-tax?assessed_value=300000&rate=1.2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/overtime-pay
一个周期内的正常工资加加班费。
| 参数 | 必填 | 说明 |
|---|---|---|
hourly_rate | 是 | Base hourly rate |
regular_hours | 是 | Regular hours |
overtime_hours | 否 | Overtime hours (default 0) |
multiplier | 否 | Overtime multiplier (default 1.5) |
curl "https://utilorax.com/zh/api/v1/calc/overtime-pay?hourly_rate=20®ular_hours=40&overtime_hours=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/take-home-pay
扣除税费和各项扣款后的实发工资。
| 参数 | 必填 | 说明 |
|---|---|---|
gross | 是 | Gross pay |
tax_rate | 是 | Tax rate % |
deductions | 否 | Other deductions (default 0) |
curl "https://utilorax.com/zh/api/v1/calc/take-home-pay?gross=5000&tax_rate=25&deductions=200" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/payment-fee
支付渠道手续费,以及你实际到手的金额。
| 参数 | 必填 | 说明 |
|---|---|---|
amount | 是 | Transaction amount |
rate_percent | 否 | Percentage fee (default 2.9) |
fixed_fee | 否 | Fixed fee (default 0.30) |
curl "https://utilorax.com/zh/api/v1/calc/payment-fee?amount=100&rate_percent=2.9&fixed_fee=0.30" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/net-worth
资产减去负债,并给出负债率。
| 参数 | 必填 | 说明 |
|---|---|---|
assets | 是 | Total assets |
liabilities | 是 | Total liabilities |
curl "https://utilorax.com/zh/api/v1/calc/net-worth?assets=500000&liabilities=150000" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/capital-gains-tax
一笔处置的收益和应缴税款。
| 参数 | 必填 | 说明 |
|---|---|---|
sale_price | 是 | Sale price |
purchase_price | 是 | Purchase price |
fees | 否 | Costs of sale (default 0) |
rate | 是 | Tax rate % |
curl "https://utilorax.com/zh/api/v1/calc/capital-gains-tax?sale_price=50000&purchase_price=30000&fees=1000&rate=15" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/refinance
再融资需要多久才能回本。
| 参数 | 必填 | 说明 |
|---|---|---|
closing_costs | 是 | Closing costs |
monthly_saving | 是 | Monthly saving after refinancing |
curl "https://utilorax.com/zh/api/v1/calc/refinance?closing_costs=4800&monthly_saving=200" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/calc/adsense
预估广告收入和 RPM。
| 参数 | 必填 | 说明 |
|---|---|---|
pageviews | 是 | Monthly pageviews |
ctr | 是 | Click-through rate % |
cpc | 是 | Cost per click |
curl "https://utilorax.com/zh/api/v1/calc/adsense?pageviews=100000&ctr=1.5&cpc=0.40" \
-H "X-API-Key: YOUR_KEY"
网页与 SEO
检查任意 URL 或域名:HTTP 状态、响应头、meta 标签、Open Graph、DNS 记录、IP、页面大小等等。
GET
/api/v1/web/http-status
URL 的 HTTP 状态码和重定向链。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/http-status?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/http-headers
URL 的响应头。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/http-headers?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/meta-tags
页面的标题、描述和 meta 标签。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/meta-tags?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/open-graph
页面的 Open Graph 标签。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/open-graph?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/dns
域名的 DNS 记录。
| 参数 | 必填 | 说明 |
|---|---|---|
domain | 是 | The domain |
curl "https://utilorax.com/zh/api/v1/web/dns?domain=example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/ip
将域名解析为其 IP 地址。
| 参数 | 必填 | 说明 |
|---|---|---|
domain | 是 | The domain |
curl "https://utilorax.com/zh/api/v1/web/ip?domain=example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/page-size
页面的下载大小。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/page-size?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/wordpress
检测网站是否使用 WordPress。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | The URL |
curl "https://utilorax.com/zh/api/v1/web/wordpress?url=https://example.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/web/youtube
YouTube 视频的标题、频道和缩略图。
| 参数 | 必填 | 说明 |
|---|---|---|
url | 是 | Video URL or ID |
curl "https://utilorax.com/zh/api/v1/web/youtube?url=dQw4w9WgXcQ" \
-H "X-API-Key: YOUR_KEY"
生成器
按需生成实用内容:强密码、UUID、lorem ipsum、颜色、随机数、QR 码和条形码。
GET
/api/v1/generate/password
生成强随机密码。
| 参数 | 必填 | 说明 |
|---|---|---|
length | 否 | 4-128 (default 16) |
upper | 否 | 0 to exclude uppercase |
numbers | 否 | 0 to exclude digits |
symbols | 否 | 0 to exclude symbols |
curl "https://utilorax.com/zh/api/v1/generate/password?length=20" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/uuid
生成 UUID v4 值。
| 参数 | 必填 | 说明 |
|---|---|---|
count | 否 | 1-100 (default 1) |
curl "https://utilorax.com/zh/api/v1/generate/uuid?count=5" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/lorem
生成 lorem ipsum 占位文本。
| 参数 | 必填 | 说明 |
|---|---|---|
paragraphs | 否 | 1-20 (default 3) |
curl "https://utilorax.com/zh/api/v1/generate/lorem?paragraphs=2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/color
在 HEX 和 RGB 之间转换颜色。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | A HEX like #4f7cff or RGB like 79,124,255 |
curl "https://utilorax.com/zh/api/v1/generate/color?value=%234f7cff" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/random-number
在指定范围内生成随机数。
| 参数 | 必填 | 说明 |
|---|---|---|
min | 否 | Minimum (default 1) |
max | 否 | Maximum (default 100) |
count | 否 | How many (default 1) |
curl "https://utilorax.com/zh/api/v1/generate/random-number?min=1&max=6&count=2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/qr
为任意文本构建 QR 码图片 URL。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | The text or URL |
size | 否 | Pixels 64-1000 (default 300) |
curl "https://utilorax.com/zh/api/v1/generate/qr?text=https://utilorax.com" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/barcode
构建条形码图片 URL。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | The value |
type | 否 | code128 (default), ean13, upc, code39… |
curl "https://utilorax.com/zh/api/v1/generate/barcode?text=012345678905&type=code128" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/random-string
生成一个随机字符串。
| 参数 | 必填 | 说明 |
|---|---|---|
length | 否 | 1-512 (default 32) |
charset | 否 | alphanumeric (default), alpha, numeric, hex |
curl "https://utilorax.com/zh/api/v1/generate/random-string?length=24" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/token
生成一个安全的 hex 令牌。
| 参数 | 必填 | 说明 |
|---|---|---|
bytes | 否 | Entropy bytes 8-128 (default 32) |
curl "https://utilorax.com/zh/api/v1/generate/token?bytes=32" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/hsl
将 HEX 颜色转换为 HSL。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | A HEX colour like #4f7cff |
curl "https://utilorax.com/zh/api/v1/generate/hsl?value=%234f7cff" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/gradient
生成 CSS linear-gradient。
| 参数 | 必填 | 说明 |
|---|---|---|
from | 否 | Start HEX (default 4f7cff) |
to | 否 | End HEX (default 7c5cff) |
angle | 否 | Degrees (default 90) |
curl "https://utilorax.com/zh/api/v1/generate/gradient?from=4f7cff&to=12b886" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/generate/mac-address
生成随机 MAC 地址。
| 参数 | 必填 | 说明 |
|---|---|---|
separator | 否 | : (default) or - |
curl "https://utilorax.com/zh/api/v1/generate/mac-address" \
-H "X-API-Key: YOUR_KEY"
编码
在多种格式之间编码和解码:hexadecimal、binary、Morse 码、ROT13、HTML 实体和 Unicode 转义。
POST
/api/v1/encode/hex
编码或解码 hexadecimal。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/hex" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","mode":"encode"}'
POST
/api/v1/encode/binary
编码或解码 binary(8 位)。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/binary" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hi","mode":"encode"}'
POST
/api/v1/encode/rot13
应用 ROT13 密码。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
curl -X POST "https://utilorax.com/zh/api/v1/encode/rot13" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax"}'
POST
/api/v1/encode/morse
编码或解码 Morse 码。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/morse" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"SOS","mode":"encode"}'
POST
/api/v1/encode/html-entities
编码或解码 HTML 实体。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/html-entities" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"<a href=\"x\">Tom & Jerry</a>","mode":"encode"}'
POST
/api/v1/encode/unicode-escape
编码或解码 \uXXXX Unicode 转义。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/unicode-escape" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"café ☕","mode":"encode"}'
POST
/api/v1/encode/base32
编码或解码 Base32(RFC 4648)。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | Input |
mode | 否 | encode (default) or decode |
curl -X POST "https://utilorax.com/zh/api/v1/encode/base32" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello World from Utilorax","mode":"encode"}'
POST
/api/v1/encode/url-parse
将 URL 拆分为各个部分(scheme、host、path、query…)。
| 参数 | 必填 | 说明 |
|---|---|---|
text | 是 | The URL |
curl -X POST "https://utilorax.com/zh/api/v1/encode/url-parse" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"https://utilorax.com/api/v1/calc/bmi?weight=70&height=175#result"}'
日期和时间
处理日期和时间:Unix 时间戳、timezone 转换、日期差值、添加间隔以及周数。
GET
/api/v1/datetime/now
以 Unix、ISO 和 UTC 表示的当前时间。
curl "https://utilorax.com/zh/api/v1/datetime/now" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/to-timestamp
将日期字符串转换为 Unix 时间戳。
| 参数 | 必填 | 说明 |
|---|---|---|
date | 是 | Any date string, e.g. 2026-07-21 |
curl "https://utilorax.com/zh/api/v1/datetime/to-timestamp?date=2026-07-21" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/from-timestamp
将 Unix 时间戳转换为日期。
| 参数 | 必填 | 说明 |
|---|---|---|
timestamp | 是 | Unix seconds |
timezone | 否 | e.g. Europe/London (default UTC) |
curl "https://utilorax.com/zh/api/v1/datetime/from-timestamp?timestamp=1784200000" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/timezone
在不同 timezone 之间转换时间。
| 参数 | 必填 | 说明 |
|---|---|---|
date | 否 | Date/time (default now) |
from | 是 | e.g. UTC |
to | 是 | e.g. Asia/Karachi |
curl "https://utilorax.com/zh/api/v1/datetime/timezone?from=UTC&to=Asia/Karachi" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/diff
计算两个日期之间的差值。
| 参数 | 必填 | 说明 |
|---|---|---|
from | 是 | Start date |
to | 是 | End date |
curl "https://utilorax.com/zh/api/v1/datetime/diff?from=2026-01-01&to=2026-07-21" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/add
从日期加上或减去一个间隔。
| 参数 | 必填 | 说明 |
|---|---|---|
date | 否 | Base date (default now) |
add | 是 | e.g. "5 days", "-2 months" |
curl "https://utilorax.com/zh/api/v1/datetime/add?date=2026-07-21&add=10%20days" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/week-number
日期对应的 ISO 周数。
| 参数 | 必填 | 说明 |
|---|---|---|
date | 否 | Date (default today) |
curl "https://utilorax.com/zh/api/v1/datetime/week-number?date=2026-07-21" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/is-leap-year
判断某一年是否为闰年。
| 参数 | 必填 | 说明 |
|---|---|---|
year | 是 | The year |
curl "https://utilorax.com/zh/api/v1/datetime/is-leap-year?year=2028" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/days-in-month
某个月的天数。
| 参数 | 必填 | 说明 |
|---|---|---|
year | 是 | Year |
month | 是 | Month 1-12 |
curl "https://utilorax.com/zh/api/v1/datetime/days-in-month?year=2026&month=2" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/datetime/day-of-week
某个日期是星期几。
| 参数 | 必填 | 说明 |
|---|---|---|
date | 是 | The date |
curl "https://utilorax.com/zh/api/v1/datetime/day-of-week?date=2026-07-21" \
-H "X-API-Key: YOUR_KEY"
数字
在进制之间转换数字(binary、octal、decimal、hex)、Roman 数字互转,以及转换为英文单词。
GET
/api/v1/number/base-convert
在进制之间转换数字(base 2-36)。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | The number |
from | 是 | From base, e.g. 10 |
to | 是 | To base, e.g. 2 |
curl "https://utilorax.com/zh/api/v1/number/base-convert?value=255&from=10&to=16" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/roman
转换为 Roman 数字或从其转换。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | A number (1-3999) or a Roman numeral |
mode | 否 | to-roman (default) or from-roman |
curl "https://utilorax.com/zh/api/v1/number/roman?value=2026" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/to-words
用英文单词拼写数字。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | The number |
curl "https://utilorax.com/zh/api/v1/number/to-words?value=1234" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/factorial
数字的阶乘(0-170)。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | Integer 0-170 |
curl "https://utilorax.com/zh/api/v1/number/factorial?value=10" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/fibonacci
前 N 个 Fibonacci 数。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | How many (1-1000) |
curl "https://utilorax.com/zh/api/v1/number/fibonacci?value=12" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/is-prime
检查某个数字是否为素数。
| 参数 | 必填 | 说明 |
|---|---|---|
value | 是 | The number |
curl "https://utilorax.com/zh/api/v1/number/is-prime?value=97" \
-H "X-API-Key: YOUR_KEY"
GET
/api/v1/number/gcd-lcm
最大公约数(GCD)与最小公倍数(LCM)。
| 参数 | 必填 | 说明 |
|---|---|---|
a | 是 | First number |
b | 是 | Second number |
curl "https://utilorax.com/zh/api/v1/number/gcd-lcm?a=12&b=18" \
-H "X-API-Key: YOUR_KEY"
文档与媒体
通过 multipart 上传转换和处理真实文件——PDF、图片、电子表格和 Word。发送带 files[] 的 POST 请求,即可取回转换后的文件。
发送一个 multipart POST 请求,在 files[] 字段中附上一个或多个文件(并将任何工具选项作为表单字段)。转换后的文件将直接回传。每个文件上限 20 MB。
图片 42
POST
/api/v1/file/image-info
读取图像的尺寸、格式和 EXIF(返回 JSON)。
curl -X POST "https://utilorax.com/zh/api/v1/file/image-info" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/image-resize
Resize to exact dimensions.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-resize" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "width=1080" \ -F "height=1080" \ -F "fit=pad" \ -F "background=white" \
-o result
POST
/api/v1/file/image-crop
Cut a rectangle out of an image.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-crop" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "x=0" \ -F "y=0" \ -F "width=400" \ -F "height=400" \
-o result
POST
/api/v1/file/image-rotate
Rotate by any angle.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-rotate" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "degrees=90" \ -F "background=white" \
-o result
POST
/api/v1/file/image-flip
Mirror an image.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-flip" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "direction=horizontal" \
-o result
POST
/api/v1/file/image-thumbnail
Square thumbnail, cropped to fill.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-thumbnail" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "size=256" \ -F "square=1" \
-o result
POST
/api/v1/file/image-grayscale
Convert to greyscale.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-grayscale" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/image-blur
Gaussian blur.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-blur" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \ -F "sigma=3" \ -F "radius=0" \
-o result
POST
/api/v1/file/image-strip
Remove EXIF, GPS and colour profiles.
curl -X POST "https://utilorax.com/zh/api/v1/file/image-strip" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/heic-to-jpg
HEIC 转 JPG
将 iPhone 拍摄的 HEIC 照片转换为通用的 JPG 图片。
curl -X POST "https://utilorax.com/zh/api/v1/file/heic-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-png
JPG 转 PNG
将 JPG 图片转换为无损 PNG 格式。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/png-to-jpg
PNG 转 JPG
将 PNG 图片转换为体积更小的 JPG 文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/png-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/webp-to-jpg
WebP 转 JPG
将 WebP 图片转换为可在任何应用中打开的通用 JPG 文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/webp-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/image-to-webp
图片转 WebP
将 JPG 和 PNG 图片转换为轻量级 WebP 格式,加快网站加载速度。
curl -X POST "https://utilorax.com/zh/api/v1/file/image-to-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/compress-image
压缩图片
将 JPG、PNG 和 WebP 图片压缩为更小的文件体积。
curl -X POST "https://utilorax.com/zh/api/v1/file/compress-image" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/compress-jpg
压缩 JPG
在保持良好质量的同时减小 JPG 图像——压缩程度由您控制。
curl -X POST "https://utilorax.com/zh/api/v1/file/compress-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/compress-png
压缩 PNG
在保持良好质量的同时减小 PNG 图像——压缩程度由您控制。
curl -X POST "https://utilorax.com/zh/api/v1/file/compress-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/compress-webp
压缩 WebP
在保持良好质量的同时减小 WebP 图像——压缩程度由您控制。
curl -X POST "https://utilorax.com/zh/api/v1/file/compress-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/favicon-generator
Favicon 生成器
将任意图片转换为完整的 favicon 套装——favicon.ico、每种 PNG 尺寸、苹果触控图标和网页清单文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/favicon-generator" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/image-converter
图片格式转换器
在 PNG、JPG、WebP、GIF 与 BMP 之间转换图片——输出格式由你决定。
curl -X POST "https://utilorax.com/zh/api/v1/file/image-converter" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/webp-to-png
WebP 转 PNG
将 WebP 图片转换为 PNG,完整保留透明度。
curl -X POST "https://utilorax.com/zh/api/v1/file/webp-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/png-to-webp
PNG 转 WebP
将 PNG 图片转换为体积更小的 WebP 文件,同时保留透明度。
curl -X POST "https://utilorax.com/zh/api/v1/file/png-to-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-webp
JPG 转 WebP
将 JPG 照片转换为体积更小的 WebP 文件,适合用于网页。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/ico-to-png
ICO 转 PNG
将 .ico 网站图标转换为 PNG,提取其中尺寸最大的图像。
curl -X POST "https://utilorax.com/zh/api/v1/file/ico-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/avif-to-jpg
AVIF 转 JPG
免费在线把 AVIF 图像转换为 JPG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/avif-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/avif-to-png
AVIF 转 PNG
免费在线把 AVIF 图像转换为 PNG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/avif-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/avif-to-webp
AVIF 转 WebP
免费在线把 AVIF 图像转换为 WebP。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/avif-to-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/png-to-avif
PNG 转 AVIF
免费在线把 PNG 图像转换为 AVIF。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/png-to-avif" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-avif
JPG 转 AVIF
免费在线把 JPG 图像转换为 AVIF。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-avif" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/webp-to-avif
WebP 转 AVIF
免费在线把 WebP 图像转换为 AVIF。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/webp-to-avif" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/heic-to-png
HEIC 转 PNG
免费在线把 HEIC 图像转换为 PNG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/heic-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/heic-to-webp
HEIC 转 WebP
免费在线把 HEIC 图像转换为 WebP。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/heic-to-webp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/gif-to-png
GIF 转 PNG
免费在线把 GIF 图像转换为 PNG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/gif-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/gif-to-jpg
GIF 转 JPG
免费在线把 GIF 图像转换为 JPG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/gif-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/bmp-to-jpg
BMP 转 JPG
免费在线把 BMP 图像转换为 JPG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/bmp-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/bmp-to-png
BMP 转 PNG
免费在线把 BMP 图像转换为 PNG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/bmp-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/tiff-to-jpg
TIFF 转 JPG
免费在线把 TIFF 图像转换为 JPG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/tiff-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/tiff-to-png
TIFF 转 PNG
免费在线把 TIFF 图像转换为 PNG。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/tiff-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/png-to-tiff
PNG 转 TIFF
免费在线把 PNG 图像转换为 TIFF。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/png-to-tiff" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-tiff
JPG 转 TIFF
免费在线把 JPG 图像转换为 TIFF。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-tiff" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/png-to-bmp
PNG 转 BMP
免费在线把 PNG 图像转换为 BMP。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/png-to-bmp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-bmp
JPG 转 BMP
免费在线把 JPG 图像转换为 BMP。支持批量。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-bmp" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
PDF 20
POST
/api/v1/file/merge-pdf
合并 PDF
将多个 PDF 文件合并为一个文档。
curl -X POST "https://utilorax.com/zh/api/v1/file/merge-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/jpg-to-pdf
JPG 转 PDF
将您的 JPG 或 PNG 图片转换为一个 PDF 文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/jpg-to-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/compress-pdf
压缩 PDF
在保持可读性的前提下缩小 PDF 文件大小。
curl -X POST "https://utilorax.com/zh/api/v1/file/compress-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/split-pdf
拆分 PDF
将 PDF 拆分为多个独立文件——每页单独拆分,或按自定义范围拆分。
curl -X POST "https://utilorax.com/zh/api/v1/file/split-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/pdf-to-jpg
PDF 转 JPG
将 PDF 的每一页转换为 JPG 图片。
curl -X POST "https://utilorax.com/zh/api/v1/file/pdf-to-jpg" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/protect-pdf
保护 PDF
为您的 PDF 添加密码,确保只有合适的人才能打开它。
curl -X POST "https://utilorax.com/zh/api/v1/file/protect-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/unlock-pdf
解锁 PDF
移除您拥有的 PDF 文件中的密码和限制。
curl -X POST "https://utilorax.com/zh/api/v1/file/unlock-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/pdf-to-png
PDF 转 PNG
将 PDF 的每一页转换为无损 PNG 图片。
curl -X POST "https://utilorax.com/zh/api/v1/file/pdf-to-png" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/sign-pdf
PDF 签名
手写签名并将其盖印到您的 PDF 文件上。
curl -X POST "https://utilorax.com/zh/api/v1/file/sign-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/rotate-pdf
旋转 PDF
将 PDF 的每一页旋转到正确的方向。
curl -X POST "https://utilorax.com/zh/api/v1/file/rotate-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/remove-pages
删除页面
从 PDF 中删除指定的页面或页面范围。
curl -X POST "https://utilorax.com/zh/api/v1/file/remove-pages" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/extract-pages
提取页面
将指定的页面或页面范围提取为一份新的 PDF。
curl -X POST "https://utilorax.com/zh/api/v1/file/extract-pages" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/add-page-numbers
添加页码
为 PDF 的每一页盖印上页码。
curl -X POST "https://utilorax.com/zh/api/v1/file/add-page-numbers" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/watermark-pdf
PDF 水印
在每一页上斜向盖印文字水印。
curl -X POST "https://utilorax.com/zh/api/v1/file/watermark-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/repair-pdf
修复 PDF
重建损坏或受损的 PDF,使其重新能够打开。
curl -X POST "https://utilorax.com/zh/api/v1/file/repair-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/html-to-pdf
HTML 转 PDF
粘贴 HTML,下载干净、可打印的 PDF,样式、表格和图片一并保留。
curl -X POST "https://utilorax.com/zh/api/v1/file/html-to-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "text=Your text here" \
-o result
POST
/api/v1/file/markdown-to-pdf
Markdown 转 PDF
粘贴 Markdown,下载排版精美的 PDF,标题、列表、表格和代码一应俱全。
curl -X POST "https://utilorax.com/zh/api/v1/file/markdown-to-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "text=Your text here" \
-o result
POST
/api/v1/file/text-to-pdf
文本转 PDF
粘贴纯文本,下载干净的 PDF,换行和间距原样保留。
curl -X POST "https://utilorax.com/zh/api/v1/file/text-to-pdf" \
-H "X-API-Key: YOUR_KEY" \
-F "text=Your text here" \
-o result
POST
/api/v1/file/pdf-to-text
PDF 转文本
把文字从 PDF 中提取出来,下载为干净的 .txt 文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/pdf-to-text" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/pdf-to-markdown
PDF 转 Markdown
将 PDF 的文字提取为干净的 Markdown,标题和列表一并保留。
curl -X POST "https://utilorax.com/zh/api/v1/file/pdf-to-markdown" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
电子表格 3
POST
/api/v1/file/csv-to-excel
CSV 转 Excel
将 CSV 文件转换为真正的 Excel(.xlsx)工作簿。
curl -X POST "https://utilorax.com/zh/api/v1/file/csv-to-excel" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/excel-to-csv
Excel 转 CSV
将 Excel 工作簿转换为纯文本 CSV 文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/excel-to-csv" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
POST
/api/v1/file/excel-to-json
Excel 转 JSON
将表格转换为结构化的 JSON 数据(以首行作为键名)。
curl -X POST "https://utilorax.com/zh/api/v1/file/excel-to-json" \
-H "X-API-Key: YOUR_KEY" \
-F "files[][email protected]" \
-o result
文档 1
POST
/api/v1/file/text-to-word
文本转 Word
粘贴文本,下载一份可直接编辑的 Word(.docx)文件。
curl -X POST "https://utilorax.com/zh/api/v1/file/text-to-word" \
-H "X-API-Key: YOUR_KEY" \
-F "text=Your text here" \
-o result
压缩包 1
POST
/api/v1/file/zip-create
Bundle any uploaded files into one archive.
curl -X POST "https://utilorax.com/zh/api/v1/file/zip-create" \
-H "X-API-Key: YOUR_KEY" \
-F "files[]=@your-file" \
-o result
提示:GET /api/v1 会以 JSON 形式返回完整的端点列表,让你可以通过程序发现该 API。

