Marketing API

Reach more and earn more on Facebook and Instagram.

Read Docs

What is the Facebook Marketing API?

Marketing APIs are a collection of Graph API endpoints that can be used to help you advertise on Facebook and Instagram. From automated ads management and dynamic creative to targeting and optimization, the Facebook Marketing API can unlock new options for your business.

Facebook marketing technology gives businesses of any size the potential to build closer connections through smarter insights and precise measurement, gain greater reach through automation, and generate bigger returns through increased performance and workflow efficiency.

Marketing API from Facebook for Developers Footway Case Study Video

What can the Facebook Marketing API do?

The Marketing API is an HTTP-based API that you can use to query data, create and manage ads, and perform a wide variety of other tasks. The Marketing API can programmatically access Facebook's advertising platform and optimize your business operations.

More engaging stories for creators

Automate Ad Management

Drive workflow efficiency and build functionality that goes beyond manual ads management. Seamlessly create multiple ad templates at once to test different creative, bidding, or tagging strategies using our AdCopy API & Batch API.

 Control over your brand and content

Leverage Dynamic Creative

Find the most effective creative for your target audience by automatically creating different permutations. Keep things fresh by implementing creative rotation.

 Easier sharing experience for your users

Create Data-based Audiences

Easily create audience segments by integrating your CRM system with our API. Use first-party data, layered with Facebook’s advanced targeting capabilities, to retarget existing customers and reach new ones.

More engaging stories for creators

Optimize in Real Time

Manage and optimize ads in real time using rules-based ads management. Set up your own custom rules and notifications to start and stop ads, adjust bids, and even reallocate spend at different thresholds. With new scheduled and trigger-based rules, Facebook's automated rules engine makes automating optimization and ads management easier than ever.

 Control over your brand and content

Seamless Reporting and Analytics

Use the Ads Insights API to retrieve statistics about Ads, Ad Sets, and Campaigns. Identify which creative, targeting, and bidding combinations work best to move your campaign forward.

 Easier sharing experience for your users

Track Conversion Events

Optimize, report, and measure using the Conversions API: a secure method more reliable than traditional browser-based methods. Learn what the Conversions API can do for your business.

More developer tools to scale your business

See Facebook Business and Ads Products

Get our newsletter

Sign up for monthly updates from Meta for Developers.

Join our group

Like us on Facebook and join a community of fellow developers.