# Mobile-Friendly Checker: Viewport, Responsive CSS & Fonts (`tagadanar/mobile-friendly-checker`) Actor

Check a list of URLs for mobile-friendliness from their HTML and CSS: viewport, zoom, fixed-width layout, media queries, font size, plugins, AMP/mobile URLs, noindex and robots.txt. One row per URL with verdict, score and fixes. $1.50 per 1,000 URLs + $0.001/run.

- **URL**: https://apify.com/tagadanar/mobile-friendly-checker.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** SEO tools, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 url checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Mobile-Friendly Checker: Viewport, Responsive CSS & Fonts

Check a list of web pages for mobile-friendliness in bulk. Paste URLs (or bare domains) and get **one row per page** with a verdict (`MOBILE_FRIENDLY`, `NEEDS_IMPROVEMENT`, `NOT_MOBILE_FRIENDLY`), a 0-100 score, and the evidence behind it: the viewport tag and whether zoom is blocked, the screen-width media queries and breakpoints in the page's CSS, fixed-width layout blocks wider than a phone, the base font size, Flash / Silverlight / Java plugins, frames, popup hints, AMP and separate mobile URLs, HTTPS, page weight, noindex and robots.txt. Every issue comes with a plain-language fix.

**$1.50 per 1,000 URLs checked on Free ($1.05 on Gold), plus $0.001 per run. Platform usage is included.** No API key, no login, no proxy needed. URLs that refuse, error out, are not HTML or are blocked by robots.txt cost nothing.

**How it checks (read this):** it reads the HTML the server sends and the CSS files that HTML links to, the way a crawler's first pass does. It does **not** open a browser: it does not render the page, run JavaScript, take screenshots or measure Core Web Vitals, and the tap-target and font checks are heuristics read from the CSS. It is an independent tool, not Google's or Bing's mobile-friendly test, and its verdict is not theirs. Pages built entirely by JavaScript are flagged with low confidence instead of being guessed.

### What you get

One flat row per URL. Fields a page does not have are null.

| Field | What it is |
| --- | --- |
| `url`, `finalUrl`, `statusCode` | The URL checked, where it ended after redirects, the HTTP status |
| `verdict` | `MOBILE_FRIENDLY` (no error or warning), `NEEDS_IMPROVEMENT` (warnings), `NOT_MOBILE_FRIENDLY` (an error), `NOT_CHECKED` (free row, see `error`) |
| `mobileFriendly` | `true` unless an error-level issue was found |
| `score` | 0-100: 100 minus 25 per error, 8 per warning, 2 per notice (indexing findings do not count) |
| `confidence` | `high`; `medium` when some stylesheets could not be read, or a page without a viewport comes from a server that varies by User-Agent; `low` when the page is built by JavaScript |
| `errorCount`, `warningCount`, `noticeCount`, `issueCodes` | Issue totals and codes, e.g. `MISSING_VIEWPORT, ZOOM_DISABLED` |
| `issues` | The list: `severity`, `category` (mobile, performance, security, indexing), `code`, `message`, `fix` |
| `passedChecks` | What passed, e.g. "Viewport set to the device width", "Responsive CSS (84 width media/container queries)" |
| `viewport`, `viewportDeviceWidth`, `zoomDisabled`, `maximumScale` | The viewport meta tag and what it does to zooming |
| `widthMediaQueries`, `containerQueries`, `breakpoints`, `responsiveFramework` | Responsive CSS found: media queries on screen width, their breakpoints (`480px, 768px, 1024px`), Bootstrap / Tailwind-style classes |
| `fixedWidthRules`, `fixedWidthSample` | CSS rules that still give an element a width over 480 px on a phone screen (rules undone by a later small-screen rule and rules for elements absent from the page are left out) |
| `htmlFixedWidthElements`, `htmlFixedWidthSample` | The same in the HTML itself (`<table width="900">`, `style="width: 960px"`) |
| `baseFontSizePx`, `smallFontRules` | Base text size from the CSS, and how many font sizes are under 12 px |
| `smallTapTargetRules` | Links or buttons the CSS sizes under 24 px (sample) |
| `plugins`, `usesFrames`, `interstitialHints` | Flash, Silverlight, Java applets; framesets; popup scripts and markup |
| `isAmp`, `ampUrl`, `mobileAlternateUrl`, `redirectedToMobileHost`, `variesByUserAgent` | AMP pages, separate mobile URLs (`m.` sites), dynamic serving |
| `javascriptRendered` | The HTML holds almost no text: the page is built by JavaScript |
| `https`, `indexAllowed`, `robotsMeta`, `xRobotsTag`, `crawlAllowedForGooglebot`, `robotsTxtRule` | HTTPS, noindex (meta robots and X-Robots-Tag), and whether robots.txt lets Googlebot crawl the URL |
| `htmlBytes`, `cssBytes`, `pageWeightBytes`, `requestCount` | Weight and requests of the HTML plus the stylesheets read (images and scripts are counted, not downloaded) |
| `cssFilesLinked`, `cssFilesRead`, `cssFilesNotRead`, `scriptCount`, `imageCount`, `responsiveImageCount`, `iframeCount` | What the page references |
| `title`, `lang`, `redirectCount`, `responseTimeMs`, `checkedAt` | Page basics |
| `error`, `errorMessage` | Why a URL was not checked (`HTTP_404`, `HTTP_403`, `ROBOTS_DISALLOWED`, `TIMEOUT`, `NOT_HTML`, `INVALID_INPUT`...) |

