GET /sites/$site/follows/

List a site's followers in reverse chronological order

Resource URL

Type URL and Format
GET https://public-api.wordpress.com/rest/v1/sites/$site/follows/

Method Parameters

Query Parameters

Example

cURL

curl \
 -H 'authorization: Bearer YOUR_API_TOKEN' \
 'https://public-api.wordpress.com/rest/v1/sites/2916284/follows/'

PHP

<?php

$options  = array (
  'http' => 
  array (
    'ignore_errors' => true,
    'header' => 
    array (
      0 => 'authorization: Bearer YOUR_API_TOKEN',
    ),
  ),
);

$context  = stream_context_create( $options );
$response = file_get_contents(
  'https://public-api.wordpress.com/rest/v1/sites/2916284/follows/',
  false,
  $context
);
$response = json_decode( $response );

?>

Response Body

{
		"found" : 1,
		"users": [
		        {
		            "ID": 18342963,
		            "email": false,
		            "name": "binarysmash",
		            "nice_name": "binarysmash",
		            "URL": "http:\/\/binarysmash.wordpress.com",
		            "avatar_URL": "https:\/\/1.gravatar.com\/avatar\/a178ebb1731d432338e6bb0158720fcc?s=96&d=identicon&r=G",
		            "profile_URL": "http:\/\/en.gravatar.com\/binarysmash",
		            "site_ID": 17722165
		        },
	   ]
	}