Documentation – web data extraction API

The textracto web data extraction API, is a simple API allowing you to extract content from websites. Responses are available in JSON. Check out the live demo.


PathParametersRequiredtypeDescription Example
/keytrueHashYour API key.97e491814155ffb3f6a8dc3efzz853830d914136
/urltrueStringThe full URL of the page you want to extract
/contentsfalseStringSpecify the kind of content you want to extract. See table below for further details.thm
/cachefalseInteger'1' if the API should use cached content faster, '0' if not.1
/jsfalseInteger'1' if Javascript should be executed (slow!)1

The ‘contents’ parameter

The ‘contents’ parameter allows you to specify the kind of content you want to get returned from the API. By default, without setting the ‘contents’ parameter, the API will return: the main textual content, meta data and links and images which were found on the page.

&contents=mReturns metadata.
&contents=tReturns the main textual content.
&contents=hReturns links and images that were found the specified url.
&contents=dReturns microdata
&contents=aReturns all text that were found on the page.
&contents=athdYou can also combine the parameters, the order isn't import. This example would return: all text, the main text, links and images, microdata.


You can use POST or GET.

Request (example)

Request with cache and all content parameters (JSON in response is beautified).

GET /?url= HTTP/1.1
   "text”:”Example Text.”,
      "title":"Blog - Example”,
      "description":"Modify your meta description by editing it right here",
      "image":" ",
      "updated_time":" ",




Standart request, without optional parameters.

GET /?url= HTTP/1.1
HTTP/1.1 200 OK 
Date: Wed, 17 Aug 2016 14:27:59 GMT
Server: WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
Content-Type: application/json
Content-Length: 6464
X-Content-Type-Options: nosniff
Connection: close


Republican presidential candidate Donald Trump has overhauled his campaign team for the second time in two months, with two new leaders.

Pollster Kellyanne Conway becomes campaign manager and Stephen Bannon of Breitbart News the CEO. Paul Manafort remains campaign chairman, but analysts say he has effectively been demoted.

Mr Trump told AP the new leaders were \"terrific people... they're champs\".

Mr Trump has seen his poll ratings slip since the party conventions last month.

He trails Democratic Party candidate Hillary Clinton both nationally and in key battleground states.

<h2>'I don't want to change'</h2>

The latest shake-up comes just 82 days before the election.

: \"I have known Steve and Kellyanne both for many years. They are extremely capable, highly qualified people who love to win and know how to win.\"

The Associated Press news agency said the details of the new hierarchy were hammered out at a lengthy senior staff meeting at Trump Tower on Tuesday and that more senior appointments were expected in the coming days.

At a campaign rally in Ohio on Tuesday, Mrs Clinton said the changes would make little difference to the race.

\"He can hire and fire anyone he wants... They can make him read new words from a teleprompter. But he is still the same man,\" Mrs Clinton said.

<h2>Analysis: Aleem Maqbool, BBC North America correspondent </h2>

Battered in the polls, Donald Trump has shaken up his campaign yet again, but don't expect a kinder, gentler candidate anytime soon. 

Many senior Republicans want him to rein in his impulsive outbursts and soften his rough edges to appeal to more voters, especially women and independents.  

However, Mr Trump's appointment of Stephen Bannon, an unabashed right-wing firebrand, to lead his campaign seems to signal that more controversy is ahead, not less.  

The reshuffle suggests that while he recognises a change is needed, the New York billionaire won't be the one changing.  

\"I don't wanna change. Everybody talks about, 'Oh well, you're gonna pivot, you're gonna' - I don't wanna pivot. I mean, you have to be you. If you start pivoting, you're not being honest with people,\" Mr Trump said.

The new appointments come ahead of the Trump team's first major TV advertisements, due to start this week.

Although Mr Manafort stays in his job, analysts say the new appointments, which come two months after , represent a demotion.

