Creating Queries using Custom Data Sources

Create queries to retrieve the data from your custom data sources

To view your custom data, you must first create a query using your new custom data source. The process is broadly the same as described here with the exception of passing your custom data source ID in the contentSources field when POSTing your JSON. You may either only pass your custom data source or combine your custom data source with other content sources, like in this example call:

curl -X POST 'https://api.brandwatch.com/projects/398748937/query-validation' \
-H 'authorization: bearer xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxx' \
-H 'content-type: application/json' \
-d '{"booleanQuery": "@brandwatch","languages":["en"],"contentSources":["TWITTER",DATA_SOURCE_NUMERIC_ID]}'