Published 21 May 2026

CSV file delivery vs API: when to choose which

Last updated: 21 May 2026

CSV file delivery is a one-shot transfer via SFTP, best suited to bulk loads into a CRM or campaign tool. API delivery is real-time, suited to lead-capture enrichment, on-demand lookups, and integrations with operational systems. CSV is cheaper at scale (£0.05–£0.40 per record vs £0.10–£0.60 per API call) but requires manual processing steps. Most UK B2B teams use both: CSV for the initial CRM load, API for ongoing enrichment of new leads.

Key points

What does each delivery method actually involve?

The terminology sounds technical but the mechanics are straightforward. A CSV (comma-separated values) file is a plain-text spreadsheet where each row is one record and each column is a data field: company name, contact name, job title, direct telephone, business email, postcode, UK SIC 2007 code, and so on. You receive the file once, import it, and that is the end of the transaction unless you order a refresh.

An API (application programming interface) is a live connection. Your system sends a request to the supplier's endpoint, typically something like GET /v1/enrich?company=Acme+Ltd&postcode=LS1+4AP, and receives a structured response in JSON or XML containing the matching record. The call takes milliseconds. It is always current because the supplier's database is queried in real time rather than at the point a file was exported.

The fundamental trade-off is predictability versus freshness. A CSV gives you a fixed, auditable asset. You know exactly what you received, when you received it, and what you paid. An API gives you data that reflects the supplier's universe at the moment of the call, which matters when phone numbers or job titles change frequently. UK B2B contact data decays at roughly 25–30% per year, so a CSV pulled in January may have a 10% inaccuracy rate by June.

How does each workflow operate, and what are the security implications?

The CSV workflow

The standard sequence for a UK data supplier sending a CSV file runs like this. You agree a data brief: fields required, volume, segmentation criteria (for example, Operations Directors at logistics firms in the Midlands with 50–500 employees). The supplier builds and quality-checks the file, then uploads it to a secure SFTP server or a password-protected download portal. You receive access credentials by a separate channel (never in the same email as the file link). You download, import into your CRM or campaign platform, and begin suppression washes against the Telephone Preference Service (TPS) for telephone channels or the Mailing Preference Service (MPS) for direct mail.

From a security standpoint, the weak points in a CSV workflow are transit and storage. The file must travel over an encrypted channel. Plain email attachment is not acceptable under UK GDPR Article 32, which requires appropriate technical measures to protect personal data in transit. Reputable suppliers use SFTP (SSH File Transfer Protocol) with TLS-encrypted connections, or portals enforcing TLS 1.2 as a minimum. Once downloaded, your organisation becomes the data controller for that file and bears responsibility for its storage, access controls, and eventual deletion at the end of the retention period you specified in your data licence agreement.

The API workflow

