URLs with reserved characters throws error in search_domain_filter

mulvad
Tue, 13 Jan 2026 17:47:39 +0000
Bug Reports

Describe the Bug

If I pass this URL in search_domain_filter: https://seinfeld.fandom.com/wiki/The_Seinfeld_Chronicles the https://api.perplexity.ai/chat/completions works fine. If I instead use this URL: https://en.wikipedia.org/wiki/The_Stake_Out_(Seinfeld) I get this error: {“error”:{“message”:“Validation error: search_domain_filters must be a valid domain name, but got https://en.wikipedia.org/wiki/The_Stake_Out\_%2528Seinfeld%2529",“type”:“invalid_search_domain_filter”,"code”:400}}

Expected Behavior

The URL would work as other URLs work

Actual Behavior

The error as described above.

Steps to Reproduce

1. Call the API with the following request: As described above

2. Observe the unexpected behavior.

2 posts - 1 participant