meta-api-reference

meta-api-reference is a skill for Claude Code, Codex from swan-gtm/gtm-skills. It costs 38 tokens per session (8,622 once invoked), scanned A, original, MIT.

A reference for working directly with the Meta Marketing API, the programming interface for managing Facebook and Instagram advertising data. It documents campaigns, ad sets, ads, audiences, and performance reports.

In plain words
What is it for?
Use it to create or update campaigns, manage targeting and creatives, retrieve insights, and work with advertising audiences through code.
Why use it?
It gives developers the field names, account hierarchy, endpoints, and request patterns needed to automate Meta advertising tasks. This reduces guesswork when integrating with the API.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or update campaigns, manage targeting and creatives, retrieve insights, and work with advertising audiences through code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swan-gtm/gtm-skills/meta-api-reference
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add swan-gtm/gtm-skills --skill meta-api-reference
Clone the repo
git clone --depth 1 https://github.com/swan-gtm/gtm-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for meta-api-reference

README.md
[![agentmods](https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-api-reference/github.svg)](https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-api-reference)
Your own site
<a href="https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-api-reference"><img src="https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-api-reference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for meta-api-reference

Your own site · 80×15
<a href="https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-api-reference"><img src="https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-api-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.08622
Opus 5.5 $0.00015 $0.03449
Sonnet 5.5 $0.00008 $0.01724
Haiku 4.5 $0.00004 $0.00862

Measured 1mo ago against content hash 070cf41bbdf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

meta-api-reference scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

r = requests.get(url, params=params)
skills/ivan-falco/meta-api-reference/SKILL.md · 892 lines

How it starts

The opening of the file, as written. The whole thing — 892 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Meta Marketing API - Complete Reference

Configuration

  • API Version: v22.0
  • Base URL: https://graph.facebook.com/v22.0/
  • Two tokens in .env:
    • ADS_MANAGER_ACCESS_TOKEN - Marketing API (campaign management, insights, reporting)
    • AD_LIBRARY_ACCESS_TOKEN - Ad Library API (competitor research)
  • Token expiry: ~60 days from last refresh (check .env comment for date)

Account Hierarchy

Ad Account (act_XXXX)
  -> Campaign (objective, budget if CBO, bid strategy)
    -> Ad Set (targeting, budget if ABO, optimization, schedule)
      -> Ad (creative reference, status)
        -> Ad Creative (media, copy, CTA, url_tags)

Campaign Schema

Endpoint: POST /{account_id}/campaigns

Required Fields

Field Type Description
name string Campaign name
objective enum Marketing objective (ODAX framework)
status enum Campaign status
special_ad_categories array Special category declarations (pass [] if none)

Optional Fields

Field Type Description
daily_budget int (cents) Daily budget for CBO (5000 = $50.00)
lifetime_budget int (cents) Lifetime budget for CBO
bid_strategy enum Bidding strategy
buying_type enum Buying type
is_adset_budget_sharing_enabled string "true" for CBO, "false" for ABO
execution_options array ["validate_only"] or ["include_recommendations"]

Objective (ODAX Framework)

Value Description Use For
OUTCOME_AWARENESS Brand awareness, reach Top of funnel
OUTCOME_ENGAGEMENT Post engagement, video views, page likes Mid funnel
OUTCOME_TRAFFIC Link clicks, landing page views Mid funnel
OUTCOME_LEADS Lead gen forms, conversions (lead) Bottom of funnel
OUTCOME_SALES Conversions (purchase), catalog sales Bottom of funnel
OUTCOME_APP_PROMOTION App installs, app engagement App campaigns

Read the full file on GitHub · 892 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 892 lines · 38 tokens per session scan A 070cf41bbdf9

Subscribe to this mod's changes

meta-api-reference is a skill published in the GitHub repository swan-gtm/gtm-skills (221 stars, last pushed 8d ago), licensed MIT. It adds 38 tokens to every session and 8,622 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

ad-campaign-analyzer

Analyze cross-channel campaign data, quantify uncertainty, and propose evidence-labeled budget tests without overstating causality.

sickn33/agentic-awesome-skills · 28 tokens

paid-ad-copy-writer

Write paid ad copy for affiliate offers across ad platforms. Triggers on: "write ad copy", "Facebook ad for affiliate", "Google Ads copy", "TikTok ad script", "Pinterest ad", "paid traffic to affiliate", "create ad campaign", "ad headlines", "ad descriptions", "scale with paid ads", "run ads for my affiliate link"…

Affitor/affiliate-skills · 91 tokens

gooseworks

GooseWorks growth coworker and router for markets, competitors, audiences, creators, campaigns, ads, photos, graphics, video, content, email, SEO, social, leads and contacts. Use for brand facts or copy too, so offers, prices, rules, audience and bestsellers reach the brand's Marketing Brain.

gooseworks-ai/goose-skills · 70 tokens

adcp-advertising

Automate advertising campaigns with AI. Create ads, buy media, manage ad budgets, discover ad inventory, run display ads, video ads, CTV campaigns, and optimize ad performance. Perfect for marketing automation, programmatic advertising, media buying, ad management, campaign optimization, creative management, and…

LeoYeAI/openclaw-master-skills · 103 tokens

yandex-direct

Skill "yandex-direct" from VKirill/claude-lane-stack, covering version requirements, usage, use this skill when, do not use this skill when and purpose.

VKirill/claude-lane-stack · 246 tokens

yandex-direct-creatives

An advertising-writing guide for Yandex.Direct, a Russian online advertising platform. It turns keyword clusters from Key Collector, a keyword research tool, into campaigns, ad groups, and ads.

VKirill/claude-lane-stack · 111 tokens