GET /read/menu/

Get default reader menu.

Resource Information

   
Method GET
URL https://public-api.wordpress.com/rest/v1.1/read/menu/
Requires authentication? No

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.

Resource Errors

These are the possible errors returned by this endpoint.

HTTP Code Error Identifier Error Message
400 invalid_tag The tag requested does not seem to be valid.
400 not_subscribed You are not subscribed to the specified tag.
400 already_subscribed You are already subscribed to the specified tag.

Example

curl 'https://public-api.wordpress.com/rest/v1/read/menu'
<?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',
	false,
	$context
);
$response = json_decode( $response );
?>

Response

{
    "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",
            "slug": "art-design",
            "display_name": "art-design",
            "type": "tag"
        },
        "178": {
            "ID": 178,
            "title": "Books",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/books\/posts",
            "slug": "books",
            "display_name": "books",
            "type": "tag"
        },
        "258845": {
            "ID": 258845,
            "title": "Business & Technology",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/business-technology\/posts",
            "slug": "business-technology",
            "display_name": "business-technology",
            "type": "tag"
        },
        "63611190": {
            "ID": 63611190,
            "title": "Crafts & Fashion",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/crafts-fashion\/posts",
            "slug": "crafts-fashion",
            "display_name": "crafts-fashion",
            "type": "tag"
        },
        "1098": {
            "ID": 1098,
            "title": "Culture",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/culture\/posts",
            "slug": "culture",
            "display_name": "culture",
            "type": "tag"
        },
        "406": {
            "ID": 406,
            "title": "Family",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/family\/posts",
            "slug": "family",
            "display_name": "family",
            "type": "tag"
        },
        "960817": {
            "ID": 960817,
            "title": "Fiction & Poetry",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/fiction-poetry\/posts",
            "slug": "fiction-poetry",
            "display_name": "fiction-poetry",
            "type": "tag"
        },
        "586": {
            "ID": 586,
            "title": "Food",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/food\/posts",
            "slug": "food",
            "display_name": "food",
            "type": "tag"
        },
        "13985": {
            "ID": 13985,
            "title": "Health & Wellness",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/health-wellness\/posts",
            "slug": "health-wellness",
            "display_name": "health-wellness",
            "type": "tag"
        },
        "376": {
            "ID": 376,
            "title": "Humor",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/humor\/posts",
            "slug": "humor",
            "display_name": "humor",
            "type": "tag"
        },
        "35328892": {
            "ID": 35328892,
            "title": "Longreads",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/longreads\/posts",
            "slug": "longreads",
            "display_name": "longreads",
            "type": "tag"
        },
        "3750": {
            "ID": 3750,
            "title": "Magazines",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/magazines\/posts",
            "slug": "magazines",
            "display_name": "magazines",
            "type": "tag"
        },
        "10016773": {
            "ID": 10016773,
            "title": "Musings & Personal",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/musings-personal\/posts",
            "slug": "musings-personal",
            "display_name": "musings-personal",
            "type": "tag"
        },
        "84776": {
            "ID": 84776,
            "title": "News & Current Events",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/news-current-events\/posts",
            "slug": "news-current-events",
            "display_name": "news-current-events",
            "type": "tag"
        },
        "436": {
            "ID": 436,
            "title": "Photography",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/photography\/posts",
            "slug": "photography",
            "display_name": "photography",
            "type": "tag"
        },
        "87210105": {
            "ID": 87210105,
            "title": "Popular Culture & Entertainment",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/popular-culture-entertainment\/posts",
            "slug": "popular-culture-entertainment",
            "display_name": "popular-culture-entertainment",
            "type": "tag"
        },
        "26879": {
            "ID": 26879,
            "title": "Portfolios",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/portfolios\/posts",
            "slug": "portfolios",
            "display_name": "portfolios",
            "type": "tag"
        },
        "116": {
            "ID": 116,
            "title": "Religion",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/religion\/posts",
            "slug": "religion",
            "display_name": "religion",
            "type": "tag"
        },
        "38881": {
            "ID": 38881,
            "title": "Science & Nature",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/science-nature\/posts",
            "slug": "science-nature",
            "display_name": "science-nature",
            "type": "tag"
        },
        "1446729": {
            "ID": 1446729,
            "title": "Sports & Gaming",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/sports-gaming\/posts",
            "slug": "sports-gaming",
            "display_name": "sports-gaming",
            "type": "tag"
        },
        "200": {
            "ID": 200,
            "title": "Travel",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/travel\/posts",
            "slug": "travel",
            "display_name": "travel",
            "type": "tag"
        },
        "676": {
            "ID": 676,
            "title": "Websites",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/websites\/posts",
            "slug": "websites",
            "display_name": "websites",
            "type": "tag"
        },
        "998458": {
            "ID": 998458,
            "title": "Writing & Blogging",
            "URL": "https:\/\/public-api.wordpress.com\/rest\/v1\/read\/tags\/writing-blogging\/posts",
            "slug": "writing-blogging",
            "display_name": "writing-blogging",
            "type": "tag"
        }
    }
}