"ads": " "sse": "{\"type\": \"conversation_detail_metadata\" ...",
> "fanouts": [
> "best basketball shoes 2026",
> "top rated basketball shoes 2026 reviews",
> "best performance basketball shoes 2026",
> "best basketball shoes for guards 2026",
> "best basketball shoes for wide feet 2026",
> "best outdoor basketball shoes 2026",
> "most popular basketball shoes 2026"
> ],
> "country": "US",
> "city": "Portland"
> }
> ```
#### HTML
HTML is available after processing by rendering and JavaScript engines or in the raw form sent by
the chatbot (planned).
## Additional examples
### Cachebusting
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/ai'\
'?prompt=Show+the+current+weather.'\
'&expiration=0'
```
# Browsing
Source: https://docs.joinmassive.com/web-render/browser
Unblock difficult-to-crawl websites.
> [!NOTE]
>
> See also the [API reference](reference/browser) for more detail.
## Service usage
**Massive's** browser service navigates intelligently on your behalf, rendering JavaScript,
solving [captchas](https://www.ibm.com/topics/captcha), and retrying failed requests. The service
has a RESTful interface that accepts `GET` requests at
**https\://render.joinmassive.com/browser** and a
[Chrome DevTools Protocol (CDP) interface](#cdp-interaction) for controlling browser navigation
yourself that accepts WebSocket connections at **wss\://render.joinmassive.com/browser**.
Webpages can be localized with [geotargeting parameters](geotargeting). Those
requested via REST are retrieved in real time by default or optionally queued for [subsequent retrieval](scheduling). Up to **3 minutes** is allotted per real-time API
call to accommodate captcha-solving, multiple retries, and other mitigations. [Usage data](usage) is published regularly.
> [!TIP]
>
> If a site you're targeting remains blocked, even with different browsing params, [let us know](mailto:support@joinmassive.com). We can usually help unblock any site within **48
> hours**.
### Authentication
You can access the service by including your secret API token in an `Authorization` header:
```http theme={null}
Authorization: Bearer [API token here]
```
Here's an example request that uses the [common Curl command](https://curl.se/):
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/browser'\
'?url=https://example.com/'
```
> [!WARNING]
>
> This endpoint autoscales; if you receive a `503` response, maintain traffic and
> expect errors to resolve within a minute.
### REST parameters
Besides the [geotargeting and scheduling params linked above](#service-usage), required and optional
REST params can be added in a
[standard query string](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL#parameters).
See [our rate card](pricing) for the prices of premium params. The keys and values
**Massive** supports are as follows:
| Key | Required | Premium | Value |
| :- | :- | :- | :- |
| `url` | ✅ | ⬜ | The URL of up to 2,047 characters of the page to browse; any unsafe characters require [URL encoding](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding) |
| `difficulty` | ⬜ | ✅ | The difficulty pool to attempt to access the URL from, `low`, `medium`, or `high` (planned); `low` is the default difficulty |
| `speed` | ⬜ | ✅ | The speed to attempt to access the URL at, `light`, `ridiculous`, or `ludicrous` (planned), where `ridiculous` is 30 percent faster on average than `light` speed; `light` is the default speed |
| `device` | ⬜ | ⬜ | The name as returned by the [devices resource](#device-emulation) of the device to emulate browsing on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default |
| `session` | ⬜ | ⬜ | Any unique identifier of up to 255 characters (regardless of character encoding); **Massive** will make best efforts to route calls in the same session to the same egress node for up to 12 minutes |
| `captcha` | ⬜ | ⬜ | The intended resolution of any detected captcha, `solved`, `ignored`, or `rejected`, where `rejected` results in a `403` response; `solved` is the default captcha resolution |
| `readiness` | ⬜ | ⬜ | The standard ready event to await before snapshotting browsed content, `load` or `domcontentloaded`; `load` is the default ready event |
| `delay` | ⬜ | ⬜ | The number of supplemental seconds to delay before snapshotting browsed content, from `.1` to `10` inclusive; no delay is used by default |
| `format` | ⬜ | ⬜ | The format to output to, `rendered`, `raw`, or `markdown` (see the [section below](#response-format)); `rendered` is the default format |
| `expiration` | ⬜ | ⬜ | The age in days of when to consider cached content expired, where `0` disables caching; `1` is the default number of days before expiration |
| `callback` | ⬜ | ⬜ | The encoded HTTP or HTTPS callback URL or Amazon SQS queue URL or ARN of up to 2,047 characters to notify when the (prerequisite) asynchronous content has been retrieved; any SQS queue must grant `sqs:SendMessage` permission to the `arn:aws:iam::180363035301:role/api-instance` AWS principal |
### CDP interaction
If your use case involves interacting with not just reading pages, you can connect
[Puppeteer](https://pptr.dev/), [Playwright](https://playwright.dev/), or
[another CDP-compatible automation framework](https://github.com/ChromeDevTools/awesome-chrome-devtools#libraries-for-driving-the-protocol-or-a-layer-above)
to the browser service:
```js theme={null}
#!/usr/bin/env node
import puppeteer from 'puppeteer';
const browser = await puppeteer.connect({
browserWSEndpoint: 'wss://render.joinmassive.com/browser',
headers: {
Authorization: `Bearer ${process.env.MASSIVE_TOKEN}`
}
});
```
> [accordion] View Playwright sample
>
> ```py theme={null}
> #!/usr/bin/env python3
> import os
> from playwright.sync_api import sync_playwright
>
> with sync_playwright() as playwright:
> browser = playwright.chromium.connect_over_cdp(
> 'wss://render.joinmassive.com/browser',
> headers={
> 'Authorization':
> f"Bearer {os.environ['MASSIVE_TOKEN']}"
> }
> )
> ```
The connection string takes geotargeting params and a subset of the [REST params](#rest-parameters),
namely `difficulty`, `device`, and `session`:
```js theme={null}
const browser = await puppeteer.connect({
browserWSEndpoint:
'wss://render.joinmassive.com/browser' +
'?difficulty=medium',
headers: {
Authorization: `Bearer ${process.env.MASSIVE_TOKEN}`
}
});
```
After connecting, most of your framework's API (see the [Puppeteer reference](https://pptr.dev/api),
[Playwright reference](https://playwright.dev/docs/api/class-playwright), et cetera) will be
available:
```js theme={null}
const [page] = await browser.pages();
await page.goto('https://example.com/');
console.log('URL:', page.url());
console.log('Title:', await page.title());
```
CDP use is metered by time, so you should disconnect from the service when done by calling
`browser.disconnect()` (Puppeteer), `browser.close()` (Playwright), or the equivalent.
### Protocol mixture
You can control costs by mixing REST requests and CDP use within a sticky browser session. E.g., you
may want to prepare a page for interaction over REST then interact with the page over CDP:
> [accordion] View REST-to-CDP sample
>
> ```js theme={null}
> #!/usr/bin/env node
> import puppeteer from 'puppeteer';
>
> const restEndpoint = 'https://render.joinmassive.com/browser';
> const cdpEndpoint = 'wss://render.joinmassive.com/browser';
> const apiToken = process.env.MASSIVE_TOKEN;
> const headers = { Authorization: `Bearer ${apiToken}` };
> const sessionId = Date.now();
> const orderUrl = 'https://httpbin.org/forms/post';
> const sizeSelector = '[name="size"][value="small"]';
> const toppingSelector = '[name="topping"][value="cheese"]';
> const buttonSelector = 'button';
> const requestTimeoutMs = 180_000;
> const connectionTimeoutMs = 10_000;
> const delayMs = 1_000;
> const delay = (ms) => {
> return new Promise((resolve) => {
> setTimeout(resolve, ms);
> });
> };
> const getCookies = (response) => {
> const cookies = response.headers.getSetCookie?.() ?? [];
> const keyvals = cookies.map((cookie) => {
> return cookie.split(';', 1)[0];
> });
>
> return keyvals.join('; ');
> };
>
> console.log(
> 'Making REST request with session',
> sessionId,
> '...'
> );
>
> const controller = new AbortController();
> let timeoutId = setTimeout(() => {
> controller.abort();
> }, requestTimeoutMs);
> let response;
>
> try {
> const url =
> restEndpoint +
> '?url=' +
> encodeURIComponent(orderUrl) +
> '&session=' +
> sessionId +
> '&expiration=0';
> response = await fetch(
> url,
> { headers, signal: controller.signal }
> );
> } catch (error) {
> const hasTimedOut = error.name == 'AbortError';
> response = new Response(
> hasTimedOut
> ? 'Request timed out'
> : 'Unknown error occurred',
> { status: hasTimedOut ? 504 : 500 }
> );
> } finally {
> clearTimeout(timeoutId);
> }
>
> if (response.ok) {
> console.log('Order form read successfully');
> } else {
> const text = await response.text();
>
> console.error('Order form read failure:', text.trimEnd());
>
> process.exit(1);
> }
>
> console.log(
> 'Connecting via CDP with session',
> sessionId,
> '...'
> );
>
> timeoutId = setTimeout(() => {
> console.error('Connection timed out');
>
> process.exit(1);
> }, connectionTimeoutMs);
> const url = `${cdpEndpoint}?session=${sessionId}`;
> const browser = await puppeteer.connect({
> browserWSEndpoint: url,
> headers: { ...headers, Cookie: getCookies(response) }
> });
>
> clearTimeout(timeoutId);
>
> const page = (await browser.pages()).find((page) => {
> return page.url().includes(orderUrl);
> });
>
> if (page) {
> console.log('Session handed off successfully');
> } else {
> console.error('Session handoff failure');
>
> process.exit(1);
> }
>
> await page.waitForSelector(sizeSelector);
> await page.click(sizeSelector);
> await delay(delayMs);
> await page.waitForSelector(toppingSelector);
> await page.click(toppingSelector);
> await delay(delayMs);
> await page.waitForSelector(buttonSelector);
> await Promise.all([
> page.waitForNavigation({ waitUntil: 'domcontentloaded' }),
> page.click(buttonSelector)
> ]);
>
> try {
> const json = await page.evaluate(() => {
> return document.body.innerText;
> });
> const data = JSON.parse(json);
>
> if (
> data.form &&
> typeof data.form.size == 'string' &&
> typeof data.form.topping == 'string'
> ) {
> console.log(
> 'Ordered',
> data.form.size.toLowerCase(),
> 'pizza with',
> data.form.topping.toLowerCase()
> );
> } else {
> console.error('Receipt was malformed');
>
> process.exit(1);
> }
> } catch (error) {
> console.error('Receipt parse failure:', error.message);
>
> process.exit(1);
> }
>
> await browser.disconnect();
> ```
To hand off in reverse, from CDP to REST, call your disconnect method first.
### Device emulation
The `device` param lets you browse device-specific content, rather than the default desktop content.
For a list of supported smartphone and tablet devices, make a request with your API token and no
params to **https\://render.joinmassive.com/browser/devices**:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/browser/devices'
```
The API will return JSON that contains an alphabetized array of device names:
```json theme={null}
[
"Blackberry PlayBook",
"Blackberry PlayBook landscape",
"BlackBerry Z30",
"[Remaining device names here]"
]
```
Then, pass your device name of choice into your browsing request or connection:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/browser'\
'?url=https://crackberry.com/'\
'&device=Blackberry+Playbook'
```
```js theme={null}
const browser = await puppeteer.connect({
browserWSEndpoint:
'wss://render.joinmassive.com/browser' +
'?device=Blackberry+Playbook',
headers: {
Authorization: `Bearer ${process.env.MASSIVE_TOKEN}`
}
});
```
### Response format
Read-only pages are returned as rendered HTML, raw (unrendered) HTML, or Markdown optimized for LLM
prompts.
## Additional examples
### Cachebusting
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/browser'\
'?url=https://api.weather.gov/alerts'\
'&expiration=0'
```
### End-to-end Playwright
> [accordion] View end-to-end sample
>
> ```py theme={null}
> #!/usr/bin/env python3
> import os
> from playwright.sync_api import sync_playwright
>
> ENDPOINT = 'wss://render.joinmassive.com/browser'
> API_TOKEN = os.environ['MASSIVE_TOKEN']
> URL = 'https://example.com/'
>
> print(f"Connecting to {ENDPOINT} ...")
>
> with sync_playwright() as playwright:
> browser = playwright.chromium.connect_over_cdp(
> ENDPOINT,
> headers={'Authorization': f"Bearer {API_TOKEN}"}
> )
> context = browser.contexts[0]
> page = context.pages[0]
>
> print(f"Going to {URL} ...")
>
> page.goto(URL)
> print(f"URL: {page.url}")
> print(f"Title: {page.title()}")
> browser.close()
> ```
# Geotargeting
Source: https://docs.joinmassive.com/web-render/geotargeting
Search, chat, and browse from anywhere.
## Local content
Every HTTP request can be routed through one of more than 190 countries, by subdivision and city:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=musical+instruments'\
'&country=US'
```
> [accordion] View subdivision example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/ai'\
> '?prompt=Where+can+I+buy+a+vintage+guitar%3F'\
> '&country=US'\
> '&subdivision=TN'
> ```
> [accordion] View city example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/browser'\
> '?url=https://guitars.com/'\
> '&country=US'\
> '&city=Nashville'
> ```
These are the geotargeting request parameters:
| Key | Required | Value |
| :- | :- | :- |
| `country` | ⬜ | The [two-letter ISO code](https://www.iso.org/obp/ui/#search/code) of the country to browse from (these codes are case insensitive); a random country is used by default |
| `subdivision` | ⬜ | The alphanumeric second part (proceeding the separator) of a [first-level subdivision code](https://www.iso.org/obp/ui/#search/code) in the (prerequisite) country to browse from (these codes are case insensitive); a random subdivision is used by default |
| `city` | ⬜ | The [commonly spelled name](https://www.geonames.org/) of the city in the (prerequisite) country to browse from (these names are temporarily case sensitive and required to include form- or URL-encoded spaces and punctuation marks); a random city is used by default |
> [!WARNING]
>
> City targeting takes precedence over subdivision targeting if both are specified.
These are the response parameters:
| Key | Value |
| :- | :- |
| `country` | The ISO code of the country that was browsed from |
| `subdivision` | The partial ISO code of the subdivision in the country that was browsed from |
| `city` | The common name of the city in the country that was browsed from |
# Overview
Source: https://docs.joinmassive.com/web-render/overview
One API to chat with AI, browse, and search the live web.
The **Massive** Web Render API turns hard-to-reach web content into clean, structured
data. Every service shares one RESTful interface: authenticate with your API token, send a
`GET` request, and get back JSON, rendered HTML, or raw HTML.
## Endpoints
> [card] [AI chat](/web-render/ai)
>
> Generate popular LLM completions.
> [card] [Browsing](/web-render/browser)
>
> Unblock difficult-to-crawl websites.
> [card] [Search](/web-render/search)
>
> Extract top real-time search results.
## Configuration
Options that apply across every endpoint.
> [card] [Geotargeting](/web-render/geotargeting)
>
> Make requests from anywhere.
> [card] [Scheduling](/web-render/scheduling)
>
> Defer responses for later retrieval.
## Managing your account
> [card] [Pricing](/web-render/pricing)
>
> Understand API credits and billing.
> [card] [Reporting](/web-render/usage)
>
> Track API usage and performance.
## API reference
Prefer to jump straight to the spec? The [API reference](/web-render/reference/ai) documents
every parameter, response field, and status code for each endpoint.
# Pricing
Source: https://docs.joinmassive.com/web-render/pricing
Understand API credits and billing.
## Credit system
Access to **Massive** services is based on prepaid credits. Your credit balance is decremented
only for successful API calls or successful Chrome DevTools Protocol (CDP) sessions. Most calls cost
**1 credit** each or are **free**, except for substantially longer-running AI calls:
| Service | Base credits |
| :- | :- |
| [Search](search) | 1 |
| [AI](ai) | 5 |
| [Browser](browser) | 1 |
| [Reporting](usage) | 0 (free) |
| Administration | 0 (free) |
CDP sessions are billed by time, rounded down to the nearest credit:
| Service | Base credits |
| :- | :- |
| [Browser CDP](browser) | 10 / minute |
A few premium parameters multiply the base cost of calls or sessions that use them:
| Service | Key | Value | Credit multiplier |
| :- | :- | :- | :- |
| Browser (CDP) | `difficulty` | `medium` | 2 |
| Browser (CDP) | `difficulty` | `high` | 6 |
| Browser | `speed` | `ridiculous` | 2 |
| Browser | `speed` | `ludicrous` (planned) | 4 |
For example, calling the browser service successfully with both `difficulty=medium` and
`speed=ridiculous` params would cost **4 credits** in total:
1 base credit x 2 (difficulty multiplier) x 2 (speed multiplier) = 4 total credits
> [card] [Your API credits](https://dashboard.joinmassive.com/plans)
>
> Create or fund an account.
# Completion
Source: https://docs.joinmassive.com/web-render/reference/ai
get /ai
Retrieve an LLM completion or queue a conversation for later retrieval.
# Async completion
Source: https://docs.joinmassive.com/web-render/reference/ai/completions
get /ai/completions
Retrieve the completion or status of a queued conversation – use `GET /ai?id=...`.
# Devices
Source: https://docs.joinmassive.com/web-render/reference/ai/devices
get /ai/devices
Retrieve supported device names.
# Content
Source: https://docs.joinmassive.com/web-render/reference/browser
get /browser
Retrieve web content or queue a request for later retrieval; connect to `wss://render.joinmassive.com/browser` for CDP interaction.
# Async content
Source: https://docs.joinmassive.com/web-render/reference/browser/content
get /browser/content
Retrieve the content or status of a queued request – use `GET /browser?id=...`.
# Devices
Source: https://docs.joinmassive.com/web-render/reference/browser/devices
get /browser/devices
Retrieve supported device names.
# Results
Source: https://docs.joinmassive.com/web-render/reference/search
get /search
Retrieve search results or queue a search for later retrieval.
# Async results
Source: https://docs.joinmassive.com/web-render/reference/search/results
get /search/results
Retrieve the results or status of a queued search – use `GET /search?id=...`.
# Usage data
Source: https://docs.joinmassive.com/web-render/reference/usage
get /usage
Generate an hourly consumption report.
# Credit balance
Source: https://docs.joinmassive.com/web-render/reference/user
get /user
Retrieve the settings and remaining credits of an account.
# Scheduling
Source: https://docs.joinmassive.com/web-render/scheduling
Defer responses for later retrieval.
## Asynchronous mode
An API call that includes the `mode=async` key-value pair will be satisfied asynchronously:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=prolonged+fasting'\
'&mode=async'
```
> [accordion] View AI example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/ai'\
> '?prompt=Summarize+the+latest+research+on+prolonged+fasting.'\
> '&mode=async'
> ```
> [accordion] View browser example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/browser'\
> '?url=https://pubmed.ncbi.nlm.nih.gov/?term=prolonged+fasting'\
> '&mode=async'
> ```
In response, the API will provide a JSON job identifier:
```json theme={null}
{ "id": "078fd246-f0f7-44a0-aabb-cadd7b12454f" }
```
The job results, completion, or content or job status can be requested any time thereafter by
passing back the ID:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?id=078fd246-f0f7-44a0-aabb-cadd7b12454f'
```
> [accordion] View AI example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/ai'\
> '?id=1851dab8-4619-409f-893f-47dd3a180bc3'
> ```
> [accordion] View browser example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/browser'\
> '?id=21cb972e-0e0f-47bb-9ce9-65b99e9cee77'
> ```
The results, completion, or content, if ready, will be returned in the same format as [synchronous results](search#response-format), a [synchronous completion](ai#response-format), or [synchronous content](browser#response-format); otherwise, a JSON status message will be
returned.
A `retrieving` status indicates that the search, conversation, or request is in progress:
```json theme={null}
{ "status": "retrieving" }
```
A `failed` status indicates that the search, conversation, or request was unsuccessful and the call
should be retried:
```json theme={null}
{ "status": "failed" }
```
These are the scheduling request parameters:
| Key | Required | Value |
| :- | :- | :- |
| `mode` | ⬜ | The synchronous or asynchronous mode of content retrieval, `sync` or `async`; `sync` is the default mode |
| `id` | ⬜ | The identifier provided by the [search](search), [AI](ai), or [browser endpoints](browser) of an asynchronous job to retrieve |
These are the response parameters:
| Key | Value |
| :- | :- |
| `id` | The identifier to retrieve an asynchronous job with |
| `status` | The status of an asynchronous job, `retrieving` or `failed` |
# Search
Source: https://docs.joinmassive.com/web-render/search
Extract top real-time search results.
> [!NOTE]
>
> See also the [API reference](reference/search) for more detail.
## Service usage
**Massive's** search service delivers all organic and paid result types from popular search
engines, reliably, as structured or raw data. The service has a RESTful interface that accepts `GET`
requests at **https\://render.joinmassive.com/search**.
Searches can be localized with [geotargeting parameters](geotargeting). They're
performed live by default or optionally queued for [subsequent
retrieval](scheduling). Live searches take an average of a few seconds but may require multiple retries,
in which case up to **3 minutes** is allocated per API call. [Usage data](usage) is
published regularly.
### Authentication
You can access the service by including your secret API token in an `Authorization` header:
```http theme={null}
Authorization: Bearer [API token here]
```
Here's an example request that uses the [common Curl command](https://curl.se/):
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=foo+bar+baz'
```
> [!WARNING]
>
> This endpoint autoscales; if you receive a `503` response, maintain traffic and
> expect errors to resolve within a minute.
### Search parameters
Besides the [geotargeting and scheduling params linked above](#service-usage), required and optional
search params can be added in a
[standard query string](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL#parameters).
The keys and values **Massive** supports are as follows:
| Key | Required | Value |
| :- | :- | :- |
| `terms` | ✅ | The broad or exact word or phrase of up to 255 characters to query (e.g., `foo bar baz` or `"foo bar baz"`); the terms require [form or URL encoding](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding) (with any space character being replaced by a `+` character or `%20` sequence) |
| `engine` | ⬜ | The search engine to use, `google` or `bing` (coming soon); `google` is the default engine |
| `serps` | ⬜ | The number of results pages to retrieve, from `1` to `10` inclusive; `1` is the default count |
| `size` | ⬜ | The number of results per page to retrieve, from `0` to `100` inclusive; page size is unset by default |
| `offset` | ⬜ | The number of initial results to skip, from `0` to `100` inclusive; results aren't offset by default |
| `device` | ⬜ | The name as returned by the [devices resource](#device-emulation) of the device to emulate searching on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default |
| `uule` | ⬜ | The [proprietary encoded string](https://moz.com/blog/geolocation-the-ultimate-tip-to-emulate-local-search) for emulating the location to search from; if possible, the actual location is searched from not emulated; location emulation is unused by default |
| `language` | ⬜ | The commonly spelled name, [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php), or [Google code](https://www.google.com/advanced_search) of the language to search in (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the language is unset by default |
| `display` | ⬜ | The commonly spelled name, [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php), or [Google code](https://www.google.com/advanced_search) of the search interface's display language (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the display language is unset by default or set to the language if given |
| `url` | ⬜ | The encoded URL of up to 2,047 characters of the results page to retrieve; if given, the URL overrides any of the above params |
| `awaiting` | ⬜ | The lazy result features to wait to load, an `ai` overview, "People also ask" `answers`, or sponsored `ads`; any AI overview, which can take significant time to generate, is awaited for a maximum of **1 minute**; multiple features can be provided by repeating the key; lazy results aren't awaited by default |
| `expiration` | ⬜ | The age in days of when to consider cached results expired, where `0` disables caching; `1` is the default number of days before expiration |
| `callback` | ⬜ | The encoded HTTP or HTTPS callback URL or Amazon SQS queue URL or ARN of up to 2,047 characters to notify when the (prerequisite) asynchronous results have been retrieved; any SQS queue must grant `sqs:SendMessage` permission to the `arn:aws:iam::180363035301:role/api-instance` AWS principal |
### Device emulation
The `device` param lets you fetch device-specific results, rather than the default desktop results.
For a list of supported smartphone and tablet devices, make a request with your API token and no
params to **https\://render.joinmassive.com/search/devices**:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search/devices'
```
The API will return JSON that contains an alphabetized array of device names:
```json theme={null}
[
"Blackberry PlayBook",
"Blackberry PlayBook landscape",
"BlackBerry Z30",
"[Remaining device names here]"
]
```
Then, pass your device name of choice into your search request:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=blackberry'\
'&device=Blackberry+PlayBook'
```
### Response format
Search results are returned as rendered HTML. If you request multiple results pages that don't
feature infinite scrolling, the HTML of each page will be separated from the next by an empty line
(`\n\n`).
## Additional examples
### Results omission
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=vpn+comparison'\
'&size=100'\
'&offset=20'
```
### Alternative URL
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dfoo%2Bbar%2Bbaz%26hl%3Dfr%26gl%3Dfr%26ie%3DUTF-8'
```
### Lazy results
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=how+tall+is+mount+everest%3F'\
'&awaiting=ai'\
'&awaiting=answers'
```
### Push notification
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/search'\
'?terms=amazon+simple+queue+service'\
'&callback=https://webhook.site/02e249f8-1faf-4fab-bcf5-78ce683e85a8'
```
# Reporting
Source: https://docs.joinmassive.com/web-render/usage
Track API usage and performance.
> [!NOTE]
>
> See also the [API reference](reference/usage) for more detail.
## Service usage
**Massive's** reporting service buckets and updates consumption, success, and latency metrics
at intervals of **1 hour**. The service has a RESTful interface that accepts `GET` requests at
**https\://render.joinmassive.com/usage**.
### Authentication
You can access the service by including your secret API token in an `Authorization` header:
```http theme={null}
Authorization: Bearer [API token here]
```
Here's an example request that uses the [common Curl command](https://curl.se/):
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/usage'\
'?from=2025-12-24'\
'&to=2025-12-25'
```
> [!WARNING]
>
> This endpoint is rate limited; if you receive a `429` response, pause for the
> backoff time required by the `Retry-After` header before making another request.
### Report parameters
You should specify an ISO date or time range to generate a report:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/usage'\
'?from=2025-12-24T18:00:00-06:00'\
'&to=2025-12-25T9:00:00-06:00'
```
The API will return a JSON array:
```json theme={null}
[{
"email": "user@example.com",
"from": "2025-12-25T00:00:00+00:00",
"to": "2025-12-25T15:00:00+00:00",
"service": "browser",
"result": "success",
"calls": 17208,
"credits": 17208,
"meanSecs": 6.78
}, {
"email": "user@example.com",
"from": "2025-12-25T01:00:00+00:00",
"to": "2025-12-25T15:00:00+00:00",
"service": "browser",
"result": "failure",
"calls": 18,
"credits": 0,
"meanSecs": 60.22
}]
```
Your report can optionally be filtered by one or more services:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/usage'\
'?from=2025-12-24'\
'&to=2025-12-25'\
'&service=search'
```
> [accordion] View multiple-service example
>
> ```shell theme={null}
> curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
> 'https://render.joinmassive.com/usage'\
> '?from=2025-12-24'\
> '&to=2025-12-25'\
> '&service=search'\
> '&service=ai'
> ```
You can also disaggregate the metrics:
```shell theme={null}
curl -H "Authorization: Bearer $MASSIVE_TOKEN" \
'https://render.joinmassive.com/usage'\
'?from=2025-12-24'\
'&to=2025-12-25'\
'&by=hour'
```
These are the request keys and values:
| Key | Required | Value |
| :- | :- | :- |
| `from` | ✅ | The [ISO datetime](https://www.w3.org/TR/NOTE-datetime) to select data starting from, inclusively |
| `to` | ✅ | The [ISO datetime](https://www.w3.org/TR/NOTE-datetime) to select data up to, inclusively |
| `email` | ⬜ | **\[Whitelabelers only]** The (case-insensitive) email address of the user to select data for; multiple email addresses can be provided by repeating the key; data for all email addresses is included by default |
| `service` | ⬜ | The service to select data for, `search`, `ai`, or `browser`; multiple services can be provided by repeating the key; data for all services is included by default |
| `by` | ⬜ | The time unit to group the data by, `hour`, `day` (planned), or `total`; `total` is the default unit |
These are the response keys and values:
| Key | Value |
| :- | :- |
| `email` | The email address of the user whose data is selected |
| `from` | The ISO datetime of the first datapoint |
| `to` | The ISO datetime of the last datapoint |
| `service` | The service included in the data, `search`, `ai`, or `browser` |
| `result` | The type of result included in the data, `success` or `failure` |
| `calls` | The number of API calls of the service and result type |
| `credits` | The number of credits consumed by the API calls |
| `meanSecs` | The average number of elapsed seconds of the API calls |