X Organic (Twitter Organic)

Prev Next

X or Twitter Organic are non-paid, natural reach and engagement of tweets. It includes the interactions, retweets, likes, and mentions that happen without any promotion or advertising efforts, showcasing the genuine interest and response from the Twitter user base.

Refer to Twitter's official documentation to see all available endpoints from the Twitter API.

Authorize Connection to X (Twitter)

In X (Twitter)

To authorize your Twitter account, you will need client ID and client secret. Make sure your account is subscribed to a paid plan.

  1. In your Twitter account, navigate to the Developer Portal
  2. Scroll down and click on Subscribe to Basic. You can also choose Sign up for Free Account option but you won't be able to retrieve any Tweets data.
    Twitter Organic - User Authentication
  3. Write your use case for accessing the Twitter API, check all boxes, and Submit. You can use this template:
    I aim to gather insights from my Tweets' data using the API. My current focus is on extracting metrics like the number of comments, impressions, and likes. I do not intend to use this data for generating new content. While I may consider obtaining data from my other accounts in the future, it is not in the immediate plan.
    
  4. In the menu on the left, click on Projects and Apps.
  5. Select your newly created app, scroll down to User authentication settings, and click on Set up.
    Twitter Organic - Developers portal
  6. Configure your user authentication settings:
    1. App permissions: Make sure to check read permissions.
    2. Type of App: Select the Web App, Automated App or Bot option.
    3. App info:
      1. Callback URL/Redirect URL: Insert the Dataddo redirect URL (https://app.dataddo.com/settings/service/twitter).
      2. Website URL: Use your website URL (e.g. https://example.com/).
  7. Save and copy your Client ID and Client Secret. If you lose your Client Secret, you will have to regenerate a new one.
DATADDO TIP

You can access your client ID again on the Keys and tokens tab.

In Dataddo

  1. On the Authorizers page, click on Authorize New Service and select Twitter Custom.
  2. Fill in the following fields:
    1. Client ID: Your Twitter client ID.
    2. Client Secret: Client secret to your client ID.
  3. Rename your authorizer for easier identification and click on Save.
  4. You will get redirected to the Twitter login page. Login with your usual Twitter credentials.

Create Twitter Organic Data Source

  1. On the Sources page, click on the Create Source button.
  2. Select the connector from the list and name your data source.
  3. On the Dataset step, select your dataset.
    DATADDO TIP

    If you're unsure which dataset to select, use the search bar to look for datasets with the desired attributes or metrics.

  4. On the Account step select your authorizer from the drop-down menu.
    Didn't find your authorizer?

    Click on Add new Account at the bottom of the drop-down and follow the on-screen prompts. You can also go to the Authorizers tab and click on Add New Service.

  5. On the Attributes and Metrics step, select the metrics and attributes you want to extract.
    Create a source using a custom-schema connector.
  6. On the Metadata step, select which metadata fields such as extraction time to add to your data.
  7. On the Snapshot step:
    1. Configure your sync frequency or click Show advanced settings to set the exact synchronization time.
      DATADDO TIP

      To load historical data, refer to the Data Backfilling article.

    2. [Optional] Enable the Allow Empty Data Extractions toggle to allow the extraction when no data is available.
  8. In the top-right corner, click Test Data button to preview extracted data. Adjust the date range for specific time frame.
  9. Click on Save and congratulations, your new data source is ready!


Troubleshooting

Data Preview Unavailable

No data preview when you click on Test Data might be caused by an issue with your source configuration. The most common causes are:

  • Date range: Try a smaller date range. You can load the rest of your data afterward using manual data load.
  • Insufficient permissions: Please make sure your authorized account has at least admin-level permissions.
  • Invalid metrics, attributes, or breakdowns: You may not have any data for the selected metrics, attributes, or breakdowns.
  • Incompatible combination of metrics, attributes, or breakdowns: Your selected combination cannot be queried together. Please refer to the service's documentation to view a full list of metrics that can be included in the same data source.

Related Articles

Now that you have successfully created a data source, see how you can connect your data to a dashboarding app or a data storage.

Sending Data to Dashboarding Apps

Sending Data to Data Storages

Other Resources