The Streams API (SAPI) returns and receives all data in JSON format, making integration with other applications easy.
Use query objects to select only the data you want from the stream.
- Example Queries with SAPI Query Objects
Examples of SAPI queries using SAPI query objects include opening a stream, filtering a stream, changing the stream type, and monitoring campaign performance.
- SAPI Query Objects
The JSON objects used in the query have these values: access_token, query, command, stream_type, schema_version, and api_version.
- SAPI Query Statements, Clauses, and Operators
A good query selects only the necessary data to be streamed and kept in memory for processing.
- Example: Monitoring Campaign Performance
In this example, marketing executives want to monitor how the various categories are performing currently for a particular campaign in the UK.