The Washington Post cited Trump campaign aides as saying Mr Trump respected Mr Manafort but felt \"boxed in\" by people \"who barely knew him\".

Mr Manafort, a former adviser to George HW Bush and Bob Dole, only joined the Trump campaign in March.

<h2>Stephen Bannon</h2>

The executive chairman of has himself described his role there as \"virulently anti-establishment\", views that have led the website into staunch support of Mr Trump.

 described Mr Bannon as \"the most dangerous political operative in America\" - a phrase Mr Trump's own website was happy to repeat in announcing his appointment.

He will temporarily step down from Breitbart to work on the campaign full time and is expected to lead a highly aggressive strategy.

Mr Trump has been pressed by some Republicans to tone down his fiery rhetoric in the wake of a number of controversial comments in the past two weeks and the subsequent drop in poll ratings.

But Mr Trump appears to want to stand by the campaign style that won him the Republican nomination.

He said on Tuesday: \"You know, I am who I am. It's me. I don't want to change.

\"Everyone talks about, 'Oh, well you're going to pivot, you're going to.' I don't want to pivot. I mean, you have to be you. If you start pivoting, you're not being honest with people.\"

<h2>Kellyanne Conway</h2>

Ms Conway has experience with political campaigns, having previously worked with former Vice-President Dan Quayle and former House Speaker Newt Gingrich.

In a Republican press release last month, Ms Conway was said to be widely regarded as \"an expert on female consumers and female voters\".

Her ability to accurately predict election results in the past has won her awards.

Mr Manafort has had a troubled week, following a report in the New York Times that ledgers in Ukraine showed he was earmarked for $12.7m (£9.8m) in undisclosed cash payments from the former pro-Russian government between 2007 and 2012. .

The Trump team's alleged pro-Russia links have been a key issue of the campaign, and the latest allegations sparked a call from the Clinton campaign for a full disclosure.

Opinion polls since the national conventions have made grim reading for the Trump team, both nationally and in key states.

The national lead for the Democratic candidate is currently between seven and eight points, the polls suggest.

 that no modern candidate trailing by this much three weeks after the conventions had won the election.

An opinion poll in the state of Virginia, , gave Mrs Clinton a 14-point lead there.

      "description":"Republican presidential candidate Donald Trump overhauls his election campaign team for the second time in two months, amid flagging polls.",
      "og:title":"US election 2016: Trump overhauls campaign team again - BBC News",
      "og:description":"Republican presidential candidate Donald Trump overhauls his election campaign team for the second time in two months, amid flagging polls.",
      "og:site_name":"BBC News",
      "article:author":"BBC News",
      "article:section":"US Election 2016",
      "twitter:title":"US election 2016: Trump overhauls campaign team again - BBC News",
      "twitter:description":"Republican presidential candidate Donald Trump overhauls his election campaign team for the second time in two months, amid flagging polls.",
      "twitter:image:alt":"Donald Trump in Wisconsin, 16 Aug",
      "apple-mobile-web-app-title":"BBC News",
      "application-name":"BBC News",
      "viewport":"width=device-width, initial-scale=1, user-scalable=1",
            "US election 2016: Trump overhauls campaign team again"
            "Accessibility links",
            "BBC navigation",
            "News navigation",
            "'I don't want to change'",
            "Analysis: Aleem Maqbool, BBC North America correspondent ",
            "Stephen Bannon",
            "Kellyanne Conway",
            "\n        Share this story        About sharing\n    ",
            "Road to the White House",
            "Top Stories",
            "\n        \n        Features & Analysis\n    ",
            "News navigation",
            "BBC News Services",
            "Explore the BBC"
            "Tool of mystery",
            "Four-legged colleague",
            "Scent of death ",
            "Forgotten disaster",
            "Athletics capital",
            "7 days quiz",
            "From Aleppo to Ambleside",
            "The godfather",
            "Sprinting squabble"



Need help? Feel free to contact us!