# Search\_domain\_filter not working, getting citations outside my domain list

**URL:** <https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77>\
**Category:** Bug Reports\
**Created:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77 "2025-05-15T00:13:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77/1 "2025-05-15T00:13:45Z")

</div>

Hi all, I’m trying to make a api request like this

```auto
    url = "https://api.perplexity.ai/chat/completions"

    payload = {
        "model": "llama-3.1-sonar-large-128k-online",
        "messages": [
            {
                "role": "system",
                "content": (
                    "Help find the latest news for the user through as many sources as possible. Compile "
                    "it in an unbiased way"
                ),
            },
            {"role": "user", "content": f"What's the latest news about US stock market"},
        ],
        "return_citations": True,
        "search_domain_filter": ["cnbc.com"],
        "search_recency_filter": "day",
    }

```

However I end up getting citations outside [cnbc.com](http://cnbc.com) domain

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77/2 "2025-05-15T00:13:47Z")

</div>

I see. thanks for flagging we will take a look at it.

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77/3 "2025-05-15T00:13:50Z")

</div>

I am getting same issue: query had these domains: “search\_domain\_filter”:[  
“[ndtv.com](http://ndtv.com)”,  
“indiatoday.in”,  
“[thehindu.com](http://thehindu.com)”,  
“[firstpost.com](http://firstpost.com)”,  
“theprint.in”,  
“[deccanchronicle.com](http://deccanchronicle.com)”,  
“[financialexpress.com](http://financialexpress.com)”,  
“[thehindubusinessline.com](http://thehindubusinessline.com)”,  
“[ndtvprofit.com](http://ndtvprofit.com)”,  
“[hindustantimes.com](http://hindustantimes.com)”,  
“[news18.com](http://news18.com)”,  
“[newindianexpress.com](http://newindianexpress.com)”  
] but the result refernece links were:

URLs:  
(0, ‘[Sensex jumps 1,200 points: 3 things to know about today’s stock market bull run - India Today](https://www.indiatoday.in/business/story/stock-market-today-sensex-jumps-1200-points-nifty-3-things-to-know-stock-market-bull-run-2637706-2024-11-22)’)  
(1, ‘[https://www.business-standard.com/markets/news/sensex-zooms-1200-pts-nifty-atop-23-700-what-s-driving-the-markets-today-124112200596\_1.html](https://www.business-standard.com/markets/news/sensex-zooms-1200-pts-nifty-atop-23-700-what-s-driving-the-markets-today-124112200596_1.html)’)  
(2, ‘[https://www.youtube.com/watch?v=4nYRGUmhG5c](https://www.youtube.com/watch?v=4nYRGUmhG5c)’)  
(3, ‘[Stock Market Today: Market Wrap: RIL, IT stocks fire Sensex 1,960 points higher, Nifty tops 23,900. Top 6 factors behind the bull run - The Economic Times](https://economictimes.com/markets/stocks/news/bank-stocks-lift-sensex-over-500-points-higher-nifty-back-above-23500/articleshow/115550080.cms)’)  
(4, ‘[Stock Market Highlights: Nifty rebounds above 23,500 level, 200 DEMA; pullback rally eyes 24k resistance. How to trade on Monday - The Economic Times](https://economictimes.com/markets/stocks/live-blog/bse-sensex-today-live-nifty-stock-market-updates-22-november-2024/liveblog/115546523.cms)’)

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77/4 "2025-05-15T00:13:52Z")

</div>

`search_domain_filter` does not work for domain blacklisting either:  
`"search_domain_filter": ["-domain1.com", "-domain2.com", "-domain3.com"]`

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/search-domain-filter-not-working-getting-citations-outside-my-domain-list/77/5 "2025-05-15T00:13:54Z")

</div>

I apologize for the mistake on our documentation but the search\_domain\_filter is a beta feature. If you don’t have access to it the API does not take it into account.
