Log in

No account? Create an account
Previous Entry Share Next Entry
Call for ideas: What would you like to do with APIs?
[Mostly for the techies]

I was just reading this recent article in TechCrunch -- it's light on detail, but makes the likely-correct point that APIs are going to become ever more important in the industry in coming years. So I'm pondering: what should Querki be doing with them?

At the highest level, the notion's been around for a while -- I think Galen mentioned the idea of API integration a couple of years ago now -- but Querki's original architecture wasn't API friendly because the QL processing pipeline was too synchronous. Now that that's fixed, I don't think there's any reason we *can't* build API integration into Querki, allowing a Querki Space to call APIs of external services. I'm just not sure what it *means* yet, and my rule for Querki is that I don't build features until I have clear use cases.

(NB: I'm specifically talking about Querki Spaces calling external APIs here. Querki itself already exposes an extremely rich API -- the rewrite I've done over the past year effectively means that Querki is *entirely* API-based, and simply provides a standard Client for working with those APIs. They're nowhere near stable enough yet, and are completely lacking stuff like documentation, examples, validation suites and all those elements you need in order to make an API real, but under the hood everything is now driven by a straightforward JSON API that you can code to.)

Anyway: I'm looking for ideas. Querki by now makes it fairly easy to build Spaces for your data needs; my current Spaces include things like:Etc, etc, etc -- basically, small collaborative websites that let you collect, organize and share information about some topic.

The question is, in what ways would API access make this better? What could you do more easily in this world, if you could, reasonably easily, tell Querki to go out and do *something* with a particular API from some other service?

None of this is going to happen soon, mind -- I have lots of more-critical irons in the fire at the moment. But I'd like to add some examples to Querki's Use Cases, to help understand where we should eventually be going with API access.

So the floor is open for brainstorming. Anybody got suggestions? Anything data-centric you've always wanted to build, that would work best if you could mix in specific outside data?

  • 1
(Deleted comment)
If one Q-Space calls Twitter 50 times an hour - no big deal. Ramp that up to 8 Q-Spaces calling Twitter 50 times an hour, and everyone is blocked for an unspecified period of time.

Mmm -- good point. I hadn't thought about that cumulative effect, but you're certainly correct. That's an interesting tragedy-of-the-commons problem; I'll have to ponder how best to handle it.

You'll want to be sure that you can handle, manage and not-unnecessarily cache those credentials, as well as guard against theft.

Oh, absolutely, and at this point I have no idea how that's likely to work. The less Querki has to hold credentials on the server, the better, but we'll see what's actually possible.

But first I'm going to worry about what folks might want, and then look into how it might work. Indeed, that's much of the motivation for this brainstorming: "API" is such a gigantic and vague concept that I can't *do* anything with it. If we can identify some relatively specific APIs that people think would be really useful, *then* I can really think about how that works technically, including what might be involved in terms of credentials, and think about how it will generalize...

(Deleted comment)
Yaas. Indeed, I'm pretty sure that we'll wind up with standard modules for some services (eg, PayPal). But I agree that the opportunity here is much larger, if we can get the abstractions right. There's a big, interesting question here about how Querki should interact with the larger world of data around it...

(Deleted comment)
Totally agreed; the issue is mainly that the problem space is so large. I'd like us to have a general mechanism whereby users can relatively easily create representations of APIs inside Querki, and then use them in a natural way. But different APIs are going to call for different modes of interaction -- not to mention the plethora of different possible protocols, of which we'll probably have to pick one or two to support first.

So basically, I'm trying to get even a faint sense of where we might start with this. We can't do everything, and initially we'll probably only be able to do a little, so the question is, what would be the most useful subset?

Some API story thoughts: calling external services to import added data/metadata (Think a personal library space calling GoodReads or LibraryThing or IMDB).

Pushing data - a writing portfolio site using LTI/xAPI/Catalytics APIs to push to a learning object repository or analytics tool.

IFTTT and Zapier.

Aggregation and Syndication. Add something to livejournal, have it archived to a Querki Space and syndicated to Google+, Wordpress.com, Twitter, whatnot. This is probably not something Querki should be doing, and leads to questions about scheduling tasks.

calling external services to import added data/metadata

Yeah -- separately from this conversation, Aaron mentioned the idea of having a Space that contains the stuff he's bought from eBay, and being able to import the full info about a new acquisition simply by giving the lot number in Querki.

Lots of good ideas here, and I should have thought about IFTTT myself. Hadn't come across Zapier -- same basic idea, it looks like?

The plan is actually for syndication to be built into Querki -- indeed, that feature has been in the plans from the very beginning. I haven't gotten around to building it yet, but the idea of the What's New feature is that you can specify a Model within your Space, and all new Instances of the Model get formatted into RSS entries. I believe it'll be quite powerful when we get that. (You're making a broader point than that -- just mentioning that that one is specifically on the to do list.)

Good feedback for me to chew on. Thanks!

Zapier is like IFTTT, yes.

RSS is one of my principle and preferred ways of moving data into my consumption stream, so I'm glad to hear it is in the works.

Yeah -- I figure, there's a standard protocol for what we want to do, which is well-supported all around, so that's the logical way to deal with it.

Mind, I may wind up with special modules to put these notifications directly into, eg, the Facebook stream as well; I may have little choice, in order to get the desired behavior there. But first things first -- RSS is the *right* way to do it, so it ought to come first.

  • 1