For the complete documentation index, see llms.txt. This page is also available as Markdown.

Web API Playground

Learn how to use the Web API Playground to build and test Search and Scrape requests, preview results, and export ready-to-use code.

Web API Playground is an interactive tool available in the Oxylabs dashboard. It allows you to build and test Web API requests without writing code.

With Web API Playground, you can run /search and /scrape requests side by side, adjust request parameters, switch output formats, preview results, and copy ready-to-use code in language of your choice.

It's designed for quick prototyping, exploring what the API returns for a target, and verifying a request before adding it to your project.

Who can use it?

Web API Playground is available to all Oxylabs dashboard users with access to Web API.

  • New users can start with a $5 welcome credit.

  • Existing customers can use the Playground alongside their regular API integrations as a testing and prototyping environment.

Web API Playground is intended for testing and exploration only. For high-volume or automated workflows, call the Web API endpoints directly from your code and use the delivery modes built for large volumes.

How to use it

1

Access Web API Playground

Log in to the Oxylabs dashboard and open your Web API product instance.

The Playground is located in the center of your Web API product instance Overview.

2

Select an endpoint

Choose /search to discover fresh, ranked sources for a query, or /scrape to retrieve clean, structured data from a known URL.

3

Enter the details

Depending on your chosen Web API Playground mode, check the corresponding tab below:

For /scrape, enter the target page URL for scraping.

Then, adjust the request for your use case by clicking the Options button:

Location (location)

Country-level IP geo-targeting for localization and geo-fenced page access.

Device (device)

Configures request client headers and viewport emulation as Desktop (default) or Mobile.

JS rendering (run_js)

Enables headless browser JavaScript execution for client-side rendering.

Finally, click the Output button to configure delivery formats. Multiple output formats can be chosen:

HTML

Returns raw unparsed or rendered DOM HTML (default)

Markdown

Converts page DOM into clean, LLM-ready Markdown, discarding boilerplate script/style tags, LLM-friendly output option.

JSON

Returns structured programmatic data. (requires either schema or prompt-based extraction rules. Learn more about both extraction modes in AI Parsing page.)

Screenshot

Captures a full visual page render. Requires JS rendering, costs extra.

Selecting multiple options appends each value to the payload's output array (e.g. "output": ["html", "md"]).

4

Run the request

Submit your request by clicking the arrow button and preview the returned data in the Output section below.

From here, you can preview the results, evaluate your response speed, inspect or download the result output in your chosen output formats.

5

Export

If you're happy with the results, switch to the Request tab, where you can copy the generated code in your preferred language and use it in your scripts or applications.

If you wish to integrate Web API into your AI agent or coding assistant, you can also choose the Copy to agents option which integrates Web API with your agent in a single prompt.

Last updated

Was this helpful?