---
schema_version: "1"
id: 893da5b7a8c137b5442c6b8dcb44f8844b9a6002cc78239d364ef00078b18f9b
title: Extracting Data from the API
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-large-data-volumes-bp/guides/cce/ldv-deployments/ldv-deployments-best-practices-api-extracting-data.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-large-data-volumes-bp/guide/ldv-deployments-best-practices-api-extracting-data.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 258f81ffdff5c464b8214666ca2c4616f7db7756f8becca28894b565ca79bd7d
products:
  - Best Practices for Deployments with Large Data Volumes
  - Platform Developer Content
---

# Extracting Data from the API

|Goal|Best Practice|
|----|-------------|
|Using the most efficient operations|<ul><li>Use the `getUpdated()` and `getDeleted()` SOAP API to sync an external system with Salesforce at intervals greater than 5 minutes. Use the outbound messaging feature for more frequent syncing.</li><li>When using a query that can return more than one million results, consider using the query capability of the Bulk API 2.0, which might be more suitable.</li></ul>|

