Deduplicate results in API