WordPress REST API access and pricing
The direct answer
WordPress ships a built-in JSON interface, the REST API, at /wp-json/ on your own site, with no API key to request and no per-call price.
Reading public content needs no credentials at all; writing does, whether you're calling it from a script or from an automation tool such as Activepieces.
That's where the real work starts. "Free" describes the endpoint, not the operational cost of authenticating, throttling and debugging it. The facts below are checked against the official WordPress developer documentation as of 2026-12-03.
"Free" describes the endpoint, not the operational cost of authenticating, throttling and debugging it.
What follows covers where the API lives, what it costs and whether your hosting arrangement changes either answer:
- The base URL is your site address followed by /wp-json/.
- There's no API key to apply for and no developer account to register.
- WordPress doesn't meter or bill API calls; any charge comes from your host or plan.
- Self-hosted sites have the API by default, while WordPress.com depends on the plan.

Self-hosted WordPress versus WordPress.com
On a self-hosted install the REST API is part of core, so a site you run yourself serves it without a plugin. Your host or a security plugin can still block or restrict it, which is a common source of confusing errors later.
WordPress.com is different. Sites on plans that allow plugins and custom code generally behave like self-hosted installs. Sites on lower plans use WordPress.com's own API and its OAuth flow. Check your plan before you design anything around /wp-json/.
Nothing is charged per request. The cost shows up elsewhere: server load on your host, and engineering time.
Because core has no built-in rate limit, you must plan your own throttling, and that doesn't need a developer on staff.
Describe the paced WordPress job in the built-in chat of Activepieces, and it builds and publishes the flow, the same artifact someone would otherwise assemble by hand.
It sits under the same RBAC and audit logs as every other flow, and each run leaves a trace that anyone on the team can read without specialist training. MoneyGram and Moneypenny are among the teams that run Activepieces.
This takes minutes, not a project: automate it in Activepieces free.
WordPress REST API endpoints and functions
Reads are mostly open and writes never are. The REST API exposes seven core resources under the /wp-json/wp/v2/ namespace, most of them readable without credentials, while every write requires authentication, which means data modifications are protected from unauthenticated requests.

That split decides how much auth work you actually take on.
WordPress REST API core resources in wp/v2
Request the discovery document at /wp-json/ first. Every site publishes one, listing the namespaces and routes that site has registered, and a host or plugin may have changed what's available, so the document is the only reliable record of what your particular site serves.
The wp/v2 namespace is the core set that the REST API Handbook documents.
Read the table below as a map of where authentication becomes unavoidable, which is the column to plan your credentials around.
It shows each core resource, its route, whether anonymous visitors can read it, what a write demands, and what you would typically use it for.
| Resource | Route under /wp-json/wp/v2/ |
Public read access | Write requirement | Typical use |
|---|---|---|---|---|
| Posts | posts |
Published posts only | Authenticated user with edit capability | Syndicating or publishing articles |
| Pages | pages |
Published pages only | Authenticated user with edit capability | Managing static content |
| Media | media |
Items attached to public content | Authenticated user with upload capability | Uploading images and files |
| Comments | comments |
Approved comments | Authentication for moderation; commenting rules depend on site settings | Moderation queues, sync to support tools |
| Users | users |
Limited public profile fields, typically authors | Authenticated user with user-management capability | Provisioning accounts, author lookups |
| Taxonomies | taxonomies, categories, tags |
Term and taxonomy definitions | Authenticated user with term-management capability | Organizing content |
| Settings | settings |
None | Administrator authentication | Reading and changing site configuration |
Test each route you depend on, because a credential that works for posts may still fail on settings, the only resource here with no anonymous read.
WordPress REST API public reads versus authenticated writes
Anything visible on the public site is generally readable without a key, which makes read-only integrations cheap to start. The cost arrives with the first write. You must choose an authentication method, and the capability attached to that user caps what the call can do.

