X (Twitter) walkthrough
Connection
To connect X with your destination, refer to X connection topic. After you create the connection, choose a Source connection.
Predefined reports
Data Integration provides a convenient entry point and recommended approach for accessing a range of predefined reports. Each report has a concise data description, a list of customizable fields (if applicable), and the schema mapping.
Since these reports follow a standardized format, specific fields are restricted. You can access those fields only through Custom Reports.
Custom reports
To build your X River, choose your preferred report type: Statistics or Entity.
Statistics report
Procedure
- Navigate to the Data Integration Account.
- Select the connection that you created.
- Select the Accounts for the report.
- Choose the Entity to pull, metric group, and placements. The available entities are:
- Define report filters based on the selected entity.
- Specify the time period of the report.
- The End date can be left empty to pull data until the current time.
- The Start and End dates automatically update after each run, which facilitates continuous data extraction.
- The Start Date does not advance if a River run is unsuccessful. Optionally, click More Options to advance the start date even if the River run is unsuccessful (Not recommended).
- Set the time zone offset if the end date is empty.
- Use Days back to pull data from a specified number of days before the start date.
- Choose the breakdown granularity to group data either by Hour or Day.
- If dealing with a large amount of data, consider dividing the loading process into intervals using an Interval chunk size (optional).
- Optionally, enable the Include deleted results checkbox to identify deleted results in a separate column.
- To bypass errors for specific accounts, select the Ignore errors for accounts checkbox and list the relevant accounts.
- Save your River configuration.
- Execute the River to fetch data from X based on the specified parameters.
- The maximum time range for non-segmented queries is 90 days, and 45 days for segmented queries.
- Statistics and Campaigns rows do not appear if there is no data on the chosen day.
Entity report
Procedure
- Choose the Entity for retrieval. Available entities are:
- Select the accounts associated with the chosen entity.
- Specify whether to trim users:
- When set to
True, each Tweet returned contains only the author's numerical ID in the user object. - When set to
False, the complete user object is returned.
- When set to
- Enable the Normalize option to standardize result structures, which facilitates table import.
- Select the Extract Method.
- For Incremental Extraction, define the time period.
- The End date can be left empty to pull data until the current time.
- The Start and End dates automatically update after each run, which facilitates continuous data extraction.
- The Start Date does not advance if a River run is unsuccessful.
- Optionally, click More Options to advance the start date even if the River run is unsuccessful (Not recommended).
- Set the time zone offset if the end date is empty.
- Use Days back to pull data from a specified number of days before the start date.
- Optionally, include a column to flag deleted results by checking the Include deleted results checkbox.
- If you want to bypass errors for specific accounts, select the Ignore errors for accounts checkbox and specify the relevant accounts.
- Save your River configuration.
- Execute the River to retrieve data from X based on the specified parameters.
Rate limitation
If an endpoint has a rate limit of 900 requests per 15 minutes, you can make up to 900 requests within any 15-minute window.
The rate limits depend on the authentication method you use. For instance, OAuth 1.0a User Context grants one limit per time frame for each set of users' Access Tokens, whereas OAuth 2.0 Bearer Token assigns a distinct limit per time frame for your app's requests.