{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Zapier Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"zapier-import-integration","__idx":0},"children":["Zapier Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://ifttt.com/"},"children":["IFTTT.com"]}," に精通している方は、シンプルな「If This Then That」のタスク自動化「レシピ」を既にご存知かと思いますが、Zapier のトリガー・レスポンスメカニズムも同様に動作します。1つのWebアプリで簡単な操作を行うと、それが別のアプリでのレスポンスや動作をトリガーします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["webhook を使用することで、Treasure Data へのシンプルなデータインポートが可能です。Zapier には数百ものインテグレーションがあるため、Treasure Data の REST API への webhook を含む「Zap」を作成することで、これらのデータソースと Treasure Data 間のセルフサービス型インテグレーションへの扉が開かれます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このインテグレーションは、Data Connectors を使用した本格的な Treasure Data の Data Engineering as a Service へのインポートに取って代わるものではありませんが、まだサポートされていないデータソースでデータをモデル化したり、探索的なクエリや分析を構築するための良い基盤となります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["組織内で一部のメンバーがまだスプレッドシートにデータを保存していて、そのデータを分析パイプラインで簡単かつ迅速に使用したいとお考えですか?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このチュートリアルでは、Zapier Zap を使用した Google Sheets と Treasure Data 間のシンプルなインテグレーションを実演します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-133529.efc14d9bdc29e167dc0d3f94ad46826758961a6b564b96c65f488a4872a42e4c.c0de4c0c.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.google.com/docs/about/"},"children":["Google Docs"]}," アカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["Treasure アカウント"]}," と Treasure Data Write API key。Treasure Data Toolbelt のインストールも推奨します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://zapier.com/app/signup"},"children":["Zapier"]}," アカウント。無料の基本プランで十分です。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-sheet-のセットアップ","__idx":2},"children":["Google Sheet のセットアップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["通常通り（データテーブルとして使用するために）Google Sheet をセットアップします。上部にヘッダー行を必ず含めてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GIF を選択してアニメーションを表示します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-133600.4b1f42fe0a528b532e48b8c0811ae98f83e46befea8ff77589e447cfdb7e79a0.c0de4c0c.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-database-と-table-のセットアップ","__idx":3},"children":["Treasure Data Database と Table のセットアップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これは、TD Toolbelt を使用してコマンドラインから行うのが最も簡単です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td db:create database_name\ntd table:create database_name table_name\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://blog.treasuredata.com/wp-content/uploads/2016/04/td_create_db_and_table.gif"},"children":["https://blog.treasuredata.com/wp-content/uploads/2016/04/td_create_db_and_table.gif"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/td_create_db_and_table.7a4067408c17b14e45eca38a03ee2b83045f5fb691f4d3cbbc50e971811a56b4.c0de4c0c.gif","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"zapier-zap-のセットアップ","__idx":4},"children":["Zapier Zap のセットアップ"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zapier Dashboard の上部で、以下を選択します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-133616.4a147b896b66cf0dc5e416664b05885b83f9905e9afaf5cc2beaa11d41e4fc2b.c0de4c0c.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トリガーアプリとして Google Sheets を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-133626.c1290a37ec0c4270e17646ef0f7a1eb2512148e617bb6112cd6a4af3288247d9.c0de4c0c.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トリガーとして New Spreadsheet Row を選択し、Save and Continue を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/new_spreadsheet_row_as_trigger.149ae5d5f5e8b61689541f6173aeba49b1aa8d91090c5d26b7c243fb8ba76990.c0de4c0c.gif","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Sheets アカウントを選択します。Test and Save and Continue を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを取得したい Spreadsheet と Worksheet を選択します。Save and Continue を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["次の画面で、スプレッドシートにデータ行を追加した後、Fetch + Continue を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["次に、Action アプリとして Webhooks を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Post アクションを選択します。Save + Continue を押します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下の情報を入力します"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"URL:  http://in.treasuredata.com/postback/v3/event/database_name/table_namePayload Type:  JsonWrap Request in Array: NoUnflatten: yesHeaders:Content-Type: application/jsonX-TD-Write-Key:  your_Treasure_Data_Write_API_Key\nview rawwebhook post hosted with ❤ by GitHub\n"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Continue を選択し、スプレッドシートに新しい行を追加し、次のステップで Create & Continue を選択してテストします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Finish を選択して Zap をオンにします。See it in your Dashboard ボタンですべての Zap を表示できます。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zapier がシート内の新しい行を認識して webhook を実行するまでに最大15分かかりますが、場合によってはドロップダウンメニューを選択して Zap を簡単に実行させることができます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GIF を選択してアニメーションを表示します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/prompt_zap_to_run-1024x753.2fd4f22fb26d2c6f20efb25f6172568d36e18b0225a795eb6f854949a2117c9f.c0de4c0c.gif","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データのクエリ","__idx":5},"children":["データのクエリ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データが Treasure Data に入った後（webhook が実行されたときに取り込まれました）、Treasure CLI と SQL を使用してクエリできます。当社の SQL エンジンは Hive と Presto によって動作し、数十億行にスケールします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["カラムヘッダーは元のスプレッドシートのものと完全には一致しません。Zapier は、元のシートで定義したヘッダーに「gsx_」プレフィックスを追加し、さらにいくつかの Zapier 固有のフィールドも追加します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ただし、クエリで Zapier が追加したカラムを除外することで、元のシートと同じデータをクエリから取得できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI からこれを行うには、いくつかの異なる方法があります。クエリをプレーンテキスト文字列として実行できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d googledocs \"select gsx_userid, gsx_lastname, gsx_streetname, gsx_city, gsx_zip from sheet\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["または、お好みであれば、クエリ自体をテキストファイルに保存し、CLI から呼び出すこともできます（上記のように job ID で結果にアクセスします）。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["query.txt"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n gsx_userid,\n gsx_lastname,\n gsx_streetname,\n gsx_city,\n gsx_zip\nFROM\n sheet\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コマンドラインからクエリを実行します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d googledocs -q query.txt\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/query_results_by_job_id.0689eb2ac22ff6a0ad6d61371be25f49eca2434e03dd90cc8726444737226aca.c0de4c0c.gif","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"その他のインテグレーションオプション","__idx":6},"children":["その他のインテグレーションオプション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["本日は、Google Sheets からデータを取得して Treasure Data に送信する Zapier Zap を紹介しましたが、他の多数のソースからデータを取り込む Zap を構築することは非常に簡単です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["利用可能な Zapier インテグレーション（および可能なデータソース）の完全なリストについては、Zapier の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://zapier.com/zapbook/"},"children":["Zapbook"]}," をご確認ください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SQL（Hive または Presto 経由）を使用して、別々のソースからインポートした2つの別々のテーブルに対して（共通のフィールドを共有していると仮定して）、他のリレーショナルデータベースと同様に定期的に内部結合を実行することもできます。ぜひお試しください!"]}]},"headings":[{"value":"Zapier Import Integration","id":"zapier-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Google Sheet のセットアップ","id":"google-sheet-のセットアップ","depth":2},{"value":"Treasure Data Database と Table のセットアップ","id":"treasure-data-database-と-table-のセットアップ","depth":2},{"value":"Zapier Zap のセットアップ","id":"zapier-zap-のセットアップ","depth":2},{"value":"データのクエリ","id":"データのクエリ","depth":2},{"value":"その他のインテグレーションオプション","id":"その他のインテグレーションオプション","depth":2}],"frontmatter":{"seo":{"title":"Zapier Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/zapier-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}