GET /sites/$site

Get information about a site.

Resource URL

Type URL and Format

Method Parameters

Parameter Type Description
$site (int|string) Site ID or domain

Query Parameters

Parameter Type Description
http_envelope (bool)
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)
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
ID (int) Site ID
name (string) Title of site
description (string) Tagline or description of site
URL (string) Full URL to the site
jetpack (bool) Whether the site is a Jetpack site or not
post_count (int) The number of posts the site has
subscribers_count (int) The number of subscribers the site has
lang (string) Primary language code of the site
icon (array) An array of icon formats for the site
logo (array) The site logo, set in the Customizer
visible (bool) If this site is visible in the user's site list
is_private (bool) If the site is a private site or not
is_following (bool) If the current user is subscribed to this site in the reader
options (array) An array of options/settings for the blog. Only viewable by users with post editing rights to the site. Note: Post formats is deprecated, please see /sites/$id/post-formats/
meta (object) Meta data



curl ''



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

$context  = stream_context_create( $options );
$response = file_get_contents(
$response = json_decode( $response );


Response Body

    "ID": 3584907,
    "name": " News",
    "description": "The latest news on and the WordPress community.",
    "URL": "http:\/\/",
    "jetpack": false,
    "subscribers_count": 15703853,
    "icon": {
        "img": "https:\/\/\/blavatar\/e6392390e3bcfadff3671c5a5653d95b",
        "ico": "https:\/\/\/blavatar\/89c338a5b41552b7228042f1b22d9362"
    "logo": {
        "id": 0,
        "sizes": [],
        "url": ""
    "is_private": false,
    "is_following": false,
    "meta": {
        "links": {
            "self": "https:\/\/\/rest\/v1\/sites\/3584907",
            "help": "https:\/\/\/rest\/v1\/sites\/3584907\/help",
            "posts": "https:\/\/\/rest\/v1\/sites\/3584907\/posts\/",
            "comments": "https:\/\/\/rest\/v1\/sites\/3584907\/comments\/",
            "xmlrpc": "https:\/\/\/xmlrpc.php"