Universiti Kebangsaan Malaysia Content API

Pages, posts and media.

Operations 4

GET /wp/v2/pages List published pages #
GET /wp/v2/pages/{id} Retrieve one page #
GET /wp/v2/posts List published posts #
GET /wp/v2/media List media items #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ukm-content-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ukm-content-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UKM Web REST API (WordPress wp/v2) Content API
  version: wp/v2
  summary: Unauthenticated read access to Universiti Kebangsaan Malaysia's own website content.
  description: Universiti Kebangsaan Malaysia runs its main web estate on self-hosted WordPress and leaves the WordPress REST API open for unauthenticated reads on its own domain.
  contact:
    name: Universiti Kebangsaan Malaysia
    url: https://www.ukm.my/portal/
  x-operator: institution
  x-institution: Universiti Kebangsaan Malaysia
  x-software: WordPress (REST API wp/v2)
  x-provenance:
    generated: '2026-09-01'
    method: probed
    source: https://www.ukm.my/portal/wp-json/
servers:
- url: https://www.ukm.my/portal/wp-json
  description: UKM main portal (www.ukm.my/portal)
- url: https://www.ukm.my/beritaukm/wp-json
  description: Berita UKM news site
tags:
- name: Content
  description: Pages, posts and media.
paths:
  /wp/v2/pages:
    get:
      operationId: listPages
      tags:
      - Content
      summary: List published pages
      description: Returns published pages as JSON. Verified live on the portal install 2026-09-01 (63 KB for a single page record). Pagination is by `page` and `per_page`; total counts are returned in the X-WP-Total and X-WP-TotalPages response headers.
      parameters:
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: search
        in: query
        required: false
        schema:
          type: string
      - name: slug
        in: query
        required: false
        schema:
          type: string
      - name: parent
        in: query
        required: false
        schema:
          type: integer
      - name: orderby
        in: query
        required: false
        schema:
          type: string
          enum:
          - author
          - date
          - id
          - include
          - modified
          - parent
          - relevance
          - slug
          - title
          - menu_order
      responses:
        '200':
          description: Array of page objects.
          headers:
            X-WP-Total:
              description: Total number of matching records.
              schema:
                type: integer
            X-WP-TotalPages:
              description: Total number of pages of results.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Page'
              examples:
                page:
                  summary: One page record captured 2026-09-01 (rendered HTML elided)
                  externalValue: ../examples/ukm-portal-wp-page.json
        '400':
          $ref: '#/components/responses/RestError'
  /wp/v2/pages/{id}:
    get:
      operationId: getPage
      tags:
      - Content
      summary: Retrieve one page
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Page object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page'
        '404':
          $ref: '#/components/responses/RestError'
  /wp/v2/posts:
    get:
      operationId: listPosts
      tags:
      - Content
      summary: List published posts
      description: Returns published posts. On the portal install this returns an empty array — the portal carries no posts. The Berita UKM install is where the university's news lives.
      parameters:
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: search
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Array of post objects (empty on the portal install).
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Page'
        '400':
          $ref: '#/components/responses/RestError'
  /wp/v2/media:
    get:
      operationId: listMedia
      tags:
      - Content
      summary: List media items
      parameters:
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
      responses:
        '200':
          description: Array of media objects.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '400':
          $ref: '#/components/responses/RestError'
components:
  schemas:
    Page:
      type: object
      description: Field set observed on this deployment on 2026-09-01. No UKM-local fields were found; the record model is stock WordPress.
      properties:
        id:
          type: integer
        date:
          type: string
        date_gmt:
          type: string
        guid:
          $ref: '#/components/schemas/Rendered'
        modified:
          type: string
        modified_gmt:
          type: string
        slug:
          type: string
        status:
          type: string
        type:
          type: string
        link:
          type: string
          format: uri
        title:
          $ref: '#/components/schemas/Rendered'
        content:
          $ref: '#/components/schemas/Rendered'
        excerpt:
          $ref: '#/components/schemas/Rendered'
        author:
          type: integer
        featured_media:
          type: integer
        parent:
          type: integer
        menu_order:
          type: integer
        comment_status:
          type: string
        ping_status:
          type: string
        template:
          type: string
        meta: {}
        class_list:
          type: array
          items:
            type: string
        _links:
          type: object
    Rendered:
      type: object
      properties:
        rendered:
          type: string
        protected:
          type: boolean
    RestError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: object
          properties:
            status:
              type: integer
  responses:
    RestError:
      description: WordPress REST error envelope. `code` is a machine-readable slug such as `rest_post_invalid_page_number` or `rest_invalid_param`; `data.status` repeats the HTTP status.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RestError'