textracto is perfect for web scraping, learn how to use our API in your projects:

Due the JSON responses from our API, textracto is super easy to integrate into your projects. To help you getting into Textracto API we provide a few examples, how to work with Textracto in different programming languages on this page.

JavaScript (jquery)

function doSubmit(){
var data = 'http://www.bbc.com/news/world-latin-america-37130024';
var api_key = '993w91834453sfb3f658dc3eefc853830d813137';
var post = 'url=' + data + '&key=' + api_key;
$.ajax({
    type: 'GET',
    url: 'http://api.textracto.com/',
    data: post,
    success: function(response) {
        console.log(response);
    },
});

  return false;
}

Ruby

require 'json'
require 'net/http'

key = '97e4977711455ffb3f6a8dc3ef2333830d813134'
url = 'http://www.bbc.com/news/world-latin-america-37130024'
uri = URI("http://api.textracto.com/?key=#{key}&url=#{url}")
res = Net::HTTP.get(uri)
json = JSON.parse(res)
puts json

PHP

<?php
 $key = '97e491211455ff43f6a8dc3efcc3333830d8443134';
 $url = 'http://www.bbc.com/news/world-latin-america-37130024';
 $res = file_get_contents("http://api.textracto.com/?key=$key&url=$url");
 $json = json_decode($res, true);
 var_dump($json);