Where Google Analytics ends, Social Report is just beginning...

Social Report API

The Social Report SDKs gets your app connected quickly and easily, so you can focus on creating an experience. Social Report exposes its data via an Application Programming Interface (API), so developers can interact in a programmatic way with the Social Report website. This document is the official reference for that functionality.

The purpose of this API is to allow anyone to build applications that interact with social networks using a unified API without having to worry about integrating with each network separately.

The current API version is 1.0

IMPORTANT: All requests have to be signed using an api key that. Simply add "api_key" request header when making all requests. For testing purposes you can also pass "api_key" as a parameter. This is not a recommended option however for obvious security reasons.

https://api.socialreport.com/projects.svc

Get a list of all projects belonging to the owner of the API key.

Parameters

  • user: user identifier (optional)

Output

  • id: unique project identifier.
  • name: project name.
  • user: user identifier (optional)
[
    {
        "id": "56783",
        "name": "SocialReport.com",
        "user": 5
    },
    {
        "id": "76897",
        "name": "WebAlgorithm LLC"
    },
    {
        "id": "45765",
        "name": "ConcreteMedia Inc",
        "user": 7
    }

]
                            

https://api.socialreport.com/projectCreate.svc

Create a new project. Project is a way of grouping a set of social properties. Typically project represents a client, a business or a marketing initiative.

Parameters

  • name: project name
  • user: user identifier (optional)

Output

  • id: unique project identifier.
[
    {
        "id": "56783"
    }

]
                            

https://api.socialreport.com/projectSummary.svc

Get a project summary for a project - analytical summary of social trends

Parameters

  • project: project identifier

Output

 {
    "project": 56783,
    "name": "SocialReport.com",
    "summary": {
        "date": "20120502",
        "accounts": 25,
        "networks": 19,
        "friends": 2107,
        "mostPopulaNetwork": "LinkedIn",
        "mostPopulaNetworkShare": 0.0002,
        "mostPopularLanguages": "English,Spanish,Italian",
        "membershipGrowth": 0.00128,
        "activityGrowth": -0.00729,
        "activeCountries": "United States,Italy,India",
        "engagement": 0.601,
        "engagementGrowth": 0.001,
        "dailyClicks": 0.011,
        "averageAge": 35,
        "countries": 47,
        "numberOfLanguages": 37,
        "mostActiveCities": "New York,Brooklyn,Jersey City",
        "mostActiveStates": "Connecticut,Illinois"
    }
}
       

https://api.socialreport.com/projectAddUser.svc

Add user to the project. Users can be your members of the team or customers. Each user gets a very specific set of permissions.

Parameters

  • project: project identifier
  • email: user email address
  • firstName: user's first name (only required for first time user setup)
  • lastName: user's last name (only required for first time user setup)
  • company: user's company (only required for first time user setup)
  • username: user's username (only required for first time user setup)
  • password: user's password (only required for first time user setup)
  • active: can user get access to project (optional) yes - user can access to project (default), no - user can't access to project
  • accounts: can user get access to accounts. Available values - yes or no
  • addAccount: can user add new account to project. Available values - yes or no
  • agents: can user get access to keyword agents. Available values - yes or no
  • campaigns: can user get access to campaigns. Available values - yes or no
  • contacts: can user get access to address book. Available values - yes or no
  • export: can user get access to data export. Available values - yes or no
  • goals: can user get access to goals. Available values - yes or no
  • reports: can user get access to reports. Available values - yes or no
  • api: can user execute api requests. Available values - yes or no
  • notifications: can user get notifications. Available values - yes or no

Output

  • id: unique user identifier.
[
    {
        "id": "6543"
    }

]
                            

https://api.socialreport.com/projectModifyUser.svc

Make changes to your project users - their profile data and permissions.

Parameters

  • project: project identifier
  • user: user identifier
  • active: can user get access to project (optional) yes - user can access to project (default), no - user can't access to project
  • accounts: can user get access to accounts. Available values - yes or no
  • addAccount: can user add new account to project. Available values - yes or no
  • agents: can user get access to keyword agents. Available values - yes or no
  • campaigns: can user get access to campaigns. Available values - yes or no
  • contacts: can user get access to address book. Available values - yes or no
  • export: can user get access to data export. Available values - yes or no
  • goals: can user get access to goals. Available values - yes or no
  • reports: can user get access to reports. Available values - yes or no
  • api: can user execute api requests. Available values - yes or no
  • notifications: can user get notifications. Available values - yes or no

Output

  • id: unique user identifier.
[
    {
        "id": "6543"
    }

]
                            

https://api.socialreport.com/projectUsers.svc

Get a list of users who have access to the given project.

Parameters

  • project: project identifier

Output

