Describe the Bug
So around 6-8 hours ago I was still able to retrieve search results when using search_domain_filter=[``sec.gov``]. However, I recently tested out the API and found empty results. This has been going on for about 3 hours. Any help would be appreciated!
Expected Behavior
Found search results.
Actual Behavior
No search results found.
Steps to Reproduce
Run the following code with Perplexity’s Python SDK
from perplexity import Perplexity
client = Perplexity(api_key=os.getenv("PPLX_API_KEY"))
search = client.search.create(
query="Tesla 2024 10K",
search_domain_filter=[
"sec.gov"
],
max_results=10,
max_tokens_per_page=1024
)
if not search.results:
print("No results found")
else:
for result in search.results:
print(f"{result.title}: {result.url}")
API Request & Response (if applicable)
Request
curl https://api.perplexity.ai/search -H "Authorization: Bearer <API_KEY>" -H "Content-Type: application/json" -d '{
"query": "Apple 10-K 2024", "search_domain_filter": ["sec.gov"]
}' | jq
Response
{
"results": [],
"id": "c7befd33-11f4-489a-bab2-c84c0e06116e"
}
Environment
- API Version: Search API
- SDK (if applicable): Python SDK v0.17.0
- Operating System: Ubuntu 24.04
Logs or Screenshots (if applicable)
N/A
Additional Context
N/A