Run an integration as an editor and settings refuses it, so give it a dedicated account holding only the permissions it needs.
Once your editorial workflow uses drafts, a sync that worked anonymously in testing can silently miss content. Drafts, private posts and unapproved comments return only to authenticated requests.
Custom WordPress REST API routes from plugins
Before you assume a route behaves like a core one, check the discovery document, then the plugin's own documentation.
Plugins and themes can register their own namespaces beside wp/v2, and many do, for forms, commerce, SEO fields and custom post types.
Those routes carry no uniform permission model. Each plugin author decides who may read and write, so the Handbook doesn't cover them.
WordPress API authentication: four methods compared
For server-side scripts and integrations that write to your site, Application Passwords are the practical default; cookie with nonce covers logged-in browser code, and OAuth or JWT require plugins.
Roughly eightfold: that is how far the vulnerability index climbs, from 1382 to 11334, in the Patchstack figures via wp-content.co. Site share moves only from 39.5 to 43.6.
The attack surface is growing far faster than the install base, so a leaked credential is likelier to meet an exploit chain.
As the table shows, only two methods ship in core, and the cost of a leak differs sharply by method.
| Method | Audience | Setup effort | Shipped in core | Risk if leaked |
|---|---|---|---|---|
| Cookie with nonce | Logged-in browser code | Low | Yes | Limited to one session |
| Application Passwords | Scripts and integrations | Low | Yes | Full user rights until revoked |
| OAuth via plugin | Third-party apps acting for users | High | No | Scoped, expiring tokens |
| JWT via plugin | Headless and mobile clients | Medium | No | Usable until the token expires |
To create an Application Password:
- Open your user profile and find the Application Passwords section.
- Name the password after the integration, so you can revoke it alone.
- Click Add New and copy the value immediately; WordPress shows it once.
- Send it as HTTP Basic auth with your username, over HTTPS.

Use a dedicated low-privilege user, since the password carries that user's full capabilities.
Inside an authenticated session, browser code sends the session cookie plus a nonce. Without the nonce, WordPress treats requests as unauthenticated. It suits admin-side scripts, not external callers.
Neither OAuth nor JWT is in core, so each adds a plugin to patch and trust. Choose OAuth when users grant access to a third-party app, and JWT for headless clients.
For sites hosted on WordPress.com, you register an app to receive a client ID and secret, then run the OAuth2 flow against it. Application Passwords aren't your path there.
A minimal working WordPress REST API request
Run these against a site you control, so a mistake costs you one draft. A read needs no credentials, and a write needs one Application Password sent as HTTP Basic auth.
curl -i "https://example.com/wp-json/wp/v2/posts?per_page=100"
curl -i -X POST "https://example.com/wp-json/wp/v2/posts" \
-u "username:application-password" \
-H "Content-Type: application/json" \
-d '{"title":"Test post","content":"Hello","status":"draft"}'
Keep the returned id for later updates: the POST returns 201 Created and the new post as JSON.
The -i flag matters on the read: the response headers X-WP-Total and X-WP-TotalPages give the full post count and page count. Without them you can't tell whether you fetched everything.
Past 100 posts you need a loop, because WordPress caps per_page at 100; a larger site needs a loop over page until you reach X-WP-TotalPages.
Look at the run trace below and you'll see the same shape as the write call:
- a POST
- an authorization header
- a body
- a completed run with each step's input and output

