Nexalogy API
Home   Pricing   Gallery   Documentation   Contact us
log-in

Nexalogy Environics
5369 blvd St-Laurent, suite 220
Montreal, PQ, H2T-2S5
+1 514 272 8349
info@nexalogy.com

Thank you !

Your message has been sent. We'll be in touch as soon as possible

close

Problem sending message

There was a problem sending the message.

close

BETA

Nx API: The Ultimate Toolbox For Social Media Analysis

The Nexalogy API is a series of tools for searching, capturing, and analyzing text from blogs, Tweets, wall posts, even your own custom sources. We built NxAPI to be easy to use, because you should put your effort into designing a great social data product, not wrestling with data acquisition or math and statistics.

See Code Snippet
x
 Nx.Api.Search.create({
    lang:'en',
    type:'twitter',
    ands:'hello world'
 },function(response){
    /*your callback code*/
 });
                
 $call = NxApiSearch::create('en','twitter',
     array(
        'ands'=>'hello world'
     )
  );
                
See Code Snippet
x
 Nx.Api.AutoCapture.start({
    projectId:0, //project id goes here
    interval:'12hours',
 },function(response){
    /*your callback code*/
 });
                
 $call = NxApiAutoCapture::start(
                $projectId,
                '12hours'
          );
                
See Code Snippet
x
 Nx.Api.Filter.create({
    projectId:0, //project id goes here
    filter:'[{name:"test",content:"description=\"iphone4\""}]'
 },function(response){
    Nx.Api.Filter.setForProject({
        projectId:0,
        filterId:response.filterId
    },function(response2){
        /*your code here*/
    });
 });
                
 $call = NxApiFilter::create(
    $projectId,
    '[{
       name:"test",
       content:"description=\"iphone4\""
      }]'
 );
 if($call->success){
    $response2 = 
    NxApiFilter::setForProject(
        $projectId,
        $call->response->filterId
    );
 }
                
See Code Snippet
x
 Nx.Api.Reports.generate({
    projectId:0, //project id goes here
    type:'top_words',
    jobComplete:function(){
        Nx.Api.Reports.get({
            projectId:0,
            type:'top_words',
            format:'widget'
        },function(response){
            $(document).append(response.widget);
        });
    }
 });
                
 $response = NxApiReports::generate({
    $projectId, //project id goes here
    'top_words'
);
 if($response->success)
 {
    $jobId = $response->job->id;
    $done = false;
    $status = null;
    $timeout = 120000;
    $wait = 0;
    do{
        $wait+=1000;
        usleep(1000);
        $status = NxApiJobs:status($jobId);
        $done = isset($status->job->success);   
    }while(!$done && $wait<$timeout)
    if($status->success)
    {
       $report = NxApiReports::get(
            $projectId,
            'top_words',
            'widget'
        );
        if($report->succss)
        {
            echo $report->response->widget;   
        }
    }
 }