#### Checks

- **Errors (not mobile-friendly):** no viewport meta tag; a viewport fixed to a desktop width (`width=1024`); Flash, Silverlight or Java content; framesets; a layout block wider than a phone with no responsive CSS at all.
- **Warnings:** pinch-zoom blocked (`user-scalable=no`, `maximum-scale=1`); a viewport without `width=device-width`; layout blocks that keep a fixed width over 480 px on phones; no screen-width media queries while some elements have fixed widths; base font under 12 px; plain HTTP; HTML + CSS over 1.5 MB.
- **Notices:** zoom limited below 5x; several viewport tags; many font sizes under 12 px; `<font size="1">` tags; form fields under 16 px (iPhones zoom in on them); links or buttons sized under 24 px; wide images or embeds with no `max-width: 100%`; no `srcset` images; popup / interstitial hints; separate mobile URL; stylesheets blocked for Googlebot by robots.txt; many resources; large HTML; page built by JavaScript; stylesheets that could not be read.
- **Indexing (reported, never part of the verdict):** noindex, Googlebot blocked by robots.txt.

### Who uses it

- **Web agencies and freelancers**: check hundreds of local-business sites and list the ones that are not mobile-friendly, with the reasons, for redesign outreach.
- **SEO consultants**: audit a client's key pages (home, product, landing pages) for viewport, zoom, fixed layouts and noindex left on by mistake, with the fix for each issue.
- **Site owners and developers**: re-check templates after each release to catch a removed viewport tag, a new fixed-width block or a font that shrank.
- **Lead and data pipelines**: a mobile-readiness flag and score per domain, at scale.

### Examples

Prefill: one modern site and one 1990s-style site:

```json
{"urls":["https://apify.com","https://www.berkshirehathaway.com/"]}
```

A list of domains, HTML only (faster, fewer findings):

```json
{"urls":["example.com","https://www.python.org/","https://news.ycombinator.com"],"checkCss":false}
```

Pages with many stylesheets, read up to 20 per page:

```json
{"urls":["https://www.lemonde.fr/","https://github.com/"],"maxCssFilesPerPage":20}
```

### Results, zeros and errors

