How To Aggregate API Data?

Posted by Mindblip on Stack Overflow See other posts from Stack Overflow or by Mindblip
Published on 2010-02-13T10:56:01Z Indexed on 2010/04/13 21:03 UTC
Read the original article Hit count: 373

Filed under:
|
|
|
|

Hi,

I have a system that connects to 2 popular APIs. I need to aggregate the data from each into a unified result that can then be paginated. The scope of the project means that the system could end up supporting 10's of APIs.

Each API imposes a max limit of 50 results per request.

What is the best way of aggregating this data so that it is reliable i.e ordered, no duplicates etc

I am using CakePHP framework on a LAMP environment, however, I think this question relates to all programming languages.

My approach so far is to query the search API of each provider and then populate a MySQL table. From this the results are ordered, paginated etc. However, my concern is performance: API communication, parsing, inserting and then reading all in one execution.

Am I missing something, does anyone have any other ideas? I'm sure this is a common problem with many alternative solutions.

Any help would be greatly appreciated.

Thanks, Paul

© Stack Overflow or respective owner

Related posts about api

Related posts about php