Automattic Wordads API

The wordads API from Automattic — 5 operation(s) for wordads.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /wpcom/v2/sites/{wpcom_site}/wordads/site-info Get WordAds site info for a site · GET /wpcom/v2/sites/{wpcom_site}/wordads/site-info #
Ask an LLM
“How do I see WordAds earnings and settings for my site?”
“What WordAds site info is available for a site?”
Tell an agent
Get WordAds site info for site {wpcom_site}.
Show WordAds earnings and settings for {wpcom_site}.
GET /wpcom/v2/wordads/redirect Redirect a WordAds click · GET /wpcom/v2/wordads/redirect #
Ask an LLM
“How do I track a WordAds click through a redirect?”
“Can I verify a WordAds redirect signature?”
Tell an agent
Redirect {redirect} from {source} {medium} {id} {campaign} {content} with signature {signature}.
Track a WordAds click on {redirect} using {source} {medium} {id} {campaign} {content} and signature {signature}.
POST /wpcom/v2/wordads/send-email Send an email to a WordAds contact · POST /wpcom/v2/wordads/send-email #
Ask an LLM
“How do I email a WordAds contact from my site?”
“Can I send a WordAds contact an email with a subject and content?”
Tell an agent
Send {email} an email with subject {subject} and content {content}.
Email {email} about {product} with subject {subject} and content {content}.
POST /wpcom/v2/wordads/send-guides-email Send a WordAds guides email · POST /wpcom/v2/wordads/send-guides-email #
Ask an LLM
“How do I send a WordAds guide email to a user?”
“Can I email a WordAds guide with a credit amount and expiry?”
Tell an agent
Send a {type} WordAds guide email to user {wpcom_user_id} on site {wpcom_site_id} with {credits_amount} credits expiring {expire_date} ({expire_seconds} seconds).
Email {wpcom_user_id} a {type} guide for site {wpcom_site_id} worth {credits_amount} credits, valid until {expire_date}.
POST /wpcom/v2/wordads/send-notification Send a WordAds notification · POST /wpcom/v2/wordads/send-notification #
Ask an LLM
“How do I notify a user about a WordAds campaign?”
“Can I send a WordAds notification for a post and ad type?”
Tell an agent
Send a {type} notification to user {user_id} on blog {blog_id} about post {post_id}, campaign {campaign_id}, ad type {ad_type}, title {title}.
Notify {user_id} on blog {blog_id} of WordAds campaign {campaign_id} for {ad_type} ad {post_id}, title {title}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/automattic:automattic-wordads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automattic-wordads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Wordads API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:
- name: wordads
paths:
  /wpcom/v2/sites/{wpcom_site}/wordads/site-info:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWordadsSiteInfo
      summary: GET /wpcom/v2/sites/{wpcom_site}/wordads/site-info
      tags:
      - wordads
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/wordads/redirect:
    get:
      operationId: getWpcomV2WordadsRedirect
      summary: GET /wpcom/v2/wordads/redirect
      tags:
      - wordads
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: source
        in: query
        required: true
        schema:
          type: string
        description: utm_source
      - name: medium
        in: query
        required: true
        schema:
          type: string
        description: utm_medium
      - name: id
        in: query
        required: true
        schema:
          type: string
        description: utm_id
      - name: campaign
        in: query
        required: true
        schema:
          type: string
        description: utm_campaign
      - name: content
        in: query
        required: true
        schema:
          type: string
        description: utm_content
      - name: redirect
        in: query
        required: true
        schema:
          type: string
          format: uri
        description: Redirect URL
      - name: signature
        in: query
        required: true
        schema:
          type: string
        description: HMAC signature
  /wpcom/v2/wordads/send-email:
    post:
      operationId: postWpcomV2WordadsSendEmail
      summary: POST /wpcom/v2/wordads/send-email
      tags:
      - wordads
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                subject:
                  type: string
                content:
                  type: string
                product:
                  type: string
              required:
              - email
              - subject
              - content
  /wpcom/v2/wordads/send-guides-email:
    post:
      operationId: postWpcomV2WordadsSendGuidesEmail
      summary: POST /wpcom/v2/wordads/send-guides-email
      tags:
      - wordads
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                wpcom_user_id:
                  type: integer
                wpcom_site_id:
                  type: integer
                credits_amount:
                  type: string
                expire_seconds:
                  type: integer
                expire_date:
                  type: string
              required:
              - type
              - wpcom_user_id
              - wpcom_site_id
              - credits_amount
              - expire_seconds
              - expire_date
  /wpcom/v2/wordads/send-notification:
    post:
      operationId: postWpcomV2WordadsSendNotification
      summary: POST /wpcom/v2/wordads/send-notification
      tags:
      - wordads
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: number
                blog_id:
                  type: number
                post_id:
                  type: number
                campaign_id:
                  type: number
                title:
                  type: string
                type:
                  type: string
                  enum:
                  - approved
                  - rejected
                  - cancelled
                  - performed
                ad_type:
                  type: string
              required:
              - user_id
              - blog_id
              - post_id
              - campaign_id
              - title
              - ad_type
components:
  schemas:
    WPRestError:
      type: object
      description: WordPress REST API error envelope (observed on public-api.wordpress.com).
      properties:
        code:
          type: string
          example: rest_unauthorized
        message:
          type: string
          example: Authentication required.
        data:
          type: object
          properties:
            status:
              type: integer
              example: 401
  securitySchemes:
    oauth2:
      type: oauth2
      description: WordPress.com OAuth 2.1, per https://public-api.wordpress.com/.well-known/openid-configuration
      flows:
        authorizationCode:
          authorizationUrl: https://public-api.wordpress.com/oauth2-1/authorize
          tokenUrl: https://public-api.wordpress.com/oauth2-1/token
          refreshUrl: https://public-api.wordpress.com/oauth2-1/token
          scopes:
            global: ''
            auth: ''
            openid: ''
            profile: ''
            email: ''
            users: ''
            sites: ''
            posts: ''
            comments: ''
            taxonomy: ''
            follow: ''
            sharing: ''
            freshly-pressed: ''
            notifications: ''
            insights: ''
            read: ''
            stats: ''
            media: ''
            menus: ''
            batch: ''
            videos: ''
    bearerAuth:
      type: http
      scheme: bearer