- A URL that refuses the request (403, 429), answers an error page (404, 500), is not HTML, or whose robots.txt disallows it gets a free row with `verdict` `NOT_CHECKED` and the reason in `error` / `errorMessage`. It is never reported as mobile-friendly.
- **robots.txt is respected for every host**: a disallowed page or stylesheet is not fetched. If a site's robots.txt answers a server error, the site counts as disallowed (RFC 9309).
- The run status sums it up, e.g. `PARTIAL: 66 of 86 URL(s) checked; MOBILE_FRIENDLY 47, NOT_MOBILE_FRIENDLY 15, NEEDS_IMPROVEMENT 4; 1 answered an error status (404, 410, 5xx...; listed, not charged); 13 refused or unreachable (HTTP_403 11, TIMEOUT 1, ROBOTS_UNREACHABLE 1), not charged; 6 not fetched because robots.txt disallows them.`.
- A run where every URL refused or failed ends FAILED with the reasons; a run where every URL was an error page or blocked by robots.txt ends SUCCEEDED (that answer is the result).
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $1.50 per 1,000 URLs checked on Free, with lower prices on higher Apify plans ($1.05 per 1,000 on Gold). Platform usage is included.
- Only URLs that answered with an HTML page and were checked are charged. Stylesheets, robots.txt and free rows cost nothing extra.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor checks no more URLs than it covers and says so in the status.

### FAQ

**Is this Google's Mobile-Friendly Test?** No. Google retired its Mobile-Friendly Test and API in December 2023, and Bing's tool is its own. This actor is an independent check of the page's HTML and CSS, with every finding shown so you can verify it.

**Why no screenshots or Lighthouse scores?** It does not run a browser. That keeps it cheap and fast for long URL lists; the trade-off is that what JavaScript changes after load is not seen (flagged as `javascriptRendered` with low confidence).

**My site serves phones a different page.** The request names itself as a mobile checker ("Mobile" in its User-Agent), and redirects to `m.` sites are followed and reported. Servers that pick the page by User-Agent are flagged (`variesByUserAgent`), with medium confidence when no viewport was found.

**How are fixed widths found without rendering?** Every CSS rule a phone applies (media queries evaluated for a 360 px wide portrait screen) that sets `width` or `min-width` over 480 px is listed, unless a later rule for the same element resets it or no element on the page matches it.

**What does the bot look like to my server?** At most two requests at a time per host and 4 per second (slower if your robots.txt sets a Crawl-delay), with a User-Agent naming this actor and its Store page.

### Data use

It reads public pages you choose, the stylesheets they link and each host's robots.txt. No login, no forms, no personal data collected beyond what the page itself shows in its title.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/mobile-friendly-checker/changelog.md

# Actor input Schema

## `urls` (type: `array`):

Pages to check, one per line: full URLs (https://example.com/pricing) or bare domains (example.com, checked as https://example.com/). Up to 5,000 per run. Each URL gives one row; a URL that cannot be fetched (refused, robots.txt, error page) gives a free row saying why.

## `checkCss` (type: `boolean`):

Fetch the CSS files the page links to (plus one level of @import) for the layout, font and breakpoint checks. Off = only the HTML and its inline <style> blocks are read: faster, but fixed-width and font findings may be missed.

## `maxCssFilesPerPage` (type: `integer`):

How many linked CSS files to read per page, in page order (web-font and icon-font CSS are never counted). Each file is read up to 1.5 MB, 5 MB per page in total. Files over the cap are listed as not read.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.berkshirehathaway.com/"
  ],
  "checkCss": true,
  "maxCssFilesPerPage": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://apify.com",
        "https://www.berkshirehathaway.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/mobile-friendly-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://apify.com",
        "https://www.berkshirehathaway.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/mobile-friendly-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://apify.com",
    "https://www.berkshirehathaway.com/"
  ]
}' |
apify call tagadanar/mobile-friendly-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/mobile-friendly-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ctFE6uc5txj31gGv3/builds/GcCP6494awgMQ5rbG/openapi.json