[
    {
        "id": "11833",
        "lastName": "johnson",
        "added": "20111031",
        "email": "user1@company.com",
        "active": "yes",
        "firstName": "roger",
        "deleted": "no"
    },
    {
        "id": "11317",
        "lastName": "robinson",
        "added": "20111031",
        "created": "20100901",
        "email": "user2@company.com",
        "active": "no",
        "firstName": "peter",
        "deleted": "no"
    }
]
                            

https://api.socialreport.com/accounts.svc

Get a list of all accounts for a project. Accounts are the actual social properties: twitter profiles, facebook pages, etc.

Parameters

  • project: project identifier

Output

  • id: unique account identifier.
  • name: account name.
  • type: account network type (i.e. T (Twitter), F (Facebook), etc) .
  • active: activity indicator.
[
    {
        "id": "65789",
        "name": "web@lgorithm",
        "active": "yes",
        "type": "T"
    },
    {
        "id": "45678",
        "name": "SocialReport.com",
        "active": "yes",
        "type": "F"
    },
    {
        "id": "62821",
        "name": "@TheSocialReport",
        "active": "yes",
        "type": "F"
    },
    {
        "id": "87601",
        "name": "socialreport",
        "active": "yes",
        "type": "BITLY"
    },
    {
        "id": "248",
        "name": "Dunkin Donuts",
        "active": "yes",
        "type": "YELP"
    }
]
                            

https://api.socialreport.com/campaigns.svc

Get a list of all campaigns for a project. Campaigns are publications into mutliple social channels with ability to track clicks and conversions.

Parameters

  • project: project identifier

Output

  • id: unique campaign identifier.
  • name: campaign name.
  • type: campaign type (i.e. L - manual, RSS - rss syndication)
  • status: current campaign status.
[
    {
        "id": "1061",
        "status": "pending",
        "name": "sr blog",
        "type": "RSS"
    },
    {
        "id": "1059",
        "status": "inprogress",
        "name": "monday 9:37",
        "type": "L"
    }
]
                            

https://api.socialreport.com/export.svc

Export all account data. Note that this result is a downloadable zip archive file.

Parameters

  • export_type: support types: account, campaign, agent, conversation, address-book
  • account: account (required is export_type=account)
  • campaign: account (required is export_type=campaign)
  • project: account (required is export_type=address-book)
  • project: account (required is export_type=address-book or conversation)
  • accounts: account (required is export_type=conversation)
  • from: from date offset (i.e. 20110925)
  • to: to date offset (i.e. 20111025). note that maximum allowed date range is 30 days.

Additional parameters. Value 1 indicates the need to export data

  • activity: export activity.
  • countries: export geo by countries.
  • cities: export geo by cities.
  • interests: export interests.
  • followers: export followers. Twitter only
  • following: export following. Twitter only
  • twitter_list: export lists. Twitter only
  • twitter_reference: export references. Twitter only
  • twitter_messages: export twitter messages. Twitter only
  • twitter_klout: export klout results. Twitter only
  • friends: export friends. Facebook, Meetup, Linkedin, MySpace, Vimeo, Yelp, YouTube only
  • job_titles: export jobs titles. Facebook, Linkedin only
  • school: export schools. Facebook, Linkedin only
  • posts: export posts. Facebook only
  • foursquare_checkins: export checkins. Foursquare only
  • foursquare_tips: export tips. Foursquare only
  • foursquare_users: export users. Foursquare only
  • linkedin_jobs: export jobs. Linkedin only
  • subscribers: export subscribers. YouTube only
  • video: export videos. YouTube only
  • video_activity: export activity by video. YouTube only
  • video_demographic: export demographic by video. YouTube only
  • video_geo: export geo by video. YouTube only
  • video_referrers: export referrers by video. YouTube only
  • hostname: export hostnames. GoogleAnalytics only
  • keyword_activity: export activity by keywords. GoogleAnalytics only
  • geo: export geo. GoogleAnalytics, Bitly only
  • link_activity: export activity by links. Bitly only
  • geo_activity: export activity by geo. Bitly only
  • referral_activity: export activity by referrerak. Bitly only
  • browsers: export data by browsers. Goo.ly only
  • clicks: export data by clicks. Goo.ly only
  • referrals: export referrals. Goo.ly only
  • links: export data by links. Goo.ly only
  • post_activity: export activity by posts. WordPress only
  • comment_activity: export activity by comments. WordPress only
  • search_term_activity: export activity by search terms. WordPress only
  • users: export users. WordPress only
  • orders: export orders. Shopify only
  • products: export products. Shopify only
  • customers: export customers. Shopify only
  • ebay_items: export items. Ebay only
  • ebay_orders: export orders. Ebay only
  • ebay_users: export users. Ebay only
  • etsy_listings: export listings. Etsy only
  • etsy_shops: export shops. Etsy only
  • etsy_transaction: export transactions. Etsy only
  • etsy_users: export users. Etsy only
  • orkut_post: export posts. Orkut only
  • orkut_scraps: export scraps. Orkut only
  • orkut_testimonials: export testimonials. Orkut only
  • orkut_makamakas: export makamakas. Orkut only
  • orkut_comments: export comments. Orkut only
  • orkut_videos: export videos. Orkut only
  • orkut_photos: export photos. Orkut only
  • orkut_users: export users. Orkut only
  • digg_diggs: export users. Digg only
  • digg_comments: export comments. Digg only
  • digg_followers: export followers. Digg only
  • digg_followings: export followings. Digg only
  • gplus_posts: export posts. Google+ only
  • gplus_reshares: export reshares. Google+ only
  • gplus_plusoners: export plusoners. Google+ only
  • gplus_resharers: export resharers. Google+ only
  • blogger_posts: export posts. Blogger only
  • blogger_comments: export comments. Blogger only
  • blogger_pages: export pages. Blogger only
  • blogger_search_terms: export search terms. Blogger only
  • blogger_users: export users. Blogger only
  • reddit_reddits: export reddits. Reddit only
  • reddit_comments: export comments. Reddit only
  • reddit_friends: export friends. Reddit only

