Paste one or more WordPress URLs to retrieve their Post / Page IDs instantly.
Step 1 β Direct REST API β The tool calls yoursite.com/wp-json/wp/v2/posts?slug=your-slug directly. This works when the WordPress site allows cross-origin requests (most do).
Step 2 β CORS Proxy fallback β If the direct call is blocked by the browser's same-origin policy, the tool retries via corsproxy.io (a free, open-source proxy). This resolves the vast majority of CORS issues.
"Not Found" β REST API returned an empty result. The post may be a draft, the slug may differ, or it's a custom post type not registered in the REST API.
"Blocked" β Both direct and proxy requests failed. The site has fully disabled its REST API (e.g., via a security plugin like Wordfence), or is behind aggressive bot protection (Cloudflare).
| URL | Post ID | Type | Status |
|---|
Every piece of content in WordPress β posts, pages, custom post types β is assigned a unique numeric ID. This Post ID is used in WordPress URLs, REST API calls, database queries, and many plugins. Knowing the Post ID of a page is essential for developers and advanced WordPress users.
| Method | How to Do It | Requires |
|---|---|---|
| WordPress Admin | Hover over post in Posts list β ID appears in URL | Admin access |
| REST API | yourdomain.com/wp-json/wp/v2/posts?slug=your-slug | Public access |
| Edit Screen | Open the post editor β ID is in the browser URL | Admin access |
| This Tool | Paste the URL β ID fetched automatically | Just the URL |
This tool queries the WordPress REST API endpoint (/wp-json/wp/v2/) using the slug extracted from your URL. It tries both the posts and pages endpoints automatically. If direct access is blocked by CORS, it falls back to a proxy. The process typically takes 1β3 seconds per URL.