Perplexity - broken references/links
Eli
When working with Perplexity API, responses include anchors for the links, but not the links themselves. For example
All official documentation and guides direct users to the web interface for these actions, not an API[3][5].
When using Perplexity web UI, I can click at [3] or [5], but in MindMac UI these are just plaintext
Eli
what perplexity says about this issue
This happens because the API response, by default, returns only the text content with numbered references in the format [1], [2], [3], but it does not automatically include the mapping from each reference number to the actual source URL in the "content" field. The link-to-anchor mapping is not embedded in the plain text but is provided separately in other fields of the API response object—typically under a field such as "references," "sources," or something similar
To access the links:
After calling the API, inspect the full JSON response.
Look for fields such as "references," "sources," or similar, which will contain an array or object listing the URLs and corresponding anchor numbers.
You can then programmatically link the [1], [2], [3] anchors in the content with the actual URLs provided in these fields, presenting them in your application as clickable links, tooltips, or footnotes.
Basically, you need to additionally parse Perplexity responses to find the actual links