WebToAPI

← Todas las guías

How to turn any web page into a JSON API without writing code

· 6 min de lectura

Esta guía todavía no está disponible en tu idioma, así que estás leyendo el original en inglés.

Plenty of useful numbers live on pages that have no API: a price on a shop listing, a rate on a bank page, a stock count on a supplier portal. The usual answer is to write a scraper, host it somewhere, and then keep it alive. This guide shows the shorter route — click the values you want and get a JSON endpoint back.

1. Install the extension and open the page you care about

Add WebToAPI to Chrome, then navigate to the page holding the data. Anything you can see in a normal browser tab works: a product page, a leaderboard, a dashboard behind a public URL.

Click the extension icon and choose "Pick an element". The page dims slightly and elements highlight as you move the mouse. That highlight is the selector engine showing you exactly what it will capture.

2. Click the values, name the fields

Every element you click becomes one named field in your JSON. Give the fields names that will still make sense in six months — "price_usd" beats "field_1" when you are reading the response inside a spreadsheet.

You can select as many values as you need from the same page. One page means one API, so everything you pick lands in a single response rather than forcing you to juggle several endpoints.

3. Get your endpoint

Save the API and you get a URL straight away. By default it is keyless: anyone who knows the address can read the JSON, which makes it trivial to drop into a spreadsheet formula or a cron job without wiring up secrets.

curl https://api.webtoapi.net/v1/YOUR_API_ID

The response is plain JSON with the field names you chose:

{
  "data": {
    "price_usd": "1,284.50",
    "in_stock": "Yes"
  },
  "fetchedAt": "2026-08-26T09:14:02Z"
}

If you would rather keep the endpoint private, switch on "Require an API key" in the dashboard and pass the key as a header instead.

Why it keeps working with your browser closed

The extension is only the picker. Once the API exists, the reading happens on our servers: every call fetches the page fresh, applies your selectors and returns the values. Your machine can be switched off.

Pages that render their content with JavaScript are handled too. We try a plain HTTP fetch first because it is fast and cheap, and fall back to a headless browser automatically when the values are not in the initial HTML. You do not have to choose or configure anything.

Responses are cached for 60 seconds, so calling once a second will not hammer the target site — and will not burn through your quota either.

What it costs

  • Free: an API stays alive for 7 days, 1,000 requests a day, 300 of them keyless.
  • Pro: the API never expires, 25,000 requests a day, 5,000 of them keyless.
  • Keyless traffic is additionally capped at 120 requests per hour per IP address.

The rate limits exist to stop abuse rather than to push you upwards. The difference that actually matters between the plans is whether the API expires.

Good manners, and the limits of the tool

We identify ourselves with a descriptive user agent, respect robots.txt and rate-limit ourselves to roughly one request per second per domain. That is deliberate: an endpoint that gets your source blocked is worth nothing to you.

Two honest caveats. Pages behind a login are out of reach, because we read them as an anonymous visitor. And if a site redesigns its markup, your selectors can break — we mark an API as failing after three consecutive misses so you find out from the dashboard rather than from a silent empty field.

WebToAPI convierte cualquier página en un endpoint JSON: elige los valores y obtén la URL.

Añadir a Chrome