# Data Sync: Choosing a Method

To get notified when a new record arrives, use Webhook. To put all your data in your own database for analysis, use a direct database connection. To fetch data on demand, use the record APIs in the [API Reference](https://cli.im/open-api/en/openapi/v2/overview.md).

| Method | How data arrives | What is synced | Best for |
|---|---|---|---|
| [Webhook push](https://cli.im/open-api/en/data-api/webhook.md) | CaoLiao pushes form data as JSON to a public URL you specify | New submissions, edits, and review results | Notifications and triggering business processes |
| [Direct database connection](https://cli.im/open-api/en/data-api/db.md) | CaoLiao syncs data in real time to the official database or your own MySQL 5.7 | Data tables for QR code details, form data, sub-codes, statuses, and plan completion | Data analysis and BI dashboards |
| [Pull with the API](https://cli.im/open-api/en/openapi/v2/api/record/record-get-records.md) | Your program calls the APIs on demand | Records, form structures, and code content, plus metrics (Chinese-only docs) | Conditional queries and scheduled reconciliation |

You can also write in the other direction: use the [Add record](https://cli.im/open-api/en/openapi/v2/api/record/record-add-record.md) API to submit data from an external system to a CaoLiao form.

## Common scenarios

- **Connect form data to enterprise processes**: collect data by scanning in CaoLiao, then connect to enterprise systems through Webhook or the API while keeping your existing systems.
- **Build visual reports**: enable the official database, connect a BI tool, and build dashboards. See [Build Dashboards with BI](https://cli.im/open-api/en/data-api/BI/api-with-sugar.md).

## No-code sync options

Webhook and databases require some technical skill. If you just want data to reach the apps you already use, there are simpler options:

- **Group messages**: push form submissions to WeCom, DingTalk, or Feishu groups. [View setup guide](https://cli.im/help/95443)
- **Tencent Docs**: sync form data to smart sheets in real time, including historical data when enabled. [View setup guide](https://cli.im/help/96049)
- **Tencent HiFlow**: connect to more than 200 apps. [About Tencent HiFlow](https://cli.im/open-api/en/integration/hiflow/with-third-app.md)

## How to enable

All push methods are enabled in the CaoLiao backend: in the navigation bar, go to **Data Management** > **Data API** and select a method. Pulling with the API needs no push setup; create a [personal API key](https://cli.im/open-api/en/openapi/v2/auth.md#create-key) and call the APIs directly.

## Monthly push limits by edition

Any push method can be enabled for free. The number of dynamic data entries pushed per month varies by edition:

- Free, Basic, and Advanced: first **1,000 entries** per month
- Flagship: first **20,000 entries** per month
- Industry Edition: **unlimited**

[Data API push rules](https://cli.im/help/84383)

## Community Support

For data report and data sync questions, [visit the CaoLiao Community](https://cli.im/community/minihome/question/104). Official consultants and technicians regularly read and reply.
