HTML Table Extractor API

API ID 13075

Extract every HTML table from any web page into clean, structured JSON — headers and rows auto-detected. Just pass a URL; no scraping code needed. Fast, stateless, and MCP-ready for AI agents.

766 ms avg response

API Documentation

Endpoints

Request

Fetches a public web page and returns every HTML table on it as structured JSON, with header rows auto-detected and data returned as arrays. Pass the page URL in the 'url' query parameter.

Endpoint ID: 26455
GET https://www.zylalabs.com/api/13075/html+table+extractor+api/26455/extract+tables+from+url
INPUT PARAMETERS

Extract Tables from URL — Endpoint Features

Object Description
url Required Public URL of the web page to extract tables from

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{"ok":true,"tableCount":5,"tables":[{"headers":["Ranks","Name","Industry","Revenue","Profit","Employees","Headquarters[note 1]","State-owned","Ref."],"rowCount":51,"rows":[["USD (in billions)"],["1","Amazon","Retail Information technology","716","79.9","1,576,000","United States","","[5]"],["2","Walmart","Retail","713","21.8","2,100,000","","[6]"],["3","State Grid Corporation of China","Electricity","545","9.2","1,361,423","China","","[7]"],["4","Saudi Aramco","Oil and gas","480","106","73,311","Saudi Arabia","","[8]"],["5","China National Petroleum Corporation","476","25.2","1,026,301","China","","[9]"],["6","China Petrochemical Corporation","429","9.3","513,434","","[10]"],["7","Apple","Information technology","416","112","166,000","United States","","[11]"],["8","Alphabet","Information technology","402","132","190,820","","[12]"],["9","UnitedHealth Group","Healthcare","400","14.4","400,000","","[13]"],["10","Berkshire Hathaway","Financials","371","88.9","392,400","","[14]"],["11","CVS Health","Healthcare","357","8.3","259,500","","[15]"],["12","Volkswagen Group","Automotive","348","17.9","684,025","Germany","","[16]"],["13","ExxonMobil","Oil and gas","344","36.0","61,500","United States","","[17]"],["14","Vitol","Commodities","331","13.0","1,560","Switzerland","","[18][19]"],["15","Shell","Oil and gas","323","19.3","103,000","United Kingdom","","[20]"],["16","China State Construction Engineering","Construction","320","4.2","382,894","China","","[21]"],["17","Toyota","Automotive","312","34.2","380,793","Japan","","[22]"],["18","McKesson","Healthcare","308","3.0","48,000","United States","","[23]"],["19","Microsoft","Information technology","281","101","228,000","","[24]"],["20","Cencora","Healthcare","262","1.7","44,000","","[25]"],["21","Trafigura","Commodities","244","7.3","12,479","Singapore","","[26]"],["22","Costco","Retail","242","6.2","316,000","United States","","[27]"],["23","JPMorgan Chase","Financials","239","49.5","309,926","","[28]"],["24","Industrial and Commercial Bank of China","222","51.4","419,252","China","","[29]"],["25","Schwarz Gruppe","Retail","220","n/a","604,000","Germany","","[30]"],["26","TotalEnergies","Oil and gas","218","21.3","102,579","France","","[31]"],["27","Glencore","Commodities","217","4.2","83,426","Switzerland","","[32]"],["28","Nvidia","Semiconductors","215","120","36,000","United States","","[33]"],["29","BP","Oil and gas","213","15.2","79,400","United Kingdom","","[34]"],["30","Cardinal Health","Healthcare","205","0.26","47,520","United States","","[35]"],["31","Stellantis","Automotive","204","20.1","258,275","Netherlands","","[36]"],["32","Chevron","Oil and gas","200","21.3","45,600","United States","","[37]"],["33","China Construction Bank","Financials","199","46.9","376,871","China","","[38]"],["34","Samsung Electronics","Electronics","198","11.0","267,860","South Korea","","[39]"],["35","Foxconn","197","4.5","621,393","Taiwan","","[40]"],["36","Cigna","Healthcare","195","5.1","71,413","United States","","[41]"],["37","Agricultural Bank of China","Financials","192","38.0","451,003","China","","[42]"],["38","China Railway Engineering Corporation","Construction","178","2.1","314,149","China","","[43]"],["39","Cargill","Conglomerate","177","17.6","160,000","United States","","[44]"],["40","Ford Motor Company","Automotive","176","4.3","177,000","","[45]"],["41","Bank of China","Financials","172","32.7","306,931","China","","[46]"],["42","Bank of America","171","26.5","212,985","United States","","[47]"],["43","General Motors","Automotive","171","10.1","163,000","","[48]"],["44","Elevance Health","Healthcare","171","5.9","104,900","","[49]"],["45","BMW Group","Automotive","168","12.2","154,950","Germany","","[50]"],["46","Mercedes-Benz Group","Automotive","165","15.4","166,056","Germany","","[51]"],["47","Meta Platforms","Social media","164","62.3","78,450","United States","","[52]"],["48","China Railway Construction Corporation","Construction","160","1.7","336,433","China","","[53]"],["49","Baowu","Steel","157","2.4","258,697","","[54]"],["50","Citigroup","Financials","156","9.2","237,925","United States","","[55]"]]},{"headers":null,"rowCount":14,"rows":[[],["Rank","Country","Companies"],["1","United States","24"],["2","China","11"],["3","Germany","4"],["4","United Kingdom","2"],["4","Switzerland","2"],["5","Japan","1"],["5","France","1"],["5","Netherlands","1"],["5","South Korea","1"],["5","Saudi Arabia","1"],["5","Singapore","1"],["5","Taiwan","1"]]},{"headers":null,"rowCount":3,"rows":[["Capital accumulation Overaccumulation Economic inequality Wealth distribution Income distribution Yard-sale model Consumption distribution History of economic inequality Brazil China Denmark Germany India Latin America Philippines South Africa South Korea Sweden United States income inequality wealth inequality International inequality Elite Oligarchy Overclass Plutocracy Plutonomy Broligarchy Primitive accumulation of capital Upper class Nouveau riche (new money) Vieux riche (old money) Luxury goods Veblen goods Conspicuous consumption Conspicuous leisure Luxury beliefs"],["PeoplePeople","Trillionaire Billionaire Centibillionaire Millionaire Captain of industry High-net-worth individual Magnate Business Oligarch Business Russian Ukrainian Robber baron"],["WealthWealth","Concentration Distribution Effect Geography Inheritance Dynastic Estate planning Management National Paper Religion Tax"]]},{"headers":["PeoplePeople","Forbes list of billionaires List of centibillionaires Female billionaires Richest royals Wealthiest Americans Wealthiest families"],"rowCount":2,"rows":[["OrganizationsOrganizations","Largest companies by revenue Largest corporate profits and losses Largest corporations by market capitalization Largest financial services companies by revenue Largest manufacturing companies by revenue European Largest software companies by revenue Largest technology companies by revenue Religious organizations Charities Philanthropists Universities Endowment size Number of billionaire alumni"],["OtherOther","Cities by number of billionaires Countries by number of billionaires Countries by total wealth Countries by wealth inequality Most expensive items by category"]]},{"headers":null,"rowCount":4,"rows":[["Diseases of affluence Affluenza Acquired situational narcissism Argumentum ad crumenam Prosperity theology"],["PhilanthropyPhilanthropy","Gospel of Wealth The Giving Pledge Philanthrocapitalism Venture philanthropy"],["SayingsSayings","The rich get richer and the poor get poorer Socialism for the rich and capitalism for the poor Too big to fail"],["MediaMedia","Das Kapital Plutus Greek god of wealth Superclass List The Theory of the Leisure Class Wealth The Wealth of Nations"]]}]}
Extract Tables from URL — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13075/html+table+extractor+api/26455/extract+tables+from+url?url=https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the HTML Table Extractor API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan
Custom Volume

  • Custom Rate Limit
  • Team & Access Management
  • SLA-backed Uptime
  • Specialized Customer Support
  • Real-Time API Monitoring
  • Enterprise Security & Compliance
