Sign in

Get site post counts by type

documented

Get number of posts in the post type groups by post status.

GET /sites/{site}/post-counts/{post_type}Sitesno implementation yet0 runs

Input

site*
Site (WordPress.com site ID or domain)
e.g. example.wordpress.com
post_type*
Post type
e.g. post
http_envelope
HTTP envelope
true|false
pretty
Pretty JSON output
true|false
fields
Fields to return
comma-separated
author
Author ID (optional)
author_id
Calls WordPress.com as you (your API key is your account); keychains.dev holds the credentials.