VOOZH about

URL: https://apify.com/zerobreak/inline-css-detector

โ‡ฑ Inline Css Detector ยท Apify


Pricing

$4.99/month + usage

Go to Apify Store

Inline CSS detector that fetches any webpage and reports every style attribute and style tag, so developers and SEO teams can find and remove inline CSS before it affects page speed.

Pricing

$4.99/month + usage

Rating

0.0

(0)

Developer

๐Ÿ‘ ZeroBreak

ZeroBreak

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

4 months ago

Last modified

Share

Inline CSS Detector: Find Inline Styles on Any Webpage

Inline CSS detector that scans any webpage for every style attribute and embedded <style> tag. Give it one URL or a list of pages and it returns element counts, CSS byte sizes, and tag-level detail: exactly which elements carry inline styles, what class and ID they have, and what the style values say.

What data does this actor extract?

Each result contains the URL, HTTP status code, page title, inline style count, style tag count, byte sizes for each type of inline CSS, a list of elements with style attributes (tag name, class, ID, and style value), and the raw content of each style tag.

Use cases

  • Pre-migration audits: check how much inline CSS a site carries before switching frameworks or CMS
  • SEO checks: inline styles bloat HTML and can delay first-paint rendering; find them before they affect Core Web Vitals
  • Code reviews: flag pages that violate a no-inline-styles policy without reading every file
  • Site-wide checks: run against a full URL list to find the worst inline CSS offenders across a domain
  • QA testing: confirm inline styles were removed after a cleanup sprint

Input

ParameterTypeDefaultDescription
urlstringSingle URL to scan.
urlsarrayList of URLs to scan, one per line. Combined with url if both are provided.
maxUrlsinteger100Maximum number of URLs to process per run.
timeoutSecsinteger300Overall actor timeout in seconds.
requestTimeoutSecsinteger30Per-request timeout in seconds.
proxyConfigurationobjectDatacenter (Anywhere)Proxy type and location for requests. Supports Datacenter, Residential, Special, and custom proxies. Optional.

Example input

{
"urls":["https://apify.com","https://apify.com/store"],
"maxUrls":50,
"requestTimeoutSecs":30,
"proxyConfiguration":{"useApifyProxy":true}
}

What does the output look like?

The actor stores results in a dataset. Each entry is one scanned URL:

{
"url":"https://apify.com",
"statusCode":200,
"pageTitle":"Apify: Full-Stack Web Scraping and Data Extraction Platform",
"hasInlineCss":true,
"inlineStyleCount":12,
"styleTagCount":2,
"inlineStyleBytes":438,
"styleTagBytes":1204,
"totalCssBytes":1642,
"inlineStyleElements":[
{
"tag":"div",
"id":"hero",
"cssClass":"hero-section",
"styleValue":"background-color: #ff5733; padding: 20px;"
}
],
"styleTagContents":[".nav { display: flex; }"],
"scrapedAt":"2025-03-05T10:30:00.000Z"
}
FieldTypeDescription
urlstringFinal URL after any redirects
statusCodeintegerHTTP status code
pageTitlestringContent of the <title> tag
hasInlineCssbooleanTrue if any inline CSS was found
inlineStyleCountintegerNumber of elements with style attributes
styleTagCountintegerNumber of <style> tags on the page
inlineStyleBytesintegerTotal bytes of all inline style values
styleTagBytesintegerTotal bytes of all style tag contents
totalCssBytesintegerCombined inline CSS byte count
inlineStyleElementsarrayTag-level detail for each element with a style attribute
styleTagContentsarrayRaw text of each style tag
scrapedAtstringISO 8601 timestamp
errorstringError message if the page failed to load

How it works

  1. The actor reads the input URL list and deduplicates entries.
  2. For each URL, it sends an HTTP request with a realistic browser User-Agent.
  3. The HTML is parsed using BeautifulSoup to find all style attributes and <style> tags.
  4. Counts, byte sizes, and element details are computed and pushed to the dataset.
  5. Errors are caught per URL so one failed page does not stop the rest.

Integrations

Connect Inline CSS Detector with other apps and services using Apify integrations. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and many more. You can also use webhooks to trigger actions whenever results are available.

FAQ

Can this actor scan JavaScript-rendered pages? No. The actor fetches raw HTML. Styles injected by JavaScript will not appear in results. For JS-heavy sites, use a browser-based scraper.

How many URLs can I process in one run? Up to 1000 per run via maxUrls. For larger lists, split across multiple runs.

Will it pick up inline styles from WordPress plugins or page builders? Yes, as long as those styles appear in the server-rendered HTML. Client-side injections via JavaScript are not captured.

Why does inline CSS byte count matter for SEO? Inline CSS adds to HTML document size and can block or delay rendering. Trimming it helps page speed scores, which Google uses as a ranking factor.

Run this actor before a site audit, after a code review, or any time you need hard numbers on how much inline CSS a site is carrying.

You might also like

CSS Color Extractor

automation-lab/css-color-extractor

Extract every CSS color from a website โ€” hex, RGB, HSL, and named colors from inline styles and linked stylesheets. Returns a deduplicated palette with usage counts and CSS properties.

๐Ÿ‘ User avatar

Stas Persiianenko

21

PDF to HTML Converter

junipr/pdf-to-html

Convert PDFs to clean HTML preserving formatting, headings, tables, and layout. Multi-page support with per-page or combined output. OCR fallback for image PDFs. Inline CSS styling. Download via API.

Website Asset & Script Extractor

andok/asset-extractor

Extract all CSS stylesheets and JavaScript files loaded on a webpage for technical SEO audits and performance optimization.

Font Detector

automation-lab/font-detector

This actor detects web fonts used on web pages. It identifies Google Fonts, Adobe Fonts (Typekit), custom @font-face declarations, and font-family CSS properties. It parses inline styles, external stylesheets, and font preloading links.

๐Ÿ‘ User avatar

Stas Persiianenko

38

Airbnb Scraper - Most Comprehensive

kaix/airbnb-listing-scraper

๐Ÿ”ฅ ~$0.5/1K places ๐Ÿ”ฅ Scrape Airbnb listings by URL, listing ID, or location search. Returns full listing details including description, amenities, host info, location, photos, policies, and ratings. Optionally fetches reviews inline.