MIXEDER For Developers
MixederCloud MIXEDERGrapesFilesLogin to console
MixederCloud Docs
MixederCloud Docs
  • 👋MIXEDER For Developersへようこそ!
  • まずはここから!
    • StartFromBeginner
  • 🍇GrapeAPI
    • GrapesAPIについて
    • GrapesAPIs 利用規約
    • APIリファレンス
      • GrapeQRAPI リファレンス
      • GrapeFaviconAPI リファレンス
      • GrapeAvaterAPI リファレンス
        • GrapesAPI サンプルコード
      • GrapesAPI(個人向け) リファレンス
    • Swagger
  • Conversion API
    • Conversion APIとは?
    • APIドキュメント
      • SVG Via PNG API
      • PNG Via HEIC API
      • HTML to PDF API
  • 🌍MixederPublicAPIs
    • MixederPublicAPIについて
    • サンプルコードを利用する前に
    • APIリファレンス
      • WhoisAPI
        • WhoisAPI TLDリスト
      • ConvertAPI
      • TimeZoneAPI
      • WEBFetchAPI
      • NETRecordAPI
      • WebInfoAPI
      • ImageConvertAPI
      • Profanity Detection and Cleaning API
      • Similarity Determination API
      • API利用料金
      • JSON Scalable Database (JSDB) API
        • ログイン・サインインシステムのサンプル
        • シンプルなメモ帳のサンプル
        • JSDB V1とV2の相違点
      • JSON Database API V2
        • JSONDB Login System (Node.js)
        • JSONDB管理アプリの紹介
      • EventFront MAIL API ドキュメント
  • 🐣TinytoolsAPI
    • TINYTOOLSAPIについて
    • TINYTOOLSAPI for Enterpriceについて(英語)
  • Product Guides
    • 📪How to configure MTM(Mixeder Traffic Manager) with MixederWaterStorage
      • VMC Machine specs per plan
    • MIXEDER ISSHとは?
    • 🖥️開発者向けAPIの公開について
    • 📎MixederIAM(Permissions)
  • MixederCloudのサービス料金・お支払サイクルについて
  • MixederCloudでウェブサイトを作成しよう
    • 🏋️MixederCloudでウェブサイトを作成しよう
GitBook提供
このページ内
  • ConvertAPI リファレンス
  • サービス名
  • 利用用途
  • API エンドポイント
  • パラメータ
  • 利用方法
  • サンプルレスポンス
  • サンプルコード
  • エラーメッセージ
  • 注意事項

役に立ちましたか?

  1. MixederPublicAPIs
  2. APIリファレンス

ConvertAPI

ConvertAPI リファレンス

サービス名

ConvertAPI

利用用途

ConvertAPIは、指定した画像ファイルをアスキーアート(ASCII Art)に変換するAPIです。アスキーアートは、画像の輝度情報を基に文字を組み合わせて生成される視覚的表現で、画像をテキスト形式に変換して表示したい場合に利用されます。

このAPIの利用にはAPIキーが必要ですが、料金は発生しません。また、請求書にも記載されません。


API エンドポイント

https://events-front.mixeder.net/ConvertAPI/

パラメータ

パラメータ
必須
説明

key

必須

利用者のAPIキー

from

必須

変換する画像ファイルのURL


利用方法

  1. 有効なAPIキーを用意します。

  2. 変換したい画像のURLをfromパラメータに指定します。

  3. 上記のパラメータを使ってリクエストを送信すると、アスキーアートが返されます。


サンプルレスポンス

@@@@@@@@@@@@@@@@@@
@@&&&*******::::::
@@&&&*******::::::
@@@@@@@@@@@@@@@@@@

サンプルコード

cURL

curl "https://events-front.mixeder.net/ConvertAPI/?key=YOUR_API_KEY&from=https://example.com/sample.jpg"

Node.js

const https = require('https');

const url = 'https://events-front.mixeder.net/ConvertAPI/?key=YOUR_API_KEY&from=https://example.com/sample.jpg';

https.get(url, (res) => {
    let data = '';
    res.on('data', (chunk) => {
        data += chunk;
    });
    res.on('end', () => {
        console.log(data);
    });
}).on('error', (err) => {
    console.error('Error: ' + err.message);
});

Python

import requests

url = "https://events-front.mixeder.net/ConvertAPI/"
params = {
    "key": "YOUR_API_KEY",
    "from": "https://example.com/sample.jpg"
}

response = requests.get(url, params=params)
if response.status_code == 200:
    print(response.text)
else:
    print(f"Error: {response.status_code}")

エラーメッセージ

  • API Key not provided.: APIキーが指定されていません。

  • Query[From] not provided.: 画像のURLが指定されていません。

  • API key is wrong: APIキーが無効です。


注意事項

  • 画像ファイルのURLは外部から直接参照できる形式である必要があります。

  • 適切なAPIキーを使用しないと、リクエストは拒否されます。


これで、ConvertAPIを利用して画像をアスキーアートに変換するための手順が整いました。

前へWhoisAPI TLDリスト次へTimeZoneAPI

最終更新 6 か月前

役に立ちましたか?

🌍