> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Find Collection and Field IDs

## Article: Find Collection and Field IDs

## Article Link: https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/find-collection-and-field-ids.md

## Article Content:

# Find Collection and Field IDs

You need [collection](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collections.md#collection-ids) and [field](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collection-fields.md#field-ids) IDs whenever your code works with a site's data. A collection ID tells the Data API which collection to use. A field ID names a field to filter, sort, or set.

You can copy both IDs from the **Wix Data** view in the [Code tab](https://dev.wix.com/docs/studio-two/get-started/about-the-code-tab.md#work-with-collections).

## Find a collection ID

To find a collection ID:

1. In the Studio Two editor, open the **Code** tab.
2. In the row of icons at the top of the sidebar, click the database icon to open the **Wix Data** view.

   ![The top of the Code tab's sidebar, with the Wix Data icon highlighted and the Wix Data view open](https://wixmp-833713b177cebf373f611808.wixmp.com/images/983b41f68c3cda4c4e10eb8deb25d301.png)

3. If the collection isn't listed, click **Refresh Collections**.
4. Right-click the collection and select **Copy Collection ID**.

   ![The Wix Data view with a collection's context menu open, showing Copy Collection ID](https://wixmp-833713b177cebf373f611808.wixmp.com/images/11c8a09081d22ed30eece49fb2d96336.png)

> **Note:** App collections are grouped by the business solution that owns them, and collections from an external database are grouped under their connection's prefix. Their IDs include a prefix, such as `Blog/Posts`. Copy the ID rather than building it from the group name. For a list of app collection IDs, see [Wix App Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction?apiView=SDK.md).

## Find a field ID

To find a field ID:

1. In the **Wix Data** view, expand the collection that contains the field.
2. Right-click the field and select **Copy Field ID**.

Each field is listed as `<fieldId>: <TYPE> ('<Display name>')`, so you can also read the ID straight from the list.

> **Note:** To get collection and field IDs in code, call [List Data Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/list-data-collections?apiView=SDK.md). Each collection in the response includes its ID and its fields.

## See also

- [About Collections](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collections.md)
- [About Collection Fields](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collection-fields.md)
- [About the Code Tab](https://dev.wix.com/docs/studio-two/get-started/about-the-code-tab.md)
- [Query Items](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/data-api/query-items.md)
- [Manage Items](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/data-api/manage-items.md)