SDKs

Last updated Apr 20, 2026 Cloudflare offers language software development kits (SDKs) as well as curl examples to demonstrate how to use the Cloudflare API. The SDK libraries allow you to interact with the Cloudflare API in language-specific syntax and more easily integrate with your existing applications.

Cloudflare currently offers the following SDKs:

When to use cURL vs SDK

There is no definite answer on which you should use. Instead, consider your use case and determine whether cURL or an SDK is the best fit.

Use case cURL SDK
Quick testing within the CLI ✅ ❌
Use within bash scripts or CI ✅ ❌*
Usage from within an existing application or framework ❌ ✅
More complex usage where you need to chain together outputs ❌ ✅

* It is possible, although not straight forward, to use the SDKs within bash scripts or CI environments with additional runtime dependencies and setup.

Example

The following are examples of how you would query all of the Cloudflare zones you have access to.

With cURL:

curl "https://api.cloudflare.com/client/v4/zones" \
--header "Authorization: Bearer <API_TOKEN>"

With the TypeScript SDK:

const client = new Cloudflare({
    apiToken: process.env["CLOUDFLARE_API_TOKEN"],
});

const zones = await client.zones.list();

console.log(zones);

Was this helpful?

YesNo

On this page

SDKs - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/fundamentals/api/reference/sdks/#page","headline":"SDKs","description":"Use Cloudflare API SDKs for Go, TypeScript, and Python to integrate Cloudflare services into your applications.","url":"https://developers.cloudflare.com/fundamentals/api/reference/sdks/","inLanguage":"en","image":"https://developers.cloudflare.com/fundamentals/api/reference/sdks/og.png?v=68b001cf37e16c73","dateModified":"2026-04-20","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Explore Cloudflare's API token templates to efficiently manage permissions. Start with a template and customize token permissions and resources as needed. title: API token templates image: https://developers.cloudflare.com/fundamentals/api/reference/template/og.png?v=6e24619f16f55ff2


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/fundamentals/llms.txt
Use this file to discover all available pages before exploring further.