When a call like this fails, that record is where you see which step broke and with what payload.
Hosted sites can differ, because the paths above assume self-hosted WordPress, where /wp-json/ sits on your own domain.
Whether Application Passwords work depends on whether your plan lets you run plugins and control security settings. Check this before debugging credentials, because a 401 may be policy, not a typo.
Pricing per request and plan requirements
On a self-hosted site nothing is charged per request, so the real cost is your host's capacity.
There's no built-in rate limit, so a loop that fetches pages as fast as it can may be throttled or blocked by your host or a security plugin, and the error won't come from WordPress. Add your own pacing from the first script.
You can follow the rest of this with the builder open. Start free, no card.
WordPress REST API rate limiting and throttling
Whatever throttling you meet, it does not come from WordPress core, which enforces no rate limit on the REST API. It comes from the layers around it: your host, a CDN, a firewall, a security plugin, or WordPress.com's own platform rules.
WordPress REST API core has no rate limit
Core documents no request ceiling, which means a script that loops without pacing won't be stopped by WordPress itself.
You never configured the first limit you hit, and you can't see it in the REST docs. It belongs to whoever sits in front of your site, and it can change when your host or a plugin updates its rules.
WordPress.com is the exception to look at separately: check its developer documentation for any limits it states for its own platform, and don't assume self-hosted behavior carries over.
WordPress REST API host and firewall throttling limits
When throttling arrives, each source announces itself differently.
The table shows how throttling appears for each one, the status code you'll usually see, and how to confirm the source. Use it to identify who is blocking you before you change any code, because the fix differs by layer.
| Source | How throttling shows up | Typical status code | How to check |
|---|---|---|---|
| Host | Slow responses, dropped connections, or a generic error page | 429 or 503 | Read the host's error log and its resource or usage panel |
| CDN | Block or challenge page served before WordPress runs | 429 | Inspect response headers for the CDN's name, then its dashboard logs |
| WAF | Requests refused as suspicious, often on POST or odd user agents | 403 | Review the firewall's event log for the blocked rule |
| Security plugin | Lockouts or blocked IPs after repeated requests or failed logins | 403 or 429 | Check the plugin's blocked-requests or lockout log |
| WordPress.com | Platform-side refusal on its hosted API | 429 | Read WordPress.com's developer docs and the response body |
A 403 is the ambiguous one: it can mean a firewall rule or a real permission failure, so confirm in the logs before you retry. After you know the source, you can pace around it.
Retry only on 429 and 503, wait longer after each failure, add random jitter so parallel workers don't retry together, and honor a Retry-After header if one arrives.
Don't retry a 403 blindly: repeated attempts against a firewall can extend a block rather than clear it.
Common WordPress REST API errors and their fixes
When a REST call fails, the error code usually tells you which layer failed: WordPress itself, a plugin, or something in front of both.
Most errors trace to one of seven causes. Because a blocked request can fail in different places, read the code and the HTTP status together before changing anything.
Use the table below to decide whether the fault is in your request, your credentials, or your hosting stack. It pairs each code with its cause, the fix, and the WordPress documentation to check.
| Error | Cause | Fix | Docs link |
|---|---|---|---|
| rest_no_route | The URL matches no registered endpoint, often because of permalinks or a wrong namespace | Resave permalinks, confirm the route path and namespace | developer.wordpress.org/rest-api |
| rest_forbidden | Credentials are missing or the user lacks the capability for that action | Authenticate, then use a user with the right role | developer.wordpress.org/rest-api/using-the-rest-api/authentication |
| rest_cannot_create | The authenticated user can't create that content type | Grant the role the capability, or use a different user | developer.wordpress.org/rest-api/reference/posts |
| rest_invalid_param | A field has the wrong type, format or value | Compare the payload against the endpoint's argument list | developer.wordpress.org/rest-api/reference/posts |
| incorrect_password | The Application Password or user password is wrong | Generate a new Application Password and paste it exactly | developer.wordpress.org/rest-api/using-the-rest-api/authentication |
| REST disabled by plugin | A security or performance plugin blocks unauthenticated or all REST access | Check the plugin's REST setting and allow your user or route | developer.wordpress.org/rest-api |
| Stripped Authorization header | The server or proxy drops the header before PHP sees it | Pass the header through in the server config | developer.wordpress.org/rest-api/using-the-rest-api/authentication |
Each row is expanded below, starting with the one that depends on your routes.
404 and rest_no_route
If you get rest_no_route, WordPress received the request but found no handler for that path and method. Check the namespace and version segment first, such as /wp-json/wp/v2/posts.
If the path is right, resave permalinks, since plain permalinks can leave the /wp-json/ prefix unresolved.
A 404 from the web server with no JSON body points to a rewrite rule problem at the host rather than to WordPress.
401 and 403 on authenticated calls
rest_forbidden and rest_cannot_create both mean WordPress knew who you were, or couldn't tell, and refused the action. Distinguish a missing credential from a missing capability: the first is fixed by authenticating, the second only by changing the user's role.
incorrect_password is a credential fault, so regenerate the Application Password rather than retrying.
If a 403 comes back with an HTML body, not JSON, it usually comes from a firewall or security plugin. The rule from above still applies: stop and diagnose rather than resend.
Read the data.params detail instead of guessing: rest_invalid_param names the offending field in its response.
Common causes are a string where an integer is expected, an unrecognised status value, or a malformed date. Fix the single field named and resend; sending the same payload again returns the same error.
Stripped Authorization header and HTTPS requirement
When a host running PHP through CGI or FastCGI, or a proxy, removes the Authorization header, WordPress sees an unauthenticated request and returns rest_forbidden despite correct credentials. The fix is a server rule that forwards the header, which you may need your host to apply.
A plain HTTP endpoint can make authentication fail in a way that looks like a bad password, because Application Passwords also generally require HTTPS on the site. Confirm both before regenerating credentials.
What remains is usually a host-specific rule once the table's causes are ruled out. The run trace in a platform is the quickest way to see which layer rejected the call.
Call the WordPress API without code using Activepieces
When the job is publishing or updating posts from a form, a spreadsheet row or an AI draft, Activepieces fits: WordPress is one of its 751 integrations, and the step holds the credentials, makes the REST call and records what each step returned, on unlimited flows on every plan, including free.

