added
New DQL JSON Export filter - ' &filterExclude'
April 2nd, 2025 by Kris Negulescu
When exporting data from collections via DQL, you have always had the option of specifying ONLY the fields you want to be returned in the JSON output by using the '&filter=' param (i.e. &filter=id%20name%20homepageUri
added to a query like this).
https://kg.diffbot.com/kg/v3/dql?type=query&token=TOKEN&query=type%3AOrganization+types%3A%22Company%22&size=25&filter=id%20name%20homepageUri
But this approach can be unwieldy if you have a long list of attributes to include or if you only want to exclude a few attributes per entity in the output.
Now, instead of specifying the fields you want to include, you can exclude fields you do not want returned when exporting data by using the &filterExclude=
param (i.e. &filterExclude=subsidiaries%20technologies%20customers
)
https://kg.diffbot.com/kg/v3/dql?type=query&token=TOKEN&query=type%3AOrganization+types%3A%22Company%22&size=25&filterExclude=subsidiaries%20technologies%20customers