MongoDB 互換の Firestore Enterprise エディションが利用可能になりました。
詳細
SDK とクライアント ライブラリ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、Firebase API で利用できる SDK とクライアント ライブラリについて説明します。Firebase API に対して直接 HTTP 呼び出しと RPC 呼び出しを実行できますが、Firebase クライアント ライブラリにはユーザー向けのベスト プラクティスが実装されているため、データベースへのアクセスが容易になります。
Firebase は、モバイル SDK またはウェブ SDK とサーバー クライアント ライブラリをサポートしています。
モバイル SDK とウェブ SDK
Firebase は、Android、iOS、ウェブ用の SDK をサポートしています。Firebase セキュリティ ルールと Firebase Auth を組み合わせると、モバイル SDK とウェブ SDK でサーバーレス アプリ アーキテクチャがサポートされ、これによりクライアントは Firebase データベースに直接接続できます。サーバーレス アーキテクチャでは、クライアントと Firebase データベース間に中間サーバーを維持する必要はありません。
モバイル SDK とウェブ SDK は、リアルタイムの更新とオフライン データの永続性もサポートしています。
Android SDK、Apple プラットフォーム SDK、またはウェブ SDK の使用を開始するには、
Firebase を使ってみるをご覧ください。
リファレンスとリソース
各 SDK の詳細については、次のリソースをご覧ください。
ウェブ
Firebase には、標準のクライアント SDK のほかに、REST 専用の軽量な SDK である Firestore Lite も用意されています。
サーバー クライアント ライブラリ
Firebase は、C#、Go、Java、Node.js、PHP、Python、Ruby 用のサーバー クライアント ライブラリをサポートしています。特権的サーバー環境を設定するには、これらのクライアント ライブラリを使用します。
サーバー クライアント ライブラリは、データベースへの完全アクセス権を備えた特権的な Firebase 環境を作成します。この環境では、Firebase のセキュリティ ルールによってリクエストが評価されることはありません。特権的 Firebase サーバーは、Identity and Access Management(IAM)を使用して保護されます。サーバー クライアント ライブラリのセキュリティをご覧ください。
サーバー クライアント ライブラリはデータベースの管理タスク用に使用します。また、ユーザーと Firebase データベースの間に中間サーバーを配置したアーキテクチャが望ましい場合にも使用します。
Firebase サーバー クライアント ライブラリは、Firebase Admin SDK および Google Cloud クライアント ライブラリとして提供されています。両方のライブラリ セットには Firebase の同じ機能が用意されています。Firebase Admin SDK は、Firebase と他のいくつかの Firebase プロダクト(Firebase Auth や Firebase Cloud Messaging など)へのアクセスを単一のライブラリにまとめたものです。
Firebase Admin SDK
Firebase Admin SDK には、Firebase 用の Google Cloud クライアント ライブラリと、その他のいくつかの Firebase 機能用のクライアント ライブラリおよび SDK がバンドルされています。いずれかの Admin SDK を使用して、単一の SDK から Firebase や他のいくつかのサービスへのアクセスを初期化できます。Firebase Admin SDK は、Java、Python、Node.js、Go を使用した Firebase へのアクセスをサポートしています。
Firebase Admin SDK の使用を開始するには、サーバーに Firebase Admin SDK を追加するをご覧ください。
リファレンスとリソース
Firebase Admin SDK の詳細については、次のリソースをご覧ください。
Google Cloud クライアント ライブラリ
Google Cloud クライアント ライブラリは、Java、Python、Node.js、Go、PHP、C#、Ruby を使用した Firebase へのアクセスをサポートしています。Google Cloud クライアント ライブラリの使用を開始するには、サーバー クライアント ライブラリの使用に関するクイックスタートをご覧ください。
リファレンスとリソース
Firebase 用の Google Cloud クライアント ライブラリの詳細については、次のリソースをご覧ください。
サードパーティ ライブラリの統合
Firebase には、モバイル SDK またはウェブ SDK とサーバー クライアント ライブラリに加えて、オープンソース ライブラリとの統合がいくつか用意されています。詳細については、ライブラリとフレームワークのインテグレーションをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-13 UTC。
[null,null,["最終更新日 2025-08-13 UTC。"],[],[],null,["\u003cbr /\u003e\n\nThis page describes the SDKs and client libraries available for the\nFirebase API. While you can make direct HTTP and RPC calls to the\nFirebase API, the Firebase client libraries\nimplement best practices for you and make it easier to access your database.\n\nFirebase supports mobile or web SDKs and server client\nlibraries.\n\nMobile and web SDKs\n\nFirebase supports SDKs for Android, iOS, and web. Combined with\n[Firebase security rules](https://cloud.google.com/firestore/docs/security/get-started)\nand [Firebase Auth](https://firebase.google.com/docs/auth/), the\nmobile and web SDKs support serverless app architectures where clients connect\ndirectly to your Firebase database. With a serverless\narchitecture, you don't need to maintain an intermediary server between your\nclients and your Firebase database.\n\nThe mobile and web SDKs also support\n[realtime updates](https://cloud.google.com/firestore/docs/query-data/listen)\nand [offline data persistence](https://firebase.google.com/docs/firestore/manage-data/enable-offline).\nTo get started with the Android, Apple platforms, or Web SDK, see [Get started with Firebase](/docs/firestore/quickstart).\n\nReferences and resources\n\nFor more information about each SDK, see the following resources: \n\nWeb\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/js/firebase.firestore)\n- [Source Code](https://github.com/firebase/firebase-js-sdk/tree/master/packages/firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-js-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+javascript)\n\n\nIn addition to the standard client SDK, Firebase offers Firestore Lite, a\nlightweight, REST-only SDK.\n\n- [Firestore Lite Solutions Guide](https://firebase.google.com/docs/firestore/solutions/firestore-lite)\n- [Firestore Lite API Reference Documentation](https://firebase.google.com/docs/reference/js/firestore_lite.md)\n- [Firestore Lite Source Code](https://github.com/firebase/firebase-js-sdk/tree/master/packages/firestore/lite)\n- [Firestore Lite GitHub Issue Tracker](https://github.com/firebase/firebase-js-sdk/labels/api%3A%20firestore)\n\niOS+\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes)\n- [Source Code](https://github.com/firebase/firebase-ios-sdk/tree/master/Firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-ios-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+ios)\n\nAndroid\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/package-summary)\n- [Source Code](https://github.com/firebase/firebase-android-sdk/tree/master/firebase-firestore)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-android-sdk/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+android)\n\nFlutter\n\n- [API Reference Documentation](https://pub.dev/documentation/cloud_firestore/latest/)\n- [Source Code](https://github.com/firebase/flutterfire/)\n- [GitHub Issue Tracker](https://github.com/firebase/flutterfire/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+flutter)\n\nServer client libraries\n\nFirebase supports server client libraries for C#, Go, Java,\nNode.js, PHP, Python, and Ruby. Use these client libraries to set up\nprivileged server environments.\n\nServer client libraries create a privileged Firebase environment\nwith full access to your database. In this environment, requests are not\nevaluated against your Firebase security rules. Privileged\nFirebase servers are secured using Identity and Access Management\n(IAM), see [Security for server client libraries](../security/iam).\n\nUse the server client libraries for administrative database tasks or\nif you prefer an architecture with an intermediary server between your users and\nyour Firebase database.\n\nFirebase server client libraries are available as [Firebase Admin\nSDKs](https://firebase.google.com/docs/admin/setup) and as Google Cloud\nclient libraries. Both sets of libraries\nprovide the same Firebase features. The Firebase Admin SDKs bundle\naccess to Firebase and several other Firebase products, like\nFirebase Auth and Firebase Cloud Messaging, in a single library.\n\nFirebase Admin SDKs\n\nThe [Firebase Admin SDKs](https://firebase.google.com/docs/admin/setup) bundle\nthe Google Cloud client libraries for Firebase alongside client\nlibraries and SDKs for several other Firebase features. Using one of the Admin\nSDKs, you can initialize access to Firebase and several other\nservices from a single SDK. The Firebase Admin SDKs support\nFirebase access in Java, Python, Node.js, and Go.\n\nTo get started with a Firebase Admin SDK, see\n[Add the Firebase Admin SDK to Your Server](https://firebase.google.com/docs/admin/setup).\n\nReferences and resources\n\nFor more information about Firebase Admin SDKs, see the following resources: \n\nJava\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/package-summary)\n- [Source Code](https://github.com/firebase/firebase-admin-java)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-java/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+java)\n\nPython\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/python/)\n- [Source Code](https://github.com/firebase/firebase-admin-python)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-python/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+python)\n\nNode.js\n\n- [API Reference Documentation](https://firebase.google.com/docs/reference/admin/node/)\n- [Source Code](https://github.com/firebase/firebase-admin-node)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-node/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/node.js+firebase-admin)\n\nGo\n\n- [API Reference Documentation](https://godoc.org/firebase.google.com/go)\n- [Source Code](https://github.com/firebase/firebase-admin-go)\n- [GitHub Issue Tracker](https://github.com/firebase/firebase-admin-go/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-admin+go)\n\nGoogle Cloud client libraries\n\nThe Google Cloud client libraries support Firebase access in\nJava, Python, Node.js, Go, PHP, C#, and Ruby. To get started with one of the\nGoogle Cloud client libraries, see the\n[Quickstart using a Server Client Library](https://cloud.google.com/firestore/docs/quickstart-servers).\n\nReferences and resources\n\nFor more information about Google Cloud client libraries for Firebase,\nsee the following resources: \n\nJava\n\n- [API Reference Documentation](https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/overview.html)\n- [Source Code](https://github.com/googleapis/java-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/java-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+java)\n\nPython\n\n- [API Reference Documentation](https://cloud.google.com/python/docs/reference/firestore/latest/index.html)\n- [Source Code](https://github.com/googleapis/python-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/python-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+python)\n\nNode.js\n\n- [API Reference Documentation](https://googleapis.dev/nodejs/firestore/latest/)\n- [Source Code](https://github.com/googleapis/nodejs-firestore/)\n- [GitHub Issue Tracker](https://github.com/googleapis/nodejs-firestore/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/node.js+google-cloud-firestore)\n\nGo\n\n- [API Reference Documentation](https://godoc.org/cloud.google.com/go/firestore)\n- [Source Code](https://github.com/googleapis/google-cloud-go/tree/master/firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-go/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+go)\n\nPHP\n\n- [API Reference Documentation](https://googleapis.github.io/google-cloud-php/#/docs/cloud-firestore/latest)\n- [Source Code](https://github.com/googleapis/google-cloud-php/tree/master/Firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-php/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+php)\n\nC#\n\n- [API Reference Documentation](https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Firestore/)\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+c%23)\n\nRuby\n\n- [API Reference Documentation](https://googleapis.dev/ruby/google-cloud-firestore/latest)\n- [Source Code](https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-firestore)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-ruby/labels/api%3A%20firestore)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-cloud-firestore+ruby)\n\nThird-party library integrations\n\nIn addition to the mobile or web SDKs and server client libraries,\nFirebase offers a number of integrations with open-source\nlibraries. For more information, see [Library and framework\nintegrations](https://firebase.google.com/docs/firestore/library-integrations)."]]