The quickest way to find a WordPress ID is to open the relevant admin list, hover over the item, and read the edit link shown in your browser’s status bar. The number in a parameter such as post=123 or tag_ID=67 is the item’s ID. For comments and programmatic work, read the id field from the site’s WordPress REST API.
Find a post, page, category, tag, or user ID in the WordPress admin
Use this method when you can sign in to the WordPress dashboard and need the ID of a specific record.
- Sign in to your WordPress admin area.
- Open the list containing the item: Posts → All Posts, Pages → All Pages, or Posts → Categories. Open the corresponding list for tags or users when needed.
- Hover over the item’s title or name without clicking it.
- Look at the destination URL displayed in your browser’s status bar, usually at the bottom of the window.
- Identify the relevant numeric parameter. For example, the number in
post=123is the post or page ID, while the number intag_ID=67is a term ID.
The parameter name depends on the record type. Do not assume that every WordPress screen uses post=; use the parameter associated with the link you are inspecting.
Typical admin URL patterns
| Record | Where to look | What to extract |
|---|---|---|
| Post | Posts → All Posts | The number in the edit link’s post parameter, such as post=123 |
| Page | Pages → All Pages | The numeric ID in the page’s edit link; the exact parameter can vary by screen |
| Category | Posts → Categories | The number in a term link such as tag_ID=67; inspect the actual link because parameter names vary |
| Tag | Posts → Tags | The numeric term ID in the link |
| User | Users → All Users | The numeric user ID in the user’s edit link |
Find a comment ID with the WordPress REST API
Comments are easiest to identify through the REST API. Every WordPress site exposes its own API, so replace example.com below with the site you are querying.
#1 Best Overall
List comments
Request the comments collection:
GET https://example.com/wp-json/wp/v2/comments
Each returned comment object has an id property. That value is the comment’s unique ID.
Retrieve one comment
Once you know an ID, request the individual resource:
Rank #2
GET https://example.com/wp-json/wp/v2/comments/123
Here, 123 is the comment ID. The route and response are documented by the WordPress REST API reference.
Do not confuse a comment ID with a user ID
A comment’s author field contains the related user ID only when the comment was made by a registered WordPress user. Comments submitted by visitors may not have a registered user associated with them, so the comment’s own id and the author value are not interchangeable.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
Discover the API and check access
The REST API is site-specific. You can inspect the site’s API index at:
GET https://example.com/wp-json/
An OPTIONS request can also help discover an endpoint’s supported methods and capabilities. Whether a comments or users endpoint is available, and which records it returns, depends on the site configuration and your permissions. A public, unauthenticated request is not guaranteed to expose every comment or user record.
Rank #4
Choose the right lookup method
| Need | Best method | Why |
|---|---|---|
| One post, page, category, tag, or user while signed in | Admin list and hover | Fast visual lookup with no API tooling |
| A comment ID | REST API comments resource | The response exposes the unique value as id |
| Many records or an automated workflow | REST API | Structured JSON is easier to process in scripts and integrations |
| No dashboard access | REST API, subject to permissions | API access may work when administrative access is unavailable, but site restrictions still apply |
Troubleshooting
- No URL appears when hovering: move the pointer directly over the item title or name and wait for the browser status bar to update. You can also right-click and copy the link address.
- The URL contains several numbers: use the number attached to the parameter that identifies the record, not an unrelated pagination or filter value.
- The API returns an error: verify the site’s
/wp-json/index, the endpoint path, authentication requirements, and your account’s permissions. - A comment has no usable author ID: it may have been submitted by an unregistered visitor. Use the comment object’s
idfor the comment itself.
Key distinction
WordPress IDs are numeric database identifiers, while slugs are human-readable URL names. Use the ID when a plugin, API request, or developer setting specifically asks for it; changing a title or slug does not change the existing record’s ID.
Quick Recap
Best Value
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Recommended Free Tools

