tryntのシンプルなAPIが激しく便利な件について
September 18, 2006 4:55 AM written by Gen Taguchi
ちょっと調べ物をしていて見つけたAPI提供サイト。これ、すごい便利なんだけどどうしよう。
現在30を超えるAPIが提供されています。
便利そうなのをいくつかピックアップ。
■ TRYNT Astrology Horoscope Web Service
星座の名前を入れるとその日の占いを返してくれるAPI。たとえばこういう入力。
http://www.trynt.com/astrology-horoscope-api/v1/?s=gemini
上記のAPIで以下の出力。
<?xml version="1.0" encoding="utf-8" ?> <Trynt> <Horoscope> <sign>Gemini</sign> <horoscope>Sacrifices can be very tricky things -- you need to make them consciously, but you never have a guarantee that they'll be worth the effort. They take a major leap of faith and should not be entered into on a whim. Charming personalities might try to get you to take that leap of faith a bit too soon today, so be cautious about any financial, career or romantic opportunities that come your way. Don't turn the sacrifice into your financial security.</horoscope> <day>Sunday</day> <date>09-17-2006</date> <day-of-year>260</day-of-year> <leap-year>0</leap-year> </Horoscope> </Trynt>
■ TRYNT Audio CAPTCHA Web Service
いわゆるCAPTCHAの音声版。4桁~7桁の数字を指定するとMP3ファイルを生成。声も女性と男性のどちらかが選べる。
入力はこれ。
http://www.trynt.com/audio-captcha-api/v1/?code=1234&v=male
出力はこれ。
<?xml version="1.0" encoding="utf-8" ?> <!-- generator="trynt.com" --> <trynt> <captcha_code>1234</captcha_code> <captcha_wav>http://captcha.trynt.com/audio-captcha/?i=58&v=7a20c6316f293da5f10aae50ce4ff686</captcha_wav> </trynt>
実際に生成される音声はこちらね。すごくない?
■ TRYNT Google Pagerank Web Service
これが探していたAPI。URLからGoogleのPRを算出してくれるものです。
たとえばこれ。
http://www.trynt.com/google-pagerank-api/v1/?u=http%3A%2F%2Fwww.100shiki.com%2F
出力はこちら。
<?xml version="1.0" encoding="utf-8"?> <Trynt> <Pagerank>6</Pagerank> </Trynt>
他にも画像からEXIF情報抜いたり、その画像でもっとも使われている色を抜き出したり、MP3のタグ情報抜いたり・・・。
はげしく便利。今月の開発合宿はこれをいじってみたい。みなさんもよろしければどうぞ。これ、すごくない?
Info: 便利ツール |
固定リンク |
コメント (0) |
トラックバック (2) |
↑