API delivery is request-driven. You write code (or configure a no-code tool like Zapier, Make, or HubSpot's workflow engine) to call the supplier's endpoint whenever a trigger fires. Typical triggers include a new lead submitting a web form, a sales rep manually requesting enrichment on a CRM record, or a nightly batch job enriching all records added in the previous 24 hours.

Authentication is almost always API key-based: a bearer token included in the HTTP Authorization header. The supplier ties that key to your account, applies rate limits (commonly 5–20 requests per second for standard tiers), and logs every call. That call log is an audit trail for your data-processing register under UK GDPR Article 30. Some enterprise setups use OAuth 2.0 where multiple internal teams share a single contract but need separate usage attribution.

Security considerations for API delivery differ from CSV. There is no file to store or delete, which removes the at-rest risk. The ongoing risk is key compromise: if your API key is exposed (a common problem when keys are hard-coded into front-end JavaScript or checked into public Git repositories), an attacker can query the supplier's database at your expense and in breach of your licence. Store API keys in environment variables or a secrets manager, not in source code.

UK GDPR note on API enrichment

Each API call that returns personal data constitutes a data transfer and a processing activity. Your Article 30 records of processing activities should log the API endpoint URL, the supplier's identity, the categories of data returned, and the legal basis under which you process them. For B2B enrichment using data compiled under legitimate interests, you will also need a completed Legitimate Interests Assessment on file before you go live.

CSV vs API: a direct comparison

Factor CSV file delivery API delivery
Typical unit cost (UK B2B) £0.05–£0.40 per record at volume £0.10–£0.60 per call
Minimum viable tech skill CRM import mapping (marketing ops) REST API integration (developer or no-code tool)
Data freshness Snapshot at export date; ages over time Real-time against supplier's live database
Volume suitability Best for 5,000+ records in one go Best for 1–5,000 calls per month
Audit trail Single file receipt; clear inventory Per-call logs; harder to audit total exposure
Lead time 1–5 business days to build and deliver Days to weeks for integration; then instant per call
Suppression wash Run once against TPS/MPS before use API response may include suppression flags; check supplier
Ongoing cost model Pay per file (or refresh subscription) Pay per call or monthly volume tier
At-rest data risk File must be stored, secured, and deleted No file stored; only matched records written to CRM
Typical UK use case Campaign targeting, direct mail, telemarketing lists Web form enrichment, CRM auto-append, live lead scoring

How much does integration effort actually differ?

This is where many buyers underestimate the API option. A CSV import into a CRM like Salesforce, HubSpot, or Microsoft Dynamics takes a competent marketing operations person two to four hours: map the column headers to CRM fields, handle duplicates, run a suppression wash, and click import. There is no code. The file either imports cleanly or it surfaces errors you fix in a spreadsheet.

An API integration is a software project. Even a simple enrichment call requires writing or configuring: the HTTP request, error handling (what happens when the API returns a 429 rate-limit error or a 404 no-match?), field mapping from JSON to CRM fields, deduplication logic, and retry logic for transient failures. A competent developer can build this in one to three days for a straightforward use case. If the trigger is a HubSpot workflow calling a Zapier webhook calling the API, a no-code operator can assemble it in a day, but the maintenance burden when the supplier changes their API version falls entirely on your team.

There is a middle option that buyers overlook: some suppliers offer a managed batch enrichment service that sits between pure CSV and pure API. You submit a file of company names and postcodes (or a CRM segment), the supplier runs enrichment against their live database and returns an enriched file within 24 hours. You get near-current data without writing a line of code. Costs are typically £0.08–£0.25 per matched record, with a minimum order. See our guide on bulk versus API enrichment approaches for a detailed breakdown of that comparison.

What does the combined approach look like in practice?

A Manchester-based B2B SaaS firm targeting HR Directors at UK professional services firms with 100–1,000 employees might run this pattern. At contract start, they take a CSV file of 8,000 matching contacts, verified telephone and email, compiled under legitimate interests from publicly available sources. The file is imported into HubSpot over a weekend. Suppression against TPS is run on the telephone field before any calls are made. That covers the outbound prospecting programme for the next 12 months.

In parallel, the firm integrates the supplier's enrichment API into their website demo-request form. When a prospect submits the form with their company name and email domain, the API fires, returns job title, direct line, and LinkedIn URL, and populates the CRM record before it hits the sales queue. The API call volume is modest: roughly 200–400 per month. At £0.20 per call, that is £40–£80 per month, completely separate from the CSV licence fee.

In our experience, this dual-mode approach delivers the best cost-per-qualified-lead outcome for UK B2B teams: the CSV covers the known universe of prospects at low unit cost, and the API handles the inbound channel where speed of enrichment directly affects sales conversion.

Are there alternatives beyond CSV and API?

Three formats come up regularly in conversations with larger buyers.

JSON and XML file delivery. These are structured alternatives to flat CSV. JSON is common when the receiving system is a web application or data warehouse expecting nested objects rather than flat rows. XML appears in legacy enterprise integrations. For most UK marketing and sales operations teams, there is no practical advantage over CSV: the data fields are identical, only the format differs. If your CRM's import tool accepts CSV but not JSON, stick with CSV.

Direct database connection. Larger buyers with data warehouse infrastructure (Snowflake, BigQuery, Redshift, or similar) sometimes negotiate a read-only SQL endpoint or a data share, refreshed nightly or weekly. This gives automated currency without per-call API charges and without the manual import cycle of CSV. It is priced differently, usually as a flat annual licence tied to the volume of the shared view. The integration work is handled by a data engineer rather than a marketing ops person, and the supplier's security review process is more thorough because the access window is persistent rather than transactional.

Tab-delimited (TSV) and fixed-width formats. These survive mainly in legacy CRM and marketing automation imports. If your platform requests TSV rather than CSV, any competent UK data supplier can deliver in that format at no extra cost. Fixed-width files (where each field occupies a defined character position) are still required by a small number of older mailing house systems. Mention it during the data brief and the supplier will handle it.

For a broader view of what to specify when placing a data order, including format, field selection, and licence terms, see our guide on how to buy marketing data in the UK.

Which should you choose?

The answer depends on three questions: volume, timing, and technical capacity.

If you are loading a prospect universe of more than 5,000 records for a campaign that runs over weeks or months, CSV is the right call. The unit economics are better, the import process is well understood, and the operational burden is a single afternoon of data admin.

If you need records enriched in real time, under 30 seconds from trigger to CRM, and your team includes someone who can write or configure an API integration, the API is the right call. Pay-per-call pricing scales naturally with lead volume and you never hold a large file of personal data in your import queue.

If neither fits cleanly, ask your supplier about managed batch enrichment. You avoid both the at-rest file risk and the integration build, in exchange for a 12–24 hour turnaround rather than instant results.

One thing to avoid: choosing API purely because it sounds more modern. A well-run CSV campaign to a verified, TPS-washed telephone list will outperform a poorly integrated API enrichment workflow almost every time. The format is a logistics decision, not a quality signal.

Need GDPR-compliant data for your next campaign?

Tell us your targeting criteria and we will run a free count. B2B decision-makers, B2C consumer files, or CRM enrichment, all live verified. We can deliver by CSV, API, or managed batch enrichment depending on your workflow.

Request Data Counts

Frequently asked questions

Is CSV or API delivery cheaper for UK B2B data?
CSV is cheaper per record at scale. Typical UK B2B CSV pricing runs from £0.05 to £0.40 per record depending on volume and data fields selected. API calls typically cost £0.10 to £0.60 per lookup, reflecting real-time processing overhead. If you are loading 50,000 records for a quarterly campaign, CSV wins on unit cost. If you are enriching 300 inbound leads per month, the API's per-call cost is offset by eliminating the manual handling steps.
How is a CSV data file delivered securely?
Reputable UK data suppliers deliver CSV files via SFTP (SSH File Transfer Protocol) or a password-protected secure download portal, not by plain email attachment. The file is typically encrypted at rest (AES-256) and in transit (TLS 1.2 or higher). You receive access credentials separately, download the file to an internal server or directly into your CRM's import tool, and the supplier deletes the file from the portal after an agreed window, usually 14 to 30 days.
What authentication does a data API use?
Most UK data APIs use API key authentication: you include a bearer token in each HTTP request header. The supplier ties that key to your account, enforces rate limits (for example, 10 requests per second), and logs every call for audit purposes. Some enterprise setups use OAuth 2.0 for additional granularity, particularly where multiple internal teams share a single contract but need separate usage tracking.
Can I use both CSV and API delivery on the same contract?
Yes. Most UK data suppliers offer both delivery modes and many enterprise contracts combine them: an initial CSV bulk load to populate the CRM, followed by ongoing API access for real-time enrichment of new leads. The pricing structure usually separates the two: a flat file fee for the bulk CSV (often priced per 1,000 records) and a per-call rate for the API. Ask for a blended quote if you expect to use both.
What alternative formats exist beyond CSV and API?
JSON and XML are common alternatives for file delivery when the receiving system expects structured data rather than flat rows. Direct database connection (typically via a read-only SQL endpoint or a data warehouse share such as Snowflake or BigQuery) is used by larger buyers who want automated nightly refresh without building API integration. Tab-delimited files (TSV) and fixed-width formats still appear in legacy CRM imports. CSV remains the most portable option for the majority of UK marketing and sales operations teams.
How long does it take to receive a CSV file after ordering?
Turnaround depends on the supplier and whether the file requires bespoke segmentation. Off-the-shelf counts from a pre-built universe can be delivered within one to two business days once the order is confirmed and the data licence agreement is signed. Highly segmented files, for example a B2B list filtered by five UK SIC 2007 codes, specific job functions, verified mobile numbers, and a geographic radius, may take three to five business days to build and quality-check.