X Ads API (Twitter Ads) for Developers
Join 200,000+ of the world’s most ambitious developers and builders
- Case study
- Case study
Save 4-6 weeks of development
X Ads API
Tevanio API
RecommendedAn access application that can take weeks
No X Ads API application
OAuth 1.0a signatures on every request
OAuth 1.0a signing handled
Funding instruments and line items to wire up
Promote your scheduled posts
Location IDs to resolve before targeting
A standard Bearer token
A separate integration per ad network
One API for 9 ad networks
Get your first campaign under 10 minutes
- 01
Connect your account
Connect the X account you post from, then pick its ad account. Ads are included on every Tevanio account.
- 02
Create or boost a campaign
Pick a post to promote or write a new one, then set a budget, dates and countries. Do it via API or ask your AI agent through Tevanio MCP.
- 03
Track and adjust
Pause campaigns, change budgets or pull reports from your app or your agent, without opening X Ads Manager.
Everything you need to run X Ads
Campaigns and line items
Campaign, line item and promoted post in one call, with a daily budget and date range.
Custom audiences
Build audiences from hashed emails and include or exclude them on any campaign.
Promote existing posts
Promote any post from your connected X account, including ones scheduled through Tevanio.
Spend and results without opening another dashboard
Every campaign and its status in one table
Ad analytics
Spend, impressions, clicks, CTR, CPC, CPM, video views and web conversions over a date range, per campaign and promoted post.
Country targeting
Target campaigns by country, alongside your own audiences.
Campaign control
Pause, resume, rename or delete campaigns and line items, and change budgets.
Three ways in. Same API behind all of them
Write it yourself with the SDKs, hand it to an agent over MCP, or run it from a shell.
import Tevanio from '@tevanio/node';const tevanio = new Tevanio(); // reads TEVANIO_API_KEYconst { data: ad } = await tevanio.adcampaigns.createStandaloneAd({ body: { accountId: 'acc_xxx', adAccountId: '18ce54d4x5t', name: 'Spring launch', goal: 'traffic', budgetAmount: 25, budgetType: 'daily', body: 'Shipping today at Acme', linkUrl: 'https://acme.com', countries: ['US'], },});Build one integration
and run ads on 9 networks with it
- Meta
- Google Ads
- TikTok
- X
- OpenAI
- Microsoft Advertising
Frequently Asked Questions
Start running X Ads today
Full REST API for campaigns, promoted posts and audiences.
- SOC 2
- GDPR compliant
- 99.97% uptime
- Under 50ms response