Output

  • zip file: downloadable zip file with comma delimited files representing different aspects of account data.

https://api.socialreport.com/register.svc

Register new customers. Note that this API must be used over SSL and only accept "POST" request.

Parameters

  • user.firstName: customer first name
  • user.lastName: customer last name
  • user.email: customer email
  • user.username: customer username
  • user.password: customer password
  • packageOption: plan. 1 - "Starter", 2 - "Business", 3 - "Agency", 4 - "Ultimate"
  • billing.firstName: billing first name
  • billing.lastName: billing last name
  • billing.address1: billing street address
  • billing.city: billing city
  • billingCountry: two letter custom code
  • billing.postCode: billing post code
  • payment.cardholderNamecardhold name
  • payment.numbercredit card number
  • payment.cvv2card's cvv code
  • expirationMonthcard's expiration month: January, Feburary, etc
  • expirationYearcard's expiration year: 2012, 2013, etc

Output

[
    {
        "status": "ok",
        "user_id": "595959532"
    }
]
                            

https://api.socialreport.com/customers.svc

Retrieve your customers. If you are an affiliate and/or have an integrated registration process - this method will allow you to retrieve all of your customers and their payment details.

Output

[
    {
        "id": "877272",
        "enabled": "no",
        "firstName": "Brian",
        "lastName": "Gordon",
        "subscription": {
            "plan": "Professional",
            "balance": "0",
            "expected": "0",
            "monthly": "39",
            "nextPaymentDate": "20111210",
            "payments": []
        },
        "created": "20111110"
    },
    {
        "id": "3311111",
        "enabled": "yes",
        "firstName": "Jason",
        "lastName": "Smith",
        "subscription": {
            "plan": "Professional",
            "balance": "39",
            "expected": "78",
            "monthly": "39",
            "nextPaymentDate": "20111210",
            "payments": [
                {
                    "date": "20110910",
                    "amount": "39",
                    "status": "ok"
                },
                {
                    "date": "20111010",
                    "amount": "39",
                    "status": "failed"
                }
            ]
        },
        "created": "20111109"
    }
]
                            

https://api.socialreport.com/agentCreate.svc

Create a new keyword search agent


Parameters

  • project: project identifier
  • name: agent name
  • scope: search scope. network - only in registered accounts, global - everywhere
  • selection: search criteria. and - all keywords, or - any keywords
  • keywords: keywords list with ~~~ delimiter

Output

  • id: unique agent identifier.
[
    {
        "id": "326"
    }

]
                            

https://api.socialreport.com/agents.svc

Get a list of all search agents for a project. Search agents allow you to search social space for keywords that interest you.

Parameters

  • project: project identifier

Output

  • id: unique keyword agent identifier.
  • name: agent name.
  • initialized: indicates if initial search has been completed.
[
    {
        "id": "65299",
        "name": "social media",
        "initialized": "yes"
    },
    {
        "id": "54321",
        "name": "social report",
        "initialized": "yes"
    }
]
                            

https://api.socialreport.com/agentModify.svc

Modify an existing keyword agent.

Parameters

  • agent: agent identifier
  • name: agent name
  • scope: search scope. network - only in registered accounts, global - everywhere
  • selection: search criteria. and - all keywords, or - any keywords
  • keywords: keywords list with ~~~ delimiter

Output

  • id: unique agent identifier.
[
    {
        "id": "464"
    }

]
                            

https://api.socialreport.com/accountCreate.svc

Create a new social account. Don't forget to add your account to a project.

