GET /read/recommendations/mine/

Get recommendations to blogs you may like

Resource URL

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

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.
exclude (array|string) Array of blog_ids to exclude.
number (int) Number of blogs to return (optional, default is 4).
lang (string) Language code for localized reason strings.
source (string) The source this request comes from: ["mobile", "reader_sidebar", "reader_inline", "recap_2013"]

Response Parameters

Parameter Type Description
blogs (array) List of blogs you may like

Example

cURL

curl 'https://public-api.wordpress.com/rest/v1/read/recommendations/mine/?lang=en&exclude[]=1234&exclude[]=5678&number=4'

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/recommendations/mine/?lang=en&exclude[]=1234&exclude[]=5678&number=4',
  false,
  $context
);
$response = json_decode( $response );

?>

Response Body

{
    "blogs": [
        {
            "follow_source": "other",
            "blog_id": 66388862,
            "follow_reco_id": "537746980",
            "image": "https:\/\/2.gravatar.com\/avatar\/88c36b5790fff245e6347c3859189129?s=116&d=identicon&r=G",
            "nonce": "66365e8fec",
            "reason": "Followed by bloggers you follow",
            "score": "1",
            "title": "Sixty-Sixty",
            "title_short": "Sixty-Sixty",
            "url": "http:\/\/public-api.wordpress.com\/bar\/?stat=follow_recos_click_to_blog&bin=other&redirect_to=http%3A%2F%2Fsixtysixtyblog.wordpress.com&sr=0&signature=4f845775c4f93588c13731fc1e66ecea",
            "blog_domain": "http:\/\/sixtysixtyblog.wordpress.com",
            "email_follow_url": "http:\/\/wordpress.com\/following\/add-follow\/18342963\/66388862\/?key=3cd9c7aa779214fd72ae8d3d67e1c8f1eb23978e"
        },
        {
            "follow_source": "other",
            "blog_id": 27590,
            "follow_reco_id": "537747255",
            "image": "https:\/\/2.gravatar.com\/avatar\/b7fdd6477cc13ca16e8358a0725bc02c?s=116&d=identicon&r=G",
            "nonce": "a0c96e39b4",
            "reason": "Followed by people with similar interests",
            "score": "1",
            "title": "Shaun Andrews",
            "title_short": "Shaun Andrews",
            "url": "http:\/\/public-api.wordpress.com\/bar\/?stat=follow_recos_click_to_blog&bin=other&redirect_to=http%3A%2F%2Fshaunandrews.wordpress.com&sr=0&signature=669778d410028d92ae197013102ca8d5",
            "blog_domain": "http:\/\/shaunandrews.wordpress.com",
            "email_follow_url": "http:\/\/wordpress.com\/following\/add-follow\/18342963\/27590\/?key=eb77947cb33d6106e4ffbfed5665178ce7310be4"
        },
        {
            "follow_source": "other",
            "blog_id": 3888873,
            "follow_reco_id": "537747256",
            "image": "https:\/\/secure.gravatar.com\/blavatar\/ea07c343601a3f889ec8f5723d882908?s=116",
            "nonce": "41d268b57a",
            "reason": "Followed by people with similar interests",
            "score": "0.636364",
            "title": "write meg!",
            "title_short": "write meg!",
            "url": "http:\/\/public-api.wordpress.com\/bar\/?stat=follow_recos_click_to_blog&bin=other&redirect_to=http%3A%2F%2Fwritemeg.com&sr=0&signature=c33d495180ef408b014cbc87ee43c10d",
            "blog_domain": "http:\/\/writemeg.com",
            "email_follow_url": "http:\/\/wordpress.com\/following\/add-follow\/18342963\/3888873\/?key=379569b46afe0a3a3833f79f52fef23507d12939"
        },
        {
            "follow_source": "other",
            "blog_id": 43175353,
            "follow_reco_id": "537746987",
            "image": "https:\/\/2.gravatar.com\/avatar\/8afc317748b4f37f123db3b10f8bc138?s=116&d=identicon&r=G",
            "nonce": "d4cdf920fb",
            "reason": "Followed by bloggers you follow",
            "score": "0.5",
            "title": "Cycling for Conservation",
            "title_short": "Cycling for Conservation",
            "url": "http:\/\/public-api.wordpress.com\/bar\/?stat=follow_recos_click_to_blog&bin=other&redirect_to=http%3A%2F%2Fcycling4conservation.org&sr=0&signature=865ab7f3f1b11fab350d29c1167cf2b9",
            "blog_domain": "http:\/\/cycling4conservation.org",
            "email_follow_url": "http:\/\/wordpress.com\/following\/add-follow\/18342963\/43175353\/?key=620335833863e7bcb9a2ea678a2393242f12db33"
        }
    ]
}