CrunchBase API WordPress Plugin

CrunchBase (a free directory of technology companies, people, etc.) made open an API recently which allows access to their data. I always liked the short company profiles that TechCrunch (the guys who created CrunchBase) blog would show at the end of each post. So, as soon as the API was up, I put together a quick WordPress plugin which allows insertion of a similar profile in any WordPress post.

Take a look at the sample below (this is information about Yahoo):

The CrunchBase API supports a number of namespaces from which you can pull data. These include company, person, financial-organization, product, and service-provider. This plugin currently only supports the company namespace.


To insert CrunchBase data into your post, all you need to do is add the name of the company surrounded by “[|” and “|]” tags. So, to insert the information above, I had to add the following to my post (highlighted text in the screenshot below):

crunchbase

The plugin automatically parses the text and queries the CrunchBase company database to fetch the data and pastes it in a tabular format.

As I mentioned, it was a quick job and so the features are rudimentary:

  • Support only for companies (it would be easy enough to add support for other workspaces, and I just might in the near future).
  • Minimal error handling. If it encounters any error, then it will not replace the tag. I could make it nice and replace the text by a Google search link. Will think about this in the future.
  • No administration options. Everything is hard coded.
  • You can’t change the look and feel of the inserted text; unless you go and change the PHP code. It’s fairly straightforward. (Read further down for an alternative version which allows you to embed the CrunchBase Widget dynamically).

To install the plugin, download the zip file from the link: CrunchBase 1.0

Extract the contents and place it in your wp-content/plugins file. Go and activate the plugin from the admin panel. And you are good to go.

As another demonstration, here is information about TechCrunch:

I would like to develop this plugin further to make it more powerful, and also provide more customization options.

Any comments, suggestions, etc. are welcome.

Update: Made a small change so that it displays the same in IE and FireFox.

Update: I have made a change to the plugin so that instead of creating my own (pretty sucky) html, it dynamically inserts a CrunchBase Widget instead. I still use the API to query the name of the company from a given Permalink.

Here’s the new version of the plugin (the link above lets you download the old version which produces it’s own html): CrunchBase 1.1

Update: Alright, the development of this plugin is officially dead. Joost De Valk has released a plugin which does exactly what my plugin does already and was planning to do in the future. Head over to the plugin page on WordPress.org to check it out. http://wordpress.org/extend/plugins/crunchbase-widget/



You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

18 Responses to “CrunchBase API WordPress Plugin”

  1. Cool! Thanks for the plugin.

    Are you aware that we make the CrunchBase widget (the one you see on TechCrunch) available to everyone to use? You can create customized ones here http://www.crunchbase.com/widget

    A wordpress plugin that can automatically integrate the official CrunchBase widget would be awesome as well.

  2. @Rob, Yes, the widget is cool, however, it’s static. I have to go create the widget manually for each company I want to include in my post.

    This plugin however, let’s me add CrunchBase data inline. I don’t need to visit the CrunchBase (well maybe I do, to check whether a given Permalink is valid).

    Yes, a plugin that would allow integration of the widget would be cool. However, I am hoping that this plugin will allow the blog owner to create a UI which is complementary to their blog UI.

  3. [...] the API has only been out for two days, there is already a Wordpress plugin to automatically add CrunchBase profile information to a post and a Google map mashup, Startup [...]

  4. Rob’s response got me thinking, I am working to produce the plugin so that it pulls in the CrunchBase Widget inline. It uses the API to get the name of the company dynamically.

  5. Sweet!

    We’ve always been hoping someone would make that plugin but for some reason we haven’t done it ourselves.

    I agree with you that the API provides more flexibility both in terms of design and information provided. I only brought up the official CrunchBase widget because it seemed you were recreating it with your first cut at the plugin.

    Looking forward what you come up with.

    -Rob

  6. You are right, I was trying to re-create it. The first look at the widget suggested that it is static (in the sense that you have to get the code from your Widget Configuration page).

    However, that is not the case. Now it generates the Widget code (of course, now that makes it dependent on the Widget and if you change that code, then I am screwed).

    But, I will cross that Bridge when I come to it. :)

  7. Sorry, but it’s not working. Any idea ?

    Thanks
    marco

  8. Hi Marco, it’s working on this site (as you can see in the post above). What’s the error/behavior that you are getting?

  9. no error .. but even no result or content from crunchbase

  10. Hello Marco,

    I can’t imagine why this is working. I can see on your blog that the tag is not being replaced by the widget. If you wish, then I can try and debug this for you.

    Am emailing you for this.

  11. @Marco, As we found out, it was a problem with the json_decode() function. It was not supported on your installation.

    I will update the documentation to provide a list of pre-requisites for this plugin. Sorry for all the pain.

  12. thanks a lot .. update is done .. it’s working now .. thank you.. great job

  13. Great. I am glad it got fixed.

  14. [...] 프로파일링이 필요한 서비스에서 유용하게 사용할 수 있을듯 하다. 이미 워드프레스 플러그인도 나와있다. 블로그에서도 응용할 수 [...]

  15. [...] api basit bir içeriğe ve dökümantasyona sahip. Şimdilik bu api kullanılarak içinde bir Wordpress eklentisinin de olduğu 4 uygulama mevcut. Bu api ile şirketlerin enlem ve boylam bilgilerine ulaşabilmekteyiz. [...]

  16. [...] plugins sprung up that make it easy to insert the CrunchBase widget into WordPress blog posts. The first, developed by Vaibhav Gadodia, queries the CrunchBase API to determine the CrunchBase URL for a [...]

  17. [...] plugins sprung up that make it easy to insert the CrunchBase widget into WordPress blog posts. The first, developed by Vaibhav Gadodia, queries the CrunchBase API to determine the CrunchBase URL for a [...]

  18. [...] fácil introducir el icono de CrunchBase dentro de las publicaciones del blog de WordPress. El primero, desarrollado por Vaibhav Gadodia, consulta el API de CrunchBase para determinar el URL de [...]

Leave a Reply