API para Web Scraping: Fazer scraping de página
Faça scraping de qualquer página web e receba o conteúdo principal em Markdown limpo, além do título e dos metadados.
US$ 0,70/mil req., pague por requisição, sem assinatura.
Introducing Example 2.0
Everything new in the biggest Example release yet.
Today we are shipping the biggest release in our history…
{"url": "https://www.example.com/blog/launch","title": "Introducing Example 2.0","description": "Everything new in the biggest Example release yet.","markdown": "# Introducing Example 2.0\n\nToday we are shipping the biggest release in our history…","html": string,"language": string,"rawHtml": string,"statusCode": integer}
Roteador de scraping
Enviamos cada página para o scraper mais barato que realmente consegue extraí-la.
- Scraper mais baratoToda página começa aqui
- Próximo scraperSó se a página bloquear o anterior
- Navegador completoSó para as páginas mais difíceis
Preço por mil páginas
- AnyAPI98/100US$ 1,05
Firecrawl90/100US$ 3,97plano Hobby
Bright Data81/100US$ 1,50
Jina Reader55/100US$ 0,73Cloudflare Browser Rendering48/100no máximo US$ 0,10+ plano de US$ 5/mês
100 páginas, uma tentativa cada, medido em 1 de out. de 2026Ver todas as páginas →
Preços e provedores
Preços do endpoint Fazer scraping de página da API para Web Scraping: uma API, 5 provedores intercambiáveis
O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.
Bloqueado é a parcela de chamadas em que o próprio site recusou a página. Não conta contra a disponibilidade. Cada provedor depois do primeiro só recebe as páginas em que os anteriores falharam, que são os sites mais difíceis, então esses números não são uma comparação direta.
Teste
Obtenha Fazer scraping de página do Web Scraping em uma só requisição
Este exemplo mostra 6 de 11 campos. Ver todos os campos
{
"found": true,
"data": {
"url": "https://www.example.com/blog/launch",
"title": "Introducing Example 2.0",
"description": "Everything new in the biggest Example release yet.",
"markdown": "# Introducing Example 2.0\n\nToday we are shipping the biggest release in our history…"
}
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Uma requisição, um formato de resposta.
Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.
Última verificação em 2026-11-14 · disponibilidade e latência medidas em 30d
Corpo da requisição
JSON, enviado via POST para este endpoint.
- urlstring
https://www.example.com/blog/launch
The full web address of the page to scrape, including its domain, for example https://example.com. The https:// prefix is optional.
- blockAdsboolean
Quando true (padrão do upstream), remove elementos de anúncio e de consentimento de cookies antes da captura. Defina false para mantê-los.
- excludeTagsarray
Seletores CSS a remover antes da captura (ex.: ["nav", "footer", ".ads"]). Aplicado depois de includeTags.
- formatsarray
Quais representações da página retornar. Qualquer combinação de: markdown (conteúdo da página em Markdown), html (o HTML da página exatamente como o navegador o recebeu, incluindo as tags head e script). Cada formato solicitado é retornado no campo de saída correspondente. O padrão é ambos. rawHtml é um alias obsoleto de html, retornado em um campo rawHtml para quem integrou antes da renomeação; envie html no lugar dele.
- includeTagsarray
Seletores CSS a manter. Quando definido, apenas o conteúdo que corresponde a esses seletores é capturado (ex.: ["article", "main"] ou ["#content"]).
- mobileboolean
Quando true, renderiza a página com viewport e user agent de celular em vez de desktop. Alguns sites servem conteúdo substancialmente diferente para celular.
- onlyMainContentboolean
Quando true, retorna apenas o conteúdo principal do artigo, removendo navegação, cabeçalhos, rodapés e outros elementos repetitivos. O padrão é false, para capturar a página inteira.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `statusCode`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that reports a field only in some cases, such as only when the website answered with an error, does not count as returning it.
- waitForinteger
Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time you asked us to spend, so your response takes this much longer, and it is excluded from the latency published for this endpoint. If every provider that can wait fails, the page may still be returned, captured without the wait.
Resposta
JSON, um valor de exemplo por campo.
- descriptionstring
Everything new in the biggest Example release yet.
The page meta description.
- htmlstring
The page HTML exactly as the browser received it, head and script tags included. Present when 'html' is among the requested formats (the default).
- languagestring
Two-letter language code the page declares (its html lang attribute or the equivalent metadata).
- markdownstring
# Introducing Example 2.0 Today we are shipping the biggest release in our history…
The page content as clean Markdown. Present when 'markdown' is among the requested formats (the default). Populated whenever the provider has data for the entity.
- rawHtmlstring
The same bytes as 'html'. Deprecated alias returned only when 'rawHtml' is among the requested formats; use 'html'.
- statusCodeintegerpode ser exigido
HTTP status code the website answered with, such as 200, 404 or 500. Absent when it could not be determined. Some sources report it only when the website answered with an error; name `statusCode` in requireFields to be served only by a source that always reports it.
- titlestring
Introducing Example 2.0
The page title from its metadata.
- urlstring
https://www.example.com/blog/launch
The canonical source URL of the scraped page. Populated whenever the provider has data for the entity.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Dúvidas frequentes
Sobre o endpoint Fazer scraping de página da API para Web Scraping
O endpoint Fazer scraping de página da AnyAPI para Web Scraping retorna dados de Web Scraping em JSON normalizado com uma chamada POST para /v1/run/web.scrape. Faça scraping de qualquer página web e receba o conteúdo principal em Markdown limpo, além do título e dos metadados. A AnyAPI distribui cada requisição entre 5 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,70 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,2% das chamadas ao endpoint Fazer scraping de página da API para Web Scraping feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,7 segundos, em 477.059 chamadas medidas.