Search and replace text

If you’re comfortable coding, there is an API reference for CMS that is pretty straightforward and will let you do what you’re talking about: Webflow CMS API Reference

For instance, the following vanilla python code (written in python 3.9) grabs all the collections on my site, which I can then update however I want:

import requests
from os import environ

API_KEY = environ.get("WEBFLOW_API_KEY")
api = "https://api.webflow.com"
resp = requests.get(
    f"{api}/sites",
    headers={"Accept-Version": "1.0.0", "Authorization": f"Bearer {API_KEY}"},
)
sites = resp.json()
my_site = {}
for site in sites:
    if site.get("shortName", "") == "something":
        my_site = site
        break

my_site_id = my_site.get("_id", "")
resp = requests.get(
    f"{api}/sites/{my_site_id}/collections",
    headers={"Accept-Version": "1.0.0", "Authorization": f"Bearer {API_KEY}"},
)
1 Like