WordPress REST API Fields

#1027462
  • Resolved Kyle Rolfson
    Rank Math free

    I’m working on integrating with RankMath SEO via the WordPress REST API. I need comprehensive documentation on where RankMath stores its data in the WordPress database (which meta keys, option names, and tables are used), so I can properly read and update this data through the WordPress REST API. Specifically, I’d like to know the complete list of meta fields beyond the basic ones (rank_math_title, rank_math_description, rank_math_focus_keyword) and how they’re structured. Per my knowledge accessing the RankMath API doesn’t allow editing of the WordPress fields so I have to register these fields in order for the WordPress REST API to send those fields and data to me via an API call.

    1). At a minimum to continue my development I need the table and field name for where the “Permalink” data is stored in the WordPress data base. It shows this field in the Preview Snippet Editor.

    2). Where is the post SEO Score stored in the WordPress database? (Ex: 85/100)

    3). Where is the “Title” character and pixel count stored in the WordPress database? (Ex: x/60 (x/580px) These values show in the Preview Snippet Editor.

    4). Where is the “Permalink” character count stored in the WordPress database? (Ex: x/75) These values show in the Preview Snippet Editor.

    5). Where is the “Description” character and pixel count stored in the WordPress database? (Ex: x/160 (x/920px) These values show in the Preview Snippet Editor.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing regarding the integration with Rank Math SEO via the WordPress REST API. Unfortunately, we do not have comprehensive documentation on the specific database structure, including meta keys, option names, and tables used by Rank Math.

    For your specific questions:

    1. Permalink Data: The permalink data is typically stored in the post_name field of the wp_posts table. However, for any custom permalink structures or additional settings, you may need to check the Rank Math settings directly.

    2. Post SEO Score: The SEO score is not explicitly documented in the context provided, and it may be stored as a custom meta field associated with each post. You might want to explore the postmeta table for any relevant entries related to Rank Math.

    3. Title Character and Pixel Count: This information is usually calculated dynamically based on the title length and may not be stored directly in the database. It is often derived from the post_title field in the wp_posts table.

    4. Permalink Character Count: Similar to the title character count, this is likely calculated based on the permalink structure and may not be stored as a separate field in the database.

    5. Description Character and Pixel Count: The description is typically stored in the rank_math_description meta key in the wp_postmeta table, but the character and pixel counts are likely calculated dynamically as well.

    For more detailed information, we recommend checking the Rank Math documentation or exploring the database directly to identify any additional fields that may be relevant to your integration. If you have further questions or need assistance, please reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for raising this concern!

    Hello,

    Thank you so much for getting in touch.

    We have replied to your ticket here to address the same concern.

    We will now close this one in favor of that.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘WordPress REST API Fields’ is closed to new replies.