• Resolved anupamasam

    (@anupamasam)


    Hi,

    Currently we have these API endpoints and Yoast feeds metadata into them, but it’s not in readable format.

    We want to create a customised API endpoint without noise and clearly readable, especially for the LLMs and search engines, preferably in the format

    • Example JSON output:

      {
        “title”: “Online MBA in UAE”,
        “url”: “https://yourdomain.com/online-mba-uae“,
        “content”: “Full clean text of the page…”,
        “categories”: [“MBA”, “Business”],
        “meta”: {
          “university”: “University of Dundee”,
          “duration”: “2 years”,
          “format”: “Online”
        }
      }

    Is it possible through this plugin?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nikunj Hatkar

    (@nikunj8866)

    Hi,

    Thank you for reaching out!

    The WPGetAPI plugin is designed to connect external APIs to WordPress, allowing you to send and display API data within your site. However, it doesn’t provide functionality to create or customize REST API endpoints for your WordPress content.

    If you’d like to create a custom endpoint with clean, structured JSON output (for example, for LLMs or search engines), you can do so using the built-in WordPress REST API features.

    You can find detailed documentation here: https://developer.ww.wp.xz.cn/rest-api/extending-the-rest-api/adding-custom-endpoints/.

    This guide explains how to register your own endpoints and control the data structure in the JSON response.

    Thanks.

    Thread Starter anupamasam

    (@anupamasam)

    Okay. Thank you.

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

The topic ‘Custom REST API Endpoints’ is closed to new replies.