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
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl 'https://public-api.wordpress.com/rest/v1.2/sites/{{$site}}/post-counts/{{$post_type}}?http_envelope={{$http_envelope}}&pretty={{$pretty}}&fields={{$fields}}&author={{$author}}' -X GET -H 'Accept: application/json' -H 'Content-Type: application/json'
Get site post counts by type · WordPress.com · OpenIntegrations