# Cheerio

[BASE product page](<https://base.akulich.dev/en/library/cheerio/>) · [Resource](<https://github.com/cheeriojs/cheerio>)

ID: cheerio · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

An HTML/XML parser and selector API for Node\.js: it extracts data and transforms documents without running a full browser\.

## Type

Backend / API library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/cheerio/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/cheerio/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/cheerio/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/cheerio/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/cheerio/#resource-tasks>)

- Extract data from HTML without a browser
- Read/transform selected nodes and check the structured result

## Category IDs

- backend

## Subcategory IDs

- backend\.api

## Tags

- Cheerio
- API
- Development

## Also known as

- cheeriojs/cheerio
- cheerio
- cheeriojs

## [Selection purpose](<https://base.akulich.dev/en/library/cheerio/#resource-selection>)

Extract data from HTML without a browser

## [Choose this when](<https://base.akulich.dev/en/library/cheerio/#resource-selection>)

- Extract data from HTML without a browser
- Read/transform selected nodes and check the structured result

## [Requirements](<https://base.akulich.dev/en/library/cheerio/#resource-selection>)

- HTML/XML to parse and Node\.js; the current introductory documentation specifies Node\.js 22\.19 or later\.

## [Limitations](<https://base.akulich.dev/en/library/cheerio/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: MIT for the code; dependencies have separate licenses\.
- Cheerio does not replace browser automation and cannot reproduce client interactions itself\.

## [Questions before use](<https://base.akulich.dev/en/library/cheerio/#resource-faq>)

### What can you use for free in Cheerio?

Code and local use under MIT\.

### What additional costs might arise with Cheerio?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Cheerio?

MIT for the code; dependencies have separate licenses\.

### How do you get started with Cheerio?

Prepare an HTML/XML sample and selectors for the required elements\. Read/transform selected nodes and check the structured result\. Add error handling and an integration check of the result\.

### Why doesn't Cheerio see content generated by a site's JavaScript?

Cheerio parses HTML/XML and provides an API for selecting and modifying nodes\. It does not execute JavaScript, render CSS, or load external resources like a browser\. A SPA's client\-rendered result is therefore absent until you obtain the rendered markup another way\. Puppeteer or Playwright can perform browser execution\.

## Sources for the selection guide

- [https://github\.com/cheeriojs/cheerio](<https://github.com/cheeriojs/cheerio>)
- [https://raw\.githubusercontent\.com/cheeriojs/cheerio/HEAD/Readme\.md](<https://raw.githubusercontent.com/cheeriojs/cheerio/HEAD/Readme.md>)
- [https://raw\.githubusercontent\.com/cheeriojs/cheerio/HEAD/LICENSE](<https://raw.githubusercontent.com/cheeriojs/cheerio/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/cheerio/#resource-scenario>)

Extract data from HTML without a browser\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A data contract or HTTP workflow\.
- A project with a supported runtime\.

## Steps

1. Prepare an HTML/XML sample and selectors for the required elements\.
2. Read/transform selected nodes and check the structured result\.
3. Add error handling and an integration check of the result\.

## Check your result

- Invalid and missing data are handled predictably\.
- Types and the actual response agree; errors are not hidden\.

## [License](<https://base.akulich.dev/en/library/cheerio/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/cheerio/#resource-sources>)

- [Official source](<https://github.com/cheeriojs/cheerio>)
- [Official source](<https://raw.githubusercontent.com/cheeriojs/cheerio/HEAD/Readme.md>)
- [License](<https://raw.githubusercontent.com/cheeriojs/cheerio/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://cheerio.js.org/docs/intro/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
