# FetchOptions

Learn how to configure a content fetch.

This immutable class configures a call to [`fetchContent`](/reference/sdk/php/api/core/plug/fetch-content).

Start from [`defaults`](/reference/sdk/php/api/options/fetch-options/defaults) and chain the `with*` methods to build the options. Each method returns a new instance, leaving the original unchanged.

> **Looking for something specific?**
>
> Use the search bar at the top of the page or press `/` to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

- [defaults](/reference/sdk/php/api/options/fetch-options/defaults): Learn how to create the default fetch options.
- [withPreferredLocale](/reference/sdk/php/api/options/fetch-options/with-preferred-locale): Learn how to set the preferred locale for the content.
- [getPreferredLocale](/reference/sdk/php/api/options/fetch-options/get-preferred-locale): Learn how to get the preferred locale for the content.
- [withStaticContent](/reference/sdk/php/api/options/fetch-options/with-static-content): Learn how to fetch default content.
- [isStaticContent](/reference/sdk/php/api/options/fetch-options/is-static-content): Learn how to check whether default content is requested.
- [withSchema](/reference/sdk/php/api/options/fetch-options/with-schema): Learn how to include the content schema in the response metadata.
- [includesSchema](/reference/sdk/php/api/options/fetch-options/includes-schema): Learn how to check whether the content schema is included.
- [withAttributes](/reference/sdk/php/api/options/fetch-options/with-attributes): Learn how to set the context attributes for the content.
- [withAttribute](/reference/sdk/php/api/options/fetch-options/with-attribute): Learn how to add a context attribute to the content.
- [getAttributes](/reference/sdk/php/api/options/fetch-options/get-attributes): Learn how to get the context attributes for the content.
- [withFallback](/reference/sdk/php/api/options/fetch-options/with-fallback): Learn how to set a fallback for the content.
- [hasFallback](/reference/sdk/php/api/options/fetch-options/has-fallback): Learn how to check whether a fallback was set.
- [getFallback](/reference/sdk/php/api/options/fetch-options/get-fallback): Learn how to get the fallback value for the content.
