---
schema_version: "1"
id: eec0620f0767837f7cf3b28c1e2421e0e28a022fd22860a2953bc00dddb389fa
title: WITH FEED NewsFeed
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-soql-sosl/guides/soql-sosl/sforce-api-calls-sosl-with-feed.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-soql-sosl/guide/sforce-api-calls-sosl-with-feed.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 065ed4fac31f7a141dd4df365c22b7eac5363664020a88c5215e225befb70586
products:
  - SOQL and SOSL Reference
  - Platform Developer Content
---

# WITH FEED NewsFeed

The optional `WITH FEED NewsFeed` clause allows you to filter all search results that are associated with your news feed. This clause can be used in API version 19.0 or later. To use this clause, collaboration must be enabled for your organization.

The syntax is:

```soql
WITH FEED NewsFeed
```

When using `WITH FEED NewsFeed`, you must also include the `RETURNING` clause, specifying only FeedPost, FeedComment, or both.

For example:

```soql
FIND {acme} RETURNING FeedPost, FeedComment
            WITH FEED NewsFeed
```
