> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Sprout Social

> Your Sprout Social account's connected social profiles, their daily metrics, post performance, and inbox messages.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/sprout-social.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=f9ebc5f56752a952f46e8e1f1aa1f4a7)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Needs&#x20;

`SPROUT_SOCIAL_API_KEY`

Endpoints

7

Auth

Key in header

[Vendor docs](https://api.sproutsocial.com/docs/)

&#x20;·&#x20;

[Pricing](https://sproutsocial.com/pricing/)

## Setup

| Variable | | What it is |
| - | - | - |
| `SPROUT_SOCIAL_API_KEY` | required | A Sprout Social API token (Generate API Token in the API Token Management section of Sprout; the plan must include API access and the user needs the API Permissions permission). Sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call but sprout-social.metadata.client takes a customer\_id in the path: read it from sprout-social.metadata.client first.
* Profile ids (customer\_profile\_id) come from sprout-social.metadata.profiles; analytics and messages filters need them.
* Rate limits: 60 requests a minute, refilled at one a second, and 250,000 a month; X-RateLimit-Limit and X-RateLimit-Remaining report where you stand; over the limit a call gets a 429.
* Filters are strings in Sprout's own syntax: field.op(values), e.g. customer\_profile\_id.eq(1234, 5678) or created\_time.in(2024-04-01T00:00:00..2024-04-30T23:59:59); '..' includes the end, '...' excludes it.
* Publishing, media upload and case changes are writes and are not in this entry; listening topics and cases are not listed either.

## Endpoints

GET

List my customers

The customer ids and names the token can reach.

[Open](#sprout-social-metadata-client)

GET

List connected profiles

The social profiles connected to a customer: customer\_profile\_id, network, name, native id and groups.

[Open](#sprout-social-metadata-profiles)

GET

List groups

The profile groups set up in Sprout; a group id is needed to filter messages.

[Open](#sprout-social-metadata-groups)

GET

List message tags

The message tags of a customer, active and archived.

[Open](#sprout-social-metadata-tags)

POST

Get profile analytics

Daily metrics (impressions, reactions, followers...) for owned social profiles over a reporting period.

[Open](#sprout-social-analytics-profiles)

POST

Get post analytics

Posts published by owned profiles, with their text, link and lifetime metrics.

[Open](#sprout-social-analytics-posts)

POST

List inbox messages

Inbound and outbound messages of a profile group (comments, mentions, DMs, replies) with the fields you ask for.

[Open](#sprout-social-messages-list)

### List my customers

GET

`/v1/metadata/client`

`sprout-social.metadata.client`

The customer ids and names the token can reach.

Input

No inputs.

[Vendor docs](https://api.sproutsocial.com/docs/#client-customer-id-endpoint) · Same job: [Cloudflare](https://docs.webrouter.net/data-apis/cloudflare.md#cloudflare-zones-list), [Google Tag Manager](https://docs.webrouter.net/data-apis/google-tag-manager.md#google-tag-manager-accounts-list), [Snitcher](https://docs.webrouter.net/data-apis/snitcher.md#snitcher-workspaces-list)

```python Python theme={null}
router.call_data_api("sprout-social.metadata.client")
```

```text MCP theme={null}
call_data_api(endpoint="sprout-social.metadata.client")
```

### List connected profiles

GET

`/v1/{customer_id}/metadata/customer`

`sprout-social.metadata.profiles`

The social profiles connected to a customer: customer\_profile\_id, network, name, native id and groups.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id, from sprout-social.metadata.client.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#customer-profiles-endpoint) · Same job: [Postiz](https://docs.webrouter.net/data-apis/postiz.md#postiz-integrations-list)

### List groups

GET

`/v1/{customer_id}/metadata/customer/groups`

`sprout-social.metadata.groups`

The profile groups set up in Sprout; a group id is needed to filter messages.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#customer-groups-endpoint) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-lists-list), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-lists-list), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-list), [Happenstance](https://docs.webrouter.net/data-apis/happenstance.md#happenstance-groups-list), [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-tags-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-lists-list)

### List message tags

GET

`/v1/{customer_id}/metadata/customer/tags`

`sprout-social.metadata.tags`

The message tags of a customer, active and archived.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#customer-tags-endpoint) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-lists-list), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-lists-list), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-list), [Happenstance](https://docs.webrouter.net/data-apis/happenstance.md#happenstance-groups-list), [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-tags-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-lists-list)

### Get profile analytics

POST

`/v1/{customer_id}/analytics/profiles`

`sprout-social.analytics.profiles`

Daily metrics (impressions, reactions, followers...) for owned social profiles over a reporting period.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id.
      </td>
    </tr>

    <tr><td>`filters` required</td><td>array</td><td>body</td><td>Both customer\_profile\_id.eq(...) (at most 100 ids) and reporting\_period.in(YYYY-MM-DD...YYYY-MM-DD) (at most one year). Example `["customer_profile_id.eq(1234, 5678)", "reporting_period.in(2024-08-01...2024-10-01)"]`</td></tr>
    <tr><td>`metrics` required</td><td>array</td><td>body</td><td>Profile metric names; which apply depends on the network. Example `["impressions", "reactions"]`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Rows per page, default 1000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#owned-profile-analytics-endpoint) · Same job: [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-stats-get), [Postiz](https://docs.webrouter.net/data-apis/postiz.md#postiz-analytics-channel)

> [!NOTE]
>
> * A POST that only reads: the query goes in the JSON body.
> * Days follow each network's own clock: UTC for X, LinkedIn, Pinterest and TikTok; Pacific time for Facebook, Instagram and YouTube.
> * Rows come back by day and profile; paging.total\_pages says how many pages there are.

### Get post analytics

POST

`/v1/{customer_id}/analytics/posts`

`sprout-social.analytics.posts`

Posts published by owned profiles, with their text, link and lifetime metrics.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id.
      </td>
    </tr>

    <tr><td>`filters` required</td><td>array</td><td>body</td><td>Both customer\_profile\_id.eq(...) (at most 100 ids) and created\_time.in(start..end). Example `["customer_profile_id.eq(1234)", "created_time.in(2024-04-06T00:00:00..2024-04-19T23:59:59)"]`</td></tr>
    <tr><td>`metrics` required</td><td>array</td><td>body</td><td>Post metric names. Example `["lifetime.impressions", "lifetime.reactions"]`</td></tr>
    <tr><td>`fields`</td><td>array</td><td>body</td><td>Post fields to return, e.g. text, perma\_link, created\_time; only guid when left out. Example `["created_time", "perma_link", "text"]`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Posts per page, default 50.
      </td>
    </tr>

    <tr><td>`sort`</td><td>array</td><td>body</td><td>field:direction pairs, e.g. created\_time:asc. Example `["created_time:asc"]`</td></tr>

    <tr>
      <td>
        `timezone`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Time zone name for the date filters, e.g. America/Chicago; answers are in UTC.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#post-analytics-endpoint) · Same job: [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-stats-get), [Postiz](https://docs.webrouter.net/data-apis/postiz.md#postiz-analytics-channel)

> [!NOTE]
>
> * A POST that only reads: the query goes in the JSON body.
> * Page paging stops at 10,000 posts. Past that, sort by guid:asc, include guid in fields, filter guid.gt(\<last guid>) instead of sending page, and repeat until data is empty.
> * Google Business Profile posts reach back 30 days only; review sites (Yelp, Trustpilot, TripAdvisor, Glassdoor) are not available.

### List inbox messages

POST

`/v1/{customer_id}/messages`

`sprout-social.messages.list`

Inbound and outbound messages of a profile group (comments, mentions, DMs, replies) with the fields you ask for.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Customer id.
      </td>
    </tr>

    <tr><td>`filters` required</td><td>array</td><td>body</td><td>group\_id.eq(one id) and created\_time.in(start..end), plus optional customer\_profile\_id.eq, action\_last\_update\_time.in, post\_type.eq, tag\_id.eq, language\_code.eq, from.guid.eq; or message\_id.eq(guids) alone (at most 100). Example `["group_id.eq(123)", "created_time.in(2024-04-01..2024-04-07)"]`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Message fields to return; only guid when left out.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Messages per page, default 50, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `timezone`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Time zone name for the date filters.
      </td>
    </tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        paging.next\_cursor from the previous answer.
      </td>
    </tr>

    <tr><td>`sort`</td><td>array</td><td>body</td><td>created\_time:asc or created\_time:desc (default). Example `["created_time:desc"]`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.sproutsocial.com/docs/#messages-endpoint) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-messages-list), [AgentPhone](https://docs.webrouter.net/data-apis/agentphone.md#agentphone-numbers-messages), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-emails-received-list), [Saperly](https://docs.webrouter.net/data-apis/saperly.md#saperly-messages-list), [Slack](https://docs.webrouter.net/data-apis/slack.md#slack-conversations-history), [Twilio](https://docs.webrouter.net/data-apis/twilio.md#twilio-messages-list)

> [!NOTE]
>
> * A POST that only reads: the query goes in the JSON body; it neither replies nor marks anything.
> * Cursor paging only: send page\_cursor until an answer comes back with no paging object. There is no page number.
> * Direct messages come with text and metadata, but their media links do not work.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.