# Same query yields inconsistent results between Perplexity API (sonar) and Web UI: API matches the wrong person, Web UI is correct

**URL:** <https://community.perplexity.ai/t/same-query-yields-inconsistent-results-between-perplexity-api-sonar-and-web-ui-api-matches-the-wrong-person-web-ui-is-correct/4015>\
**Category:** General\
**Tags:** search-api\
**Created:** [February 26, 2026, 3:34pm UTC](https://community.perplexity.ai/t/same-query-yields-inconsistent-results-between-perplexity-api-sonar-and-web-ui-api-matches-the-wrong-person-web-ui-is-correct/4015 "2026-02-26T15:34:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellowo](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/hellowo/32/1701_2.png) [@hellowo](https://community.perplexity.ai/u/hellowo)\
**Post date:** [February 26, 2026, 3:34pm UTC](https://community.perplexity.ai/t/same-query-yields-inconsistent-results-between-perplexity-api-sonar-and-web-ui-api-matches-the-wrong-person-web-ui-is-correct/4015/1 "2026-02-26T15:34:31Z")

</div>

Hi Perplexity team,  
We’ve encountered a reproducible issue while using the **Perplexity API (sonar)**: the **same query** produces clearly different conclusions between the **API** and the **Web UI**. The Web UI response is more cautious and aligns with what we expect, but the API returns a confident “profile-style” answer that appears to be **mapped to a different person with the same/similar name** , resulting in an incorrect conclusion.

## What we’re seeing

- **API result:** The API confidently outputs a person’s “title/experience/background,” but after verification it appears to be a **wrong match** (possibly due to differences in entity disambiguation, retrieval, or reranking).

- **Web UI result:** The Web UI indicates that the exact spelling does **not** directly match, then more carefully suggests possible name variants/candidates and explains the reasoning based on sources. This outcome is more accurate.

## Steps to reproduce

1. Use a query in the following format:  
`"<PersonName> <Region> <Company> LinkedIn"`

2. Call the **Perplexity API (sonar)** with that query and obtain the answer.

3. Run the **same query** in the **Perplexity Web UI** and compare the result.

## Expected behavior

The API result should be consistent with the Web UI, or at least:

- avoid confidently asserting a single identity when the match is ambiguous; and/or

- provide a Web-like disambiguation approach (name variants, multiple candidates, and stronger source-grounding).

## Actual behavior

The API returns a highly confident answer that appears to be **misattributed** to the wrong person, while the Web UI correctly handles ambiguity and avoids the wrong mapping.

## Questions

1. Do the **Web UI** and **API** use different retrieval/reranking/entity-disambiguation pipelines or different model versions?

2. Is there any API parameter/mode to make the API behavior closer to the Web UI (e.g., stricter grounding, citations-only output, stronger disambiguation)?

We’d appreciate any guidance on how to make the API results more consistent with the Web UI, or how to prevent the API from producing confident but incorrect entity mappings in ambiguous cases. Thank you!

---

<div class="post-metadata">

**Author:** ![Kesku](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/kesku/32/898_2.png) [@Kesku](https://community.perplexity.ai/u/Kesku)\
**Post date:** [February 26, 2026, 3:36pm UTC](https://community.perplexity.ai/t/same-query-yields-inconsistent-results-between-perplexity-api-sonar-and-web-ui-api-matches-the-wrong-person-web-ui-is-correct/4015/2 "2026-02-26T15:36:38Z")

</div>

Hi @hellowo, Right now there isn’t enough concrete detail for us to reliably reproduce what you’re seeing. To dig in, could you share:

- The **exact query** you’re sending to the API
- The **full API request payload** (model, parameters, etc.)
- A **sanitized snippet of the API response** that shows the incorrect “profile-style” answer
- A **screenshot or copy** of the corresponding Web UI answer for the same query

That will let us check whether there are any differences in configuration, model, or search behavior that explain the mismatch.

Separately, for new integrations we strongly recommend using the **Agent API with the `web_search` tool** instead of calling the legacy Sonar models directly.

You can find the Agent API docs here:

> **[Overview - Perplexity](https://docs.perplexity.ai/docs/getting-started/overview)**

If you share a concrete example (request + responses), we can check whether this is a configuration issue, a model behavior difference, or something we should treat as a bug on our side.
