Webflow Custom Code API

Custom code is JavaScript that is added to your Webflow site.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /pages/{page_id}/custom_code Get a page's custom code · Webflow Get Custom Code #
Ask an LLM
“Which scripts are applied to a single page?”
“Can I read the custom code on one page?”
Tell an agent
Show the custom code on page {page_id}.
List scripts applied to page {page_id}.
DELETE /pages/{page_id}/custom_code Remove all custom code from a page · Webflow Delete Custom Code #
Ask an LLM
“How do I clear every script from a page?”
“Can I remove all page-level custom code?”
Tell an agent destructive · confirm first
Remove all custom code from page {page_id}.
Clear every script applied to page {page_id}.
PUT /pages/{page_id}/custom_code Apply custom code to a page · Webflow Add/Update Custom Code #
Ask an LLM
“How do I add a script to a specific page?”
“Can I replace the scripts on one page?”
Tell an agent
Apply scripts {scripts} to page {page_id}.
Replace the custom code on page {page_id} with {scripts}.
GET /sites/{site_id}/custom_code Get a site's custom code · Webflow Get Custom Code #
Ask an LLM
“What scripts are applied to my whole site?”
“Can I see site-wide custom code?”
Tell an agent
Show the custom code applied site-wide on site {site_id}.
List scripts applied to site {site_id}.
DELETE /sites/{site_id}/custom_code Remove all custom code from a site · Webflow Delete Custom Code #
Ask an LLM
“How do I clear every script from my site?”
“Can I remove all site-level custom code?”
Tell an agent destructive · confirm first
Remove all custom code from site {site_id}.
Clear every script applied site-wide on site {site_id}.
PUT /sites/{site_id}/custom_code Apply custom code to a site · Webflow Add/Update Custom Code #
Ask an LLM
“How do I add scripts to my entire site?”
“Can I replace the site-wide custom code?”
Tell an agent
Apply scripts {scripts} to site {site_id}.
Replace the site-wide custom code on site {site_id} with {scripts}.
GET /sites/{site_id}/registered_scripts List a site's registered scripts · Webflow Get Registered Scripts #
Ask an LLM
“Which scripts have been registered to my site?”
“How many scripts can a site hold?”
Tell an agent
List the registered scripts on site {site_id}.
Show every script registered to site {site_id}.
POST /sites/{site_id}/registered_scripts/hosted Register a hosted script to a site · Webflow Register Script - Hosted #
Ask an LLM
“How do I register an externally hosted script?”
“Can I add a hosted script with a Sub-Resource Integrity hash?”
Tell an agent
Register hosted script {displayName} at {hostedLocation} on site {site_id} with version {version}.
Add hosted script {displayName} (version {version}, integrity {integrityHash}) to site {site_id}.
POST /sites/{site_id}/registered_scripts/inline Register an inline script to a site · Webflow Register Script - Inline #
Ask an LLM
“How do I register inline JavaScript for a site?”
“Can I add an inline script under 2000 characters?”
Tell an agent
Register inline script {displayName} with source {sourceCode} on site {site_id} at version {version}.
Add inline script {displayName} (version {version}) to site {site_id}.
GET /sites/{site_id}/custom_code/blocks List scripts applied site-wide and per page · Webflow List Custom Code Blocks #
Ask an LLM
“Which scripts are applied to my site and its pages?”
“Can I list custom code blocks across a site?”
Tell an agent
List custom code blocks on site {site_id}.
Show {limit} custom code blocks applied site-wide and per page on site {site_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/webflow:webflow-custom-code-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

webflow-custom-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  title: Webflow Data Custom Code API
  description: Webflow's Data API v2
  termsOfService: https://webflow.com/legal/terms
  contact:
    name: Webflow Developer Relations
    email: developers@webflow.com
    url: https://developers.webflow.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://api.webflow.com/v2
  description: Webflow API v2
  x-fern-server-name: Data API
security:
- OAuth2: []
- ApiKey: []
tags:


# --- truncated at 32 KB (189 KB total) ---
# Full source: https://artifacts.apis.io/webflow/openapi/webflow-custom-code-api-openapi.yml