Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4535550
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:25:10+00:00 2026-05-21T14:25:10+00:00

Ok, this one has become a little tricky for me and I really need

  • 0

Ok, this one has become a little tricky for me and I really need some assistance to work through it.

Problem

I have a GSpreadsheet which has a list of data, in this case Twitter usernames. Using the API of a service provider (in this case the Klout API), I would like to retrieve information about that user to populate a cell within a spreadsheet.

Based on what I can work out so far, I would need to write a custom function to do this but I have no idea where to start, how I might construct it, or if there are any examples of doing this.

Scenario

The Klout API can return either an XML or JSON response (see http://developer.klout.com/docs/read/api/API), based on the string passed. For example, the URL:

http://api.klout.com/1/users/show.xml?key=SECRET&users=thewinchesterau

would return the following XML response:

<users>
    <user>
        <twitter_id>17439480</twitter_id>
        <twitter_screen_name>thewinchesterau</twitter_screen_name>
        <score>
            <kscore>56.63</kscore>
            <slope>0</slope>
            <description>creates content that is spread throughout their network and drives discussions.</description>
            <kclass_id>10</kclass_id>
            <kclass>Socializer</kclass>
            <kclass_description>You are the hub of social scenes and people count on you to find out what's happening. You are quick to connect people and readily share your social savvy. Your followers appreciate your network and generosity.</kclass_description>
            <kscore_description>thewinchesterau has a low level ofinfluence.</kscore_description>
            <network_score>58.06</network_score>
            <amplification_score>29.16</amplification_score>
            <true_reach>90</true_reach>
            <delta_1day>0.3</delta_1day>
            <delta_5day>0.5</delta_5day>
        </score>
    </user>
</users>

Based on this response, I would like to be able to populate different cells with the values returned within the XML (or JSON if easier) packet.

So, for example, I would have a spreadsheet like the following which would have custom functions to go out and retrieve the value of the relevant XML element response to populate the cell:

Cell    A        B        C        D            E
1    Username    kscore        Network score    Amplification score    True reach
2    thewinchester    =kscore(A2)    =nscore(A2)    =ascore(A2)        =tscore(A2)

Questions

  1. Are there any gSpreadsheet examples you know of that use an API to pull data in from an external source?
  2. How would one write a custom function to fetch the result from the API and populate a cell with a result of a specific element?

Any information, examples or helpers you have are greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:25:10+00:00Added an answer on May 21, 2026 at 2:25 pm

    You want the importXML function, documented here. The formula you want will look something like this:

    =importXML("http://api.klout.com/1/users/show.xml?key=SECRET&users=" + A1, "//users/user/score/kscore")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one has proven to be a little tricky for me so far. I
This one has me stumped. I need to call an activity method from within
I've been working on some MySQL Joins but this one has got me a
This one has been stumping me for a while. But I'm no expert. This
This one has me scratching my head, so I'm hoping a second pair of
This one has me stumped. <div id=container> <div id=store></div> <div id=contact></div> </div> I'm looking
This one has me stumped. Here are the relative bits of code: public AgencyDetails(Guid
This one has made me a lot of stress over the last couple of
It turns out that in order to do this one has to bind the
So I don't consider myself a novice at MySQL but this one has me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.