For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
        • Create variable collection
        • Get all variable collections
        • Get default variable collection
        • Get variable collection by ID
        • Remove variable collection
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • webflow.getAllVariableCollections()
Variables & CollectionsVariable CollectionsCreating & Retrieving Variable Collections

Get all variable collections

Was this page helpful?
Previous

Get default variable collection

Next
Built with

webflow.getAllVariableCollections()

Retrieves all variable collections for a site.

Syntax

1webflow.getAllVariableCollections()

Returns

Promise<Array<VariableCollection>>

A Promise that resolves to an array of variable collection objects.

Example

1const collections = webflow.getAllVariableCollections();
2
3// returns an array of collection objects
4// [
5// {
6// "id": "collection-4a393cee-14d6-d927-f2af-44169031a25b",
7// },
8// {
9// "id": "collection-4a393cee-14d6-d927-f2af-44169031a49c",
10// }
11// ]

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny