一覧
一覧
処理概要
エンドポイント
パラメータ
| パラメータ | 意味 | |
|---|---|---|
| o | 任意 | アウト形式:デフォjson json | text |
| l | 任意 | 文字列数 |
| c | 任意 | 生成数 |
サンプル
% curl https://mtool.work/api/random?l=5&c=5
["ysLeJ","uYGjg","Tlaeb","eqold","fsWJY"]
戻り
DhlcnGAw
[
"2rFfdgqp",
"94TzN7gl"
]
2rFfdgqp,94TzN7gl
処理概要
エンドポイント
パラメータ
サンプル
% curl https://mtool.work/api/ip
1.2.3.4
戻り
IPアドレス
処理概要
エンドポイント
パラメータ
| パラメータ | 意味 | |
|---|---|---|
| i | 必須 | IPアドレス |
| m | 必須 | マスク |
サンプル
% curl "https://mtool.work/api/netmask?i=192.168.1.1&m=255.255.255.0"
{
"ip_bit" : "24",
"ip_network_wildcard" : "0.0.0.255",
"mask" : "255.255.255.0",
"ip_network_first_ip" : "192.168.1.0",
"network_host_count" : 254,
"ip" : "192.168.1.1",
"ip_hosts_last_ip" : "192.168.1.254",
"ip_cidr" : "192.168.1.0/24",
"status" : 0,
"ip_network_last_ip" : "192.168.1.255",
"range_count" : 256,
"ip_hosts_first_ip" : "192.168.1.1"
}
戻り:成功時
{
"status":0
"ip":"192. 168.1.1",
"mask":"255.255.255.0",
"network_host_count":254,
"ip_cidr":"192.168.1.0\/24",
"ip_bit":"24",
"ip_network_wildcard":"0.0.0.255",
"ip_network_first_ip":"192.168.1.0",
"ip_network_last_ip":"192.168.1.255",
"ip_hosts_first_ip":"192.168.1.1",
"ip_hosts_last_ip":"192.168.1.254",
"range_count":256
}
戻り:エラー時
{
"status":1,
"msg":"mask\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002"
}
処理概要
エンドポイント
| パラメータ | 意味 |
|---|---|
| mp3 | 音声 |
| mp4 | 動画 |
パラメータ
| パラメータ | 意味 | |
|---|---|---|
| u | 必須 | URL |
| t | 任意 | タイトル 1:入れる 0:入れない |
| q | 任意 | クオリティー:デフォ0(最高) 0-9 |
| k | 必須 | アクセスキー |
サンプル
$ curl https://mtool.work/api/mp3?u=[URL]&k=XXXXX
{
"status":0,
"url":" https:\/\/mtool.work\/[download link]",
"id":" [youtube id]",
"format":" [mp3|mp4]"
}
戻り:成功時
$ curl https://mtool.work/api/mp3?u=[URL]&k=XXXXX
{
"status":0,
"url":" https:\/\/mtool.work\/[download link]",
"id":" [youtube id]",
"format":" [mp3|mp4]"
}
戻り:エラー時
$ curl https://mtool.work/api/mp3?u=[URL]&k=XXXXX
{
"status":2
}
処理概要
エンドポイント
パラメータ
| パラメータ | 意味 | |
|---|---|---|
| u | 必須 | 短縮URL |
サンプル
$ curl https://mtool.work/api/urlcheck?u=https://bit.ly/37DV0Z3
{
"url":"https:\/\/mtool.work\/",
"status":0
}
戻り:成功時
$ curl https://mtool.work/api/urlcheck?u=https://bit.ly/37DV0Z3
{
"url":"https:\/\/mtool.work\/",
"status":0
}
戻り:エラー時
$ curl https://mtool.work/api/urlcheck?u=https://bit.ly/37DV0Z3
{
"status":2,
"url":"\u77ed\u7e2eURL\u3092\u6b63\u3057\u304f\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u2026"
}
処理概要
エンドポイント
パラメータ
| パラメータ | 意味 | |
|---|---|---|
| b | 任意 | バックグランド・カラー(デフォ:#ffffff) |
| f | 任意 | フロント・カラー デフォ:#000000 |
| s | 任意 | サイズ デフォ:80px |
| e | 任意 | エラーレベル デフォ:HIGH |
| o | 任意 | 出力形式 デフォ:img タグ付き:tag Base64:b64 |
サンプル
$ curl https://mtool.work/api/qr/0123456789?o=b65
data:image/png;base64,iVBORw0KGgoAAAANSUh・・・QmCC
$ curl https://mtool.work/api/qr/0123456789?b=000&f=fff&o=tag
