# Setting Up a Standard ANS Block with Outbound Feeds

Source: https://dev.arcxp.com/arc-io/developer-docs/setting-up-a-standard-ans-block-with-outbound-feeds/

The standard Arc XP Native Specification (ANS) block is an out-of-the-box template that uses no custom fields to quickly and easily set up, configure, and manage your feed.

## Feed Setup

The standard ANS feed is a platform-level Arc XP feed block with configurable and customizable parameters.

See [How to set up and configure an Outbound Feed](https://dev.arcxp.com/arc-io/developer-docs/how-to-set-up-and-configure-an-outbound-feed/).

## ANS Configuration

The ANS feed has no custom fields to configure.

## Resolver Configuration

Each feed template needs a resolver. See [Setting up resolvers for outbound feeds](https://dev.arcxp.com/arc-io/developer-docs/setting-up-resolvers-for-outbound-feeds/) for detailed information about how to configure the following fields:

### Resolver Name

Unique name given to the resolver

### Resolver Priority

Number to indicate priority order (1 to 100). Lower numbers are evaluated first.

### Regex Pattern

Regex patterns match content with templates. The following are examples of valid regex patterns for resolvers:

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

### URL Parameters

You can add optional parameters such as `from` and `size`:

![Required URL Parameters](https://dev.arcxp.com/images/outbound-feeds/Requiredurlparameters.png)

### Websites

Select the websites for which you want to apply the resolver.

### Content Source

You can select additional content sources from the ones available out-of-the-box. See [Content sources with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/content-sources-with-outbound-feeds/).

### Patterns

These positions come from the regex pattern. There are a number of ways to pass a section (or author, keyword or tag) to the content source from the resolver. All of them use a grouping () in the regex.

**Section** \- Pattern 1

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

**Author** \- Pattern 2

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

**Keywords** \- Pattern 3

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

**Tags - Text** \- Pattern 4

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

**Tags - Slug** \- Pattern 5

```regex
^/arc/outboundfeeds/ans/?$|
^/arc/outboundfeeds/ans/category/(.*)/?$|
^/arc/outboundfeeds/ans/author/(.*)/?$|
^/arc/outboundfeeds/ans/keyword/(.*)/?$|
^/arc/outboundfeeds/ans/tags/(.*)/?$|
^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
```

**Include - Terms** \- Modify the query used by the content source. See [How to create a custom query with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/how-to-create-a-custom-query-with-outbound-feeds) for detailed information.

**Exclude - Terms** \- Modify the query used by the content source. See [How to create a custom query with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/how-to-create-a-custom-query-with-outbound-feeds) for detailed information.

**Exclude - Sections** \- A comma separated list of sections to exclude. For example premium,/paid-content

**Feed - Size** \- Integer 1 to 100\. Defaults to `100`. If you added a size URL parameter, select the parameter option and select size and enter a default value.

**Feed - Offset** \- Integer. Defaults to `0`. If you added a from URL parameter, select the parameter option and select from and enter a default value.

**Sort -** last\_updated\_date:desc

If left blank it will default to `publish_date:desc`. The format is `date_field` \+ `:` \+ `sort order` (`desc` or `asc`). Valid date fields are `created_date`, `display_date`, `first_publish_date`, `last_updated_date`, or `publish_date`.

**Source-Exclude** \- A comma separated list of ANS fields to remove from the default list of ANS fields. See the default list in [Content sources with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/content-sources-with-outbound-feeds/#included-data).

**Source-Include** \- A comma separated list of ANS fields to add to the default list of ANS fields. See the default list in [Content sources with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/content-sources-with-outbound-feeds/#included-data).

**Include - Distributor - Name**

If you only want content from a single distributor, enter the name here. You can only populate one distributor field.

**Exclude - Distributor - Name**

If you want to exclude content from a single distributor, enter the name here. You can only populate one distributor field.

**Include - Distributor - Category**

If you only want content from a single distributor category, enter the name here. You can only populate one distributor field.

**Exclude - Distributor - Category**

If you want to exclude content from a single distributor category, enter the name here. You can only populate one distributor field.

### Default Template

Select an ANS template to use with this resolver

### Default Output Type

Select `json`

### Content Mapped Template

blank

## ANS URL

To preview your ANS json, modify the URL below with your organization ID and website name.

```
https://outboundfeeds.{CLIENTORG}.arcpublishing.com/pf/arc/outboundfeeds/ans/?_website={CLIENTWEBSITE}
```

![ANS URL](https://dev.arcxp.com/images/outbound-feeds/ANSurl.png)

## Additional Information

- [How to set up and configure an Outbound Feed](https://dev.arcxp.com/arc-io/developer-docs/how-to-set-up-and-configure-an-outbound-feed/)
- [Content sources with Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/content-sources-with-outbound-feeds/)
- [Setting up resolvers for Outbound Feeds](https://dev.arcxp.com/arc-io/developer-docs/setting-up-resolvers-for-outbound-feeds/)
- [Regex Debugger](https://regex101.com/)