Parameters

  • uid: unique network account identifier
  • type: network type. Supported types - facebook, twitter, bitly, googl, yelp, wordpress, myspace, linkedin, youtube, foursquare, googleanalytics, vimeo, meetup, ebay, orkut, googleplus, shopify, tumblr, clicky, addthis, blogger, reddit, instagram,
  • name: account name
  • nickname: account nick name
  • firstName: user first name
  • lastName: user last name
  • username: account user name
  • accessKey: access key
  • accessSecret: access secret
  • accessKey2: additional access key. Required only for orkut account
  • accessSecret2: additional access secret. Required only for orkut account
  • profileUrl: profile url

Output

  • id: unique account identifier.
[
    {
        "id": "326"
    }
]

https://api.socialreport.com/accountModify.svc

Update an existing social account

Parameters

  • account: account identifier
  • name: account name
  • firstName: user first name
  • lastName: user last name
  • nickname: account nick name
  • accessKey: access key
  • accessSecret: access secret
  • accessKey2: additional access key. Required only for orkut account
  • accessSecret2: additional access secret. Required only for orkut account
  • profileUrl: profile url

Output

  • id: unique account identifier.
[
    {
        "id": "326"
    }
]

https://api.socialreport.com/authenticate.svc

Authenticates the user, generates single sign-on token. You can then use generate token direct your user to https://api.socialreport.com/sso.htm?token=generated_token which will seamlessly log the user into his or her Social Report account. Note that if you are using a white labeled domain - you can substitute api.socialreport.com with your domain.

Generated tokens are only valid for 30 seconds once generated.

Parameters

  • user_id: user identifier

Output

[
    {
        "token": "0hokth7bh7rbbmravhabcam4uo27gx9cec46"
    }
]

https://api.socialreport.com/user.svc

Get a user information.

Parameters

  • id: user's identifier

Output

[
    {

        "firstName": "John",
        "lastName": "Smith",
        "email": "john.smith@test.com",
        "username": "john",
        "defaultLanguage": "en",
        "timezoneId": "America/Virgin",
        "currencyCode": "USD",
        "customization": "{"showNotifications":"yes",
                           "showAskUs":"yes",
                           "api_key":"user's_api_key",
                           "showNews":"yes",
                           "active":"yes",
                           "showUserProfile":"yes",
                           "language":"en",
                           "logo": "logo_image.png",
                           "name": "reseller's name",
                           "domain": "thedomain.com",
                           "affiliateCode": "welcome",
                           "whiteLabel":"yes"}"
    }
]

https://api.socialreport.com/userCreate.svc

Create a new user.

Parameters

  • user.firstName: user's first name
  • user.lastName: user's last name
  • user.email: user's email
  • user.username: user's username
  • user.password: user's password
  • user.defaultLanguage: user's default language code (optional)
  • user.timezoneId: user's timezone identifier (optional)
  • user.currencyCode: user's currency code (optional)
  • packageOption: reseller's package option

Output

[
    {
        "status": "ok",
        "user_id":"1232245"
    }
]

https://api.socialreport.com/userUpdate.svc

Update an existing user.

Parameters

  • id: user's identifier
  • firstName: user's first name (optional)
  • lastName: user's last name (optional)
  • email: user's email (optional)
  • defaultLanguage: dashboard language code (optional)
  • timezoneId: user's timezone identifier (optional)
  • currencyCode: user's currency code (optional)
  • password: user's password (optional)
  • enabled: user's status. on - user can access to dashboard, off - user can't access to dashboard

Output

[
    {
        "status": "ok",
        "user_id": "12123"
    }
]

https://api.socialreport.com/customize.svc

Customize white label setup

Parameters

  • domain: your white label domain.
  • name: used through out the system - it replaces the term "Social Report"
  • signupLink: this is a link to what you would consider an 'onboarding' page on your site. Can be anything you wish. This link is available on the login screen.
  • logoutLink: once the user logs out - this is where we will take the user.
  • logoLink: this is the link that is attached to your logo (in case the user decides to click on it)
  • supportLink: if user has any questions, this is where he will be taken.
  • faqLink: link to a page with frequently asked questions.
  • language: dashboard language code
  • email: it is used for "Contact us" link and for any email notifications.
  • showAskUs: Zendesk driven ask us button - this gives you ability to show/hide it. yes - show button, no - hide button
  • showNews: should your users see Social Report news and feature alerts upon login. yes - show button, no - hide button
  • showUserProfile: you may wish to hide user's profile (My Account) for your users. This is useful if you are integrating with Social Report. yes - show button, no - hide button
  • showNotifications: disable ability by the user to opt-in/out from notifications. yes - show button, no - hide button
  • logo: this is where you would need to upload your logo. Do note that dimensions of the logo have to be exact.
  • favicon: upload a customized favicon. Favicon is a small graphic that is displayed in the browser tab.

Output

[
    {
        "status": "ok"
    }
]
Sign up Now get started today!