Test data for twitter ads api




Is there a way to create test data for testing the twitter ads api?


Hi, @allaniftrue. Could you please explain what you’re trying to do?


I wanted to pull data from twitter using specifically this API. Is there any test data that I can test my account into? Because creating an AD is not free if im not mistaken


Thanks for clarifying. There is not any test data that I’m aware of.

To use the GET /1/accounts/:account_id/reach_estimate endpoint, you can make a request similar to the following:

$ twurl -H ads-api.twitter.com "/1/accounts/xxxxx/reach_estimate?product_type=PROMOTED_TWEETS&bid_amount_local_micro=2000000&currency=USD&campaign_daily_budget_amount_local_micro=5000000&objective=TWEET_ENGAGEMENTS&broad_keywords=twitter" | jq .

  "data_type": "reach_estimate",
  "data": {
    "impressions": {
      "min": 283,
      "max": 425
    "count": {
      "min": 237,
      "max": 355
    "infinite_bid_count": {
      "min": 20266601,
      "max": 30399901
    "engagements": {
      "min": 7,
      "max": 10
    "estimated_daily_spend_local_micro": {
      "min": 4000000,
      "max": 6000000
  "request": {
    "params": {
      "bid_amount_local_micro": 2000000,
      "product_type": "PROMOTED_TWEETS",
      "objective": "TWEET_ENGAGEMENTS",
      "account_id": "18ce54aymz3",
      "broad_keywords": [
      "currency": "USD",
      "followers_of_users": null,
      "campaign_daily_budget_amount_local_micro": 5000000

You can customize the request to reflect the campaign you’re interested in creating.

Hope this helps!


Hey @allaniftrue,

We have a sandbox API endpoint that you can use to generate test data. Please note that only a subset of our Ads API endpoints are available through the sandbox endpoint.

Hope that helps!


@allaniftrue: Was this what you needed? Or are there still issues?