コンテンツにスキップ

Getting Started with The Numerology API – クイックスタートチュートリアル

The Numerology APIへようこそ!この包括的なガイドでは、最初の数秘術計算をわずか数分で成功させるまでを支援します。数秘術アプリ占星術サイト日刊ホロスコーププラットフォームスピリチュアルウェルネスツールのいずれを構築している場合でも、100以上のエンドポイントを備えたAPIを使用すると、プロ級の数秘術的洞察を簡単に追加できます。

The Numerology APIを選ぶ理由

  • 100以上のエンドポイントライフパスナンバーデスティニー/エクスプレッションナンバーハーツデザイア(ソウルアージ)パーソナリティナンバーアティテュードナンバーカルミックデットカルミックレッスンパーソナルイヤーエッセンスサイクルマイナーエクスプレッションブリッジナンバーなど。
  • ピタゴラス数秘術システム:正確で実績のある計算と、マスターナンバー(11、22、33)のサポート。
  • RapidAPI対応:シンプルなサブスクリプション、信頼性の高い稼働時間、スケーラブルな料金プラン(無料プランあり)。
  • デベロッパーフレンドリー:GETおよびPOSTメソッド、JSONレスポンス、任意の言語で簡単に統合可能。

ステップバイステップ:サインアップしてAPIキーを取得

  1. 公式の The Numerology API on RapidAPI にアクセス
  2. 「Subscribe to Test」 をクリックし、プランを選択:
  3. Basic(無料) – 月100リクエスト – テストに最適
  4. Pro – 月130,000リクエスト
  5. Ultra(推奨) – 月550,000リクエスト
  6. Mega – 月2,000,000リクエスト
  7. サブスクライブ後、「Endpoints」タブから X-RapidAPI-Key をコピー。

最初のリクエスト:ライフパスナンバーの計算

ライフパスナンバーは数秘術において最も重要な数字の一つです。GETエンドポイントを使用して計算する方法をご紹介します。

Pythonの例

import requests

url = "https://the-numerology-api.p.rapidapi.com/life_path"

# 例:1990年5月15日生まれ
querystring = {
    "birth_year": "1990",
    "birth_month": "5",
    "birth_day": "15"
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY_HERE",
    "X-RapidAPI-Host": "the-numerology-api.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

if response.status_code == 200:
    data = response.json()
    print(f"Life Path Number: {data['life_path_number']}")
    print(f"Summary: {data['summary']}")
    print(f"Detailed Meaning: {data['detailed_meaning']}")
else:
    print(f"Error: {response.status_code} - {response.text}")

期待される出力(1997-08-17の場合):

{
  "life_path_number": 11,
  "summary": "The life path number 11 is a master number that represents intuition, spirituality, and enlightenment...",
  "detailed_meaning": "Master Number 11 represents intuition, inspiration, and spiritual insight..."
}

JavaScript(Fetch)の例

const url = "https://the-numerology-api.p.rapidapi.com/life_path";

const options = {
  method: 'GET',
  headers: {
    'X-RapidAPI-Key': 'YOUR_API_KEY_HERE',
    'X-RapidAPI-Host': 'the-numerology-api.p.rapidapi.com'
  },
  // Query parameters
  // Add as URL search params
};

fetch(`${url}?birth_year=1990&birth_month=5&birth_day=15`, options)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

POSTリクエストの代替(JSONボディ)

多くのエンドポイントはGETとPOSTの両方をサポートしています。ライフパスのPOSTバージョンはこちら:

payload = {
    "birth_year": 1990,
    "birth_month": 5,
    "birth_day": 15
}

response = requests.post(url, json=payload, headers=headers)

よくあるエラーとトラブルシューティング

  • 401 Unauthorized:APIキーとサブスクリプションの状態を確認。
  • 400 Bad Request:必要なパラメータが存在し、正しい形式であることを確認。
  • 429 Too Many Requests:プランの制限を超過 – アップグレードでより多くのリクエストが可能。

次のステップ

最初の呼び出しが成功したら、以下の人気エンドポイントを試してみましょう:

すべての100以上のエンドポイントを見るには、完全な APIリファレンス をご覧ください。

何か素晴らしいものを構築する準備はできましたか?数秘術計算占星術機能パーソナライズされたホロスコープの統合を今すぐ始めましょう!


Tags: #numerologyapi #lifepathnumber #destinynumber #numerologytutorial #pythonapi #rapidapi #spiritualapp #astrologyapi #horoscopeapi #gettingstarted #pythagoreannumerology #masternumbers