# 主なAPIのサンプルコード

Markefanの持つ約350のAPIを活用することで、CRM、SFA、Chatbotやその他業務アプリケーションとも連携可能です。 ここでは、このAPIの中から主に利用する機能についてサンプルコードをご紹介します。 ご自身の会社のシステム環境に合わせて、Markefanとの連携を行う際の参考となれば幸いです。

APIを使用した開発の依頼やサポートをご希望の場合は、担当の代理店またはマーケファン株式会社の販売担当までお問い合わせください。

## ログイン制御のAPI

* [Markefanへログインする](https://markefan.gitbook.io/documents/index/userlogin) &#x20;

## データをインポートする API

* [Markefanへのリードのインポート](https://markefan.gitbook.io/documents/index/customerimport) &#x20;
* [Markefanへのリードの高度なインポート](https://markefan.gitbook.io/documents/index/customeradvancedimport) &#x20;
* [既存キャンペーンにリードを追加する](https://markefan.gitbook.io/documents/index/mailmagazineupdate) &#x20;
* [リードを削除する](https://markefan.gitbook.io/documents/index/customerdelete) &#x20;

## データを取得する API

* [メールのステータスを取得する](https://markefan.gitbook.io/documents/index/campaignstatusget) &#x20;
* [メールの未開封／未クリックを取得する](https://markefan.gitbook.io/documents/index/campaignstatusadvancedget) &#x20;
* [リード情報を取得する](https://markefan.gitbook.io/documents/index/customerget) &#x20;
* [セグメントに属するリードを取得する](https://markefan.gitbook.io/documents/index/customerbysegmentget) &#x20;
* [キャンペーン対象のリードを取得する](https://markefan.gitbook.io/documents/index/campaigncustomerget) &#x20;
