How to Use Meta keyword ad search in Muse Code
Find Meta Ad Library ads mentioning a keyword, with advertiser names, copy, creative links, and landing URLs. Use it to research offers across advertisers or find brand mentions beyond the brand's own Facebook page.
Prompts to try with Meta keyword ad search in Muse Code
Copy an example into Muse Code, or ask in your own words.
Use Meta keyword ad search for running shoes in the United States and build a table in this project's research view with advertiser names, ad text, and destination URLs.
Use Meta keyword ad search for Black Friday in the United Kingdom and write the returned advertiser names, headlines, and landing URLs into a research CSV in this repository.
Use Meta keyword ad search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Meta keyword ad search and tell me what changed since last week.
Check Meta keyword ad search and summarize what you find in three bullet points.
How to set up Meta keyword ad search in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Meta keyword ad search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "adyntel/meta-ads/library/search", "input": { "keyword": "<keyword>" } }'
Then paste one of the prompts above: Muse Code finds Meta keyword ad search on Spiral, shows the price and runs it.
Meta keyword ad search providers and prices
Spiral runs Meta keyword ad search through Alexandria. Open a card for today's price, with every fee included.
What can you do with Meta keyword ad search in Muse Code?
Build a searchable reference of Meta ad copy, creative links, and landing destinations inside your project. Use the returned advertiser identities and run dates to support comparisons between brands or repeated searches.
Prepare a competitor messaging brief
Collect ads for a known brand or a product term. Compare the promises, headlines, and calls to action, with landing URLs beside each example.
Map advertised landing pages
Extract destination URLs from the returned ads and group them by product or offer. Use advertiser results for a brand audit and keyword results for a category review.
Build a creative research board
Organize returned image and video links alongside their ad text and advertiser names. Give the design team concrete references for discussing its next campaign.
Follow seasonal promotions
Repeat brand lookups or searches for terms such as Black Friday. Compare the returned offer language and run dates across checks.
Review messaging across markets
Compare the copy and destination URLs returned for the same advertiser or search term in different countries. Identify changes in language, product emphasis, and landing destinations.
Track changes in public ad copy
Compare repeated results to identify newly observed headlines, creative links, and destinations. Keep advertiser names attached so keyword matches from different businesses stay distinguishable.
More on Meta keyword ad search and Muse Code
Overview
Meta keyword ad search in other agents
Questions about Meta keyword ad search in Muse Code
Can Muse Code use Meta keyword ad search?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Meta keyword ad search like any built-in tool.
How much does Meta keyword ad search cost in Muse Code?
Up to $0.0977704 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.
Do I need an Alexandria account to use Meta keyword ad search in Muse Code?
No. Spiral runs Meta keyword ad search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Meta keyword ad search in Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Meta keyword ad search runs?
Meta keyword ad search runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.
What advertising data does Meta make available here?
The source covers Facebook and Instagram ads. Records can include ad text, creative URLs, landing URLs, page identity, publisher platforms, and start and end dates.
How soon can a newly launched ad appear?
Meta says ads appear in its library within 24 hours of their first impression. That describes the source library's publication window, rather than a guaranteed delivery time through Adyntel.
How far back does the archive go?
Retention depends on the ad: ads shown in the EU remain for one year after they stop, while political, election, and social-issue ads remain for seven years. Those windows do not establish a universal seven-year history for commercial campaigns.
Does searching a brand name return only that brand's ads?
No. A name search can return ads from any advertiser mentioning those words. An advertiser lookup scopes the research to the selected company or page.
Does one advertiser response contain every available ad?
Adyntel documents approximately 30 ads in the first advertiser page. Further pages remain available until the continuation token is null, so the first page alone can be incomplete.
Start using Meta keyword ad search in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


