GET /read/menu/

Default reader menu.

Resource URL

Type URL and Format
GET https://public-api.wordpress.com/rest/v1/read/menu/

Query Parameters

Parameter Type Description
context (string)
display:
(default) Formats the output as HTML for display. Shortcodes are parsed, paragraph tags are added, etc..
edit:
Formats the output for editing. Shortcodes are left unparsed, significant whitespace is kept, etc..
http_envelope (bool)
false:
(default)
true:
Some environments (like in-browser Javascript or Flash) block or divert responses with a non-200 HTTP status code. Setting this parameter will force the HTTP status code to always be 200. The JSON response is wrapped in an "envelope" containing the "real" HTTP status code and headers.
pretty (bool)
false:
(default)
true:
Output pretty JSON
meta (string) Optional. Loads data from the endpoints found in the 'meta' part of the response. Comma separated list. Example: meta=site,likes
fields (string) Optional. Returns specified fields only. Comma separated list. Example: fields=ID,title
callback (string) An optional JSONP callback function.

Response Parameters

Parameter Type Description
default (array) Default list of endpoints for the reader.
subscribed (array) List of the user's subscribed topics.
recommended (array) A list of recommended topics.

Example

cURL

curl 'https://public-api.wordpress.com/rest/v1/read/menu/?pretty=1'

PHP

<?php

$options  = array (
  'http' => 
  array (
    'ignore_errors' => true,
  ),
);

$context  = stream_context_create( $options );
$response = file_get_contents(
  'https://public-api.wordpress.com/rest/v1/read/menu/?pretty=1',
  false,
  $context
);
$response = json_decode( $response );

?>

Response Body

{
    "default": {
        "freshly-pressed": {
            "title": "Freshly Pressed",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/freshly-pressed"
        }
    },
    "subscribed": [

    ],
    "recommended": {
        "2806": {
            "ID": "2806",
            "title": "Art & Design",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/art-design\/posts"
        },
        "178": {
            "ID": "178",
            "title": "Books",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/books\/posts"
        },
        "179": {
            "ID": "179",
            "title": "Business",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/business\/posts"
        },
        "929": {
            "ID": "929",
            "title": "Cars",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/cars\/posts"
        },
        "1098": {
            "ID": "1098",
            "title": "Culture",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/culture\/posts"
        },
        "406": {
            "ID": "406",
            "title": "Family",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/family\/posts"
        },
        "3737": {
            "ID": "3737",
            "title": "Fashion",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/fashion\/posts"
        },
        "586": {
            "ID": "586",
            "title": "Food",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/food\/posts"
        },
        "376": {
            "ID": "376",
            "title": "Humor",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/humor\/posts"
        },
        "1099": {
            "ID": "1099",
            "title": "Nature",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/nature\/posts"
        },
        "67": {
            "ID": "67",
            "title": "Sports",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/sports\/posts"
        },
        "113835": {
            "ID": "113835",
            "title": "Staff Picks",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/staff-picks\/posts"
        },
        "200": {
            "ID": "200",
            "title": "Travel",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/travel\/posts"
        }
    }
}