It's not the right tool for every WordPress workload, and the limits are worth stating before you commit.
Connect with an Application Password
The WordPress integration authenticates with an Application Password, the per-user credential WordPress generates from the profile screen.
You supply your site URL, your username and that password once, and Activepieces stores them as a named connection that every step reuses, so you never paste a secret into individual requests.

The core is MIT-licensed, and on a self-hosted instance or the enterprise cloud tier those connection secrets can be routed to your own secret manager instead.
If a request is later rejected, revoke that one password in WordPress and nothing else on the account is affected.
In the screenshot below, a flow titled "AI Blog Writer" shows a trigger, two OpenAI steps and a WordPress step selected on the canvas.
Its configuration panel has Action set to Create Post, the connection named "wordpress", the site URL, and the Title and Content fields mapped to the outputs of the earlier OpenAI steps.

The takeaway is that a draft pipeline is three field mappings, not an authentication layer you build yourself.
Each step's input and output stays visible after a run. When a host, plugin or security layer rejects the call, you can see which step failed and what came back.
Prebuilt actions versus custom API call
For the common cases, such as creating a post, the prebuilt actions need no knowledge of routes or request bodies.
When you need an endpoint they don't expose, a custom API call action lets you send a request to any REST route on your site, reusing the same connection. That covers most one-off gaps without leaving the builder.

Code is still the better choice in three situations:
- Bulk migrations, where you want batching, retries and checkpoints you control.
- Custom routes with bespoke logic, which belong in a plugin you version and test.
- High volume, where WordPress has no built-in rate limit and you need to throttle requests yourself to protect your host.
For the rest, a flow is faster to build and easier to hand to a colleague.
Frequently asked questions
Once the build-or-flow decision is made, these are the edge cases that remain. They were checked on 3 December 2026, and host or plugin changes can alter any of them on your own site.
Keys and cost
Do I need an API key to use the WordPress API? No, WordPress has no API keys, and public reads such as published posts need no credentials.
Anything that writes or reads private data needs authentication, usually an application password over HTTPS, so you still choose and store a credential yourself.
Is the WordPress REST API free? Yes, it ships in WordPress core at no charge, with no metered usage or per-call billing.
Your costs are the server capacity it consumes and any paid plugins for stronger authentication. Because core has no rate limit, a runaway integration loads your host instead of hitting a quota.
Availability and hosting
Is the WordPress REST API enabled by default? Yes, a current install serves it from the /wp-json/ path without configuration.
Security plugins, firewalls and some hosts can block or restrict it, so a 401 or 403 on a fresh site often comes from that layer rather than from WordPress itself.
Can I use the WordPress API with WordPress.com? Yes, but access works differently from a self-hosted site. WordPress.com sites are reached through its own API gateway, authenticated with OAuth instead of application passwords.
Which features are available depends on your plan, so check it before you design around a given endpoint.
Legacy options
Is XML-RPC still an option instead of REST? It still ships in core, but it's the older interface, and many hosts and security plugins disable it because it's a common brute-force target.
Use REST for new work and treat XML-RPC as a fallback for legacy tools that require it.
Related reading
References
Build it
Set this up in minutes.
No code required. Connect your accounts, and Activepieces runs it from there.
Start free Talk to sales