Minimum annual contract: USD 10,000

Trusted by leading companies

Overview

The HTML Table Extractor API turns the tables on any public web page into ready-to-use JSON. It extracts every table on the page, auto-detects header rows, and returns each table as headers plus an array of row arrays — clean, predictable, and ready for your pipeline. Handles messy real-world HTML, nested markup, and multiple tables per page. Fast, stateless, and MCP-ready for AI agents. Perfect for scraping financial tables, sports stats, pricing grids, and Wikipedia data without writing or maintaining a parser.

HTML Table Extractor API FAQs

The API returns structured JSON data containing every HTML table found on a specified web page. Each table includes auto-detected headers and an array of rows, making it easy to access and utilize the data.

The key fields in the response include "ok" (status), "tableCount" (number of tables extracted), and "tables" (an array of table objects, each with "headers", "rowCount", and "rows").

The response data is organized as a JSON object. It contains a status indicator, the count of tables extracted, and an array of table objects, each detailing headers and rows in a structured format.

The API extracts various types of information from HTML tables, including financial data, sports statistics, pricing grids, and general data from sources like Wikipedia, depending on the content of the web page.

Users can customize their requests by specifying the URL of the web page they want to extract tables from using the 'url' query parameter in the GET request.

Typical use cases include extracting financial tables for analysis, gathering sports statistics for reporting, compiling pricing information for comparison, and retrieving structured data from Wikipedia for research.

The API extracts data directly from public web pages, relying on the inherent accuracy of the source content. However, users should verify the data against the original web pages for critical applications.

Users can expect a consistent structure in the returned data, with each table containing headers followed by rows of data. The format is predictable, allowing for easy integration into data processing pipelines.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs