The backlinks I get from the get cards endpoints is currently an array of ids. I could then query stuff like title/markup/HTML, but then having to parse these myself to get the context is a bit cumbersome.
Would be really nice if backlink contexts are already included, along with the link text for highlighting.
We could look into adding ‘expand’ support to the certain endpoints like card backlinks or parent, but this would return the entire card object for that backlink – rather than the specific matching reference (highlighted in purple above). Since our apps are all offline-first, all this indexing is done on your device rather than via our API, which is a lot faster and more robust.
The most simple solution for now would be just to add some more code to your first API query, adding another get specific cards to fetch the data on those backlinked cards and then finding the matching text yourself using the card_id’s in the markup.