知識・楽しみ

Fortune・Cowsay API

愉快なAPIでユーモアと英知を解き放て!🐮✨ランダム格言・ASCIIカウを99.99%稼働保証で。

リクエストヘッダー

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required fortune-and-cowsay-api.p.rapidapi.com

エンドポイント

GET /v1/fortune/plain

プレーンフォーチュン

コード例

curl --request GET \
  --url 'https://fortune-and-cowsay-api.p.rapidapi.com/v1/fortune/plain' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: fortune-and-cowsay-api.p.rapidapi.com'
GET /v1/fortune/cowsay

Cowsay付き

コード例

curl --request GET \
  --url 'https://fortune-and-cowsay-api.p.rapidapi.com/v1/fortune/cowsay' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: fortune-and-cowsay-api.p.rapidapi.com'
GET /v1/fortune/random-cow

ランダムカウ

コード例

curl --request GET \
  --url 'https://fortune-and-cowsay-api.p.rapidapi.com/v1/fortune/random-cow' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: fortune-and-cowsay-api.p.rapidapi.com'

インタラクティブな例

fortune-and-cowsay-api
$ GET /v1/fortune/plain
{
    "fortune": "\"I'm in Pittsburgh.  Why am I here?\"\n\t\t-- Harold Urey, Nobel Laureate"
}

統合と使用ガイド

Unleash humor and wisdom with our playful API! 🐮✨ Delivering random fortunes and ASCII cow graphics with 99.99% guaranteed uptime.

🚀 API Endpoints

1. Get Plain Fortune

GET /v1/fortune/plain

Response:

{
    "fortune": "\"I'm in Pittsburgh.  Why am I here?\"\n\t\t-- Harold Urey, Nobel Laureate"
}

2. Fortune with Cowsay

GET /v1/fortune/cowsay

Response:

{
    "fortune": "_________________________________________ \n/ Today's scientific question is: What in \\\n| the world is electricity?               |\n|                                         |\n| And where does it go after it leaves    |\n| the toaster?                            |\n|                                         |\n\\ -- Dave Barry, \"What is Electricity?\"   /\n ----------------------------------------- \n        \\   ^__^\n         \\  (oo)\\_______\n            (__)\\       )\\/\\\n                ||----w |\n                ||     ||"
}

3. Random Cow Fortune

GET /v1/fortune/random-cow

Response:

{
    "fortune": "________________________________________ \n/ User n.:                               \\\n|                                        |\n| A programmer who will believe anything |\n\\ you tell him.                          /\n ---------------------------------------- \n          \\      (__)      \n           \\     /oo|  \n            \\   (_\"_)*+++++++++*\n                   //I#\\\\\\\\\\\\\\\\I\\\n                   I[I|I|||||I I `\n                   I`I'///'' I I\n                   I I       I I\n                   ~ ~       ~ ~\n                     Scowleton"
}

4. Custom Cowsay Message

GET /v1/cowsay?text=Hello%20Foobar

Response:

{
    "fortune": "______________\n< Hello Foobar >\n --------------\n        \\   ^__^\n         \\  (oo)\\_______\n            (__)\\       )\\/\\\n                ||----w |\n                ||     ||"
}

🌟 Key Features

  • Random Fortunes: Unique, witty quotes
  • Multiple Styles: Plain text and ASCII cow graphics
  • Custom Messages: Generate your own cowsay fortunes
  • Enterprise Reliability: 99.99% uptime guarantee

購読してライセンスを取得する

RapidAPI の商用利用可能な層を使用して、この API にアクセスします。サイドプロジェクト、スタートアップ、大量生産アーキテクチャ向けに設計された柔軟なプラン。

価格を確認して購読する

開発者サポート

統合にヘルプが必要ですか? またはカスタム エンドポイント リクエストがありますか?当社のエンジニアリング チームは、認証、ペイロード スキーマ、および高頻度のレート制限の引き上げを支援します。

API エンジニアリングへのお問い合わせ

システムパフォーマンス

99.9% の稼働時間 SLA で 24 時間年中無休で監視されます。グローバルに分散されたエッジ キャッシュを備えたクラウドネイティブのマイクロサービス上に構築され、超低遅延の応答時間を保証します。

すべてのシステムが稼働中