Public Playground
The public Playground at foura.ai/playground sends a real request through FourA from your browser. You don't need an account or an API key, and nothing you run here counts against a plan. Use it to see what a page returns through FourA before you sign up, then copy the request as curl, Python, or Node.js code.
Once you've signed up, the dashboard Playground runs requests on your own key and adds Auto, Browser, Google search results, a run history, saved presets, and more. Public vs Dashboard Playground lists the differences.
What It Does
The page opens on the API tab. The tabs under Options pick which FourA endpoint the form calls:
| Tab | Endpoint | What happens |
|---|---|---|
| Find Proxy (selected when the page opens) | Proxy | FourA tries different proxies until one gets a successful answer |
| Use Proxy | Single | One request. Paste a proxy ID to send it through that exit, or leave the field empty to send it without a proxy |
| Browser | None | Browser requests run from the dashboard only |
On Browser, a card reads Browser runs from the dashboard. If you're signed in, Open dashboard playground opens the dashboard Playground. If you aren't, Log in to try Browser takes you to sign-up. Scrape stays off while this tab is selected.
Building the Request
URL Row
The top row holds the HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) and the target URL. The page opens on GET with a sample URL, https://postman-echo.com/headers, so you can press Scrape right away.
Pick POST, PUT, or PATCH and a Request Data: box appears below the options. Its text goes out as the request body (data). Other methods send no body.
Options
The Options section is open when the page loads.
| Setting | What it sends | Default |
|---|---|---|
| Browser profile | unblocker: true. Makes the request look like a real browser without running one |
On |
| Data As Json | tryJsonData: true. FourA tries to decode the answer as JSON |
On |
| Data as Buffer | returnBuffer: true. The body comes back as a buffer instead of text |
Off |
| Follow Redirects | followRedirects, set to Max Redirects (1 to 20; left empty, 10) |
Off |
A setting that's off isn't sent at all, so the API's own default applies.
Find Proxy has four fields for the Proxy call as a whole:
- Timeout (ms): the time limit for the whole search for a proxy, 1 to 120000 (
timeout_ms). Left empty, it isn't sent. - Max Tries: the attempt budget for the search (
maxTries), 1 to 90. The field starts at 25 and goes out on every Find Proxy run until you clear it. - Exit Countries: two-letter codes for the countries the target should see, comma-separated (
CZ, GB), sent asexitCountries. The page uppercases and deduplicates them. A code that isn't two letters stops the run with "Exit countries must be comma-separated two-letter codes." Exits with an unknown country are left out, and the request never falls back to another country. See exitCountries scoping. - Ignore Proxies (IDs): proxy IDs FourA should skip (
ignoreProxies). Click Add for each one.
Use Proxy has one field for a proxy ID (proxy). Click into it to pick from the proxies that already worked for you (see Working Proxies).
Headers
Under Headers, Add Header adds a name and value row. Rows without a name aren't sent, and the rest go out as headers.
Timeouts
Timeouts holds five fields: Timeout (ms), Connect Timeout (ms), Accept Timeout (ms), Response Timeout (ms), and DNS Cache Timeout (sec). They send timeout_ms, connect_timeout_ms, accept_timeout_ms, server_response_timeout_ms, and dns_cache_timeout_sec. Each field's hint shows its default and range, and an empty field isn't sent.
On Find Proxy, these five go into the request FourA sends through each proxy (request). The Timeout (ms) under Find Proxy caps the whole search.
Validation
Validation sets which answers count as a success (validate). Each list has its own Add button.
- Status Codes: status codes under Accept: and Fail: (
validate.status). Accept: starts with200, so every request carriesvalidate.status.accept: [200]until you remove it. - Headers Validation: header name and value pairs under Accept: and Fail: (
validate.headers). - Data Validation: text to look for in the body, under Accept: and Fail: (
validate.data).
The dashboard Playground has no field for header rules, so this is the place to try them without code. See Validation Rules for how the API applies each list.
Running a Request
Click Scrape, or press Cmd+Enter or Ctrl+Enter. The button reads Scraping..., and a line under the form cycles through "Finding the best proxy...", "Checking the response...", "Waiting for response...", and "Almost there...". The previous result stays on screen, dimmed, until the new one arrives.
Scrape stays off while the URL is empty, while a request is running, and on the Browser tab.
Press Escape to put the form back the way the page opened: the sample URL, GET, the default options, Find Proxy with Max Tries at 25, and empty proxy fields, headers, body, timeouts, and validation, with 200 back under Accept:. It clears the last result too. There's no confirmation, and Escape works even while you're typing in a field. The Working Proxies list stays.
Reading the Result
A line under the buttons reports the outcome:
- "Request sent and response received!" when FourA answered. If the answer carries an
errorfield, a second line shows it after Error:. - "Failed to process request", or the message in FourA's answer, when FourA returned an error status.
- "Network error. Please try again." when the page couldn't reach FourA.
Two panels follow:
- The request panel shows exactly what the page sent, with JSON, curl, Python, and Node.js tabs and a Copy button for the open tab. The code posts to the Proxy or Single endpoint, matching the selected tab.
- The Response panel shows the full JSON FourA returned, error answers included, with its own Copy button.
Before you use a copied snippet in your own code, replace the key in its x-api-key header with your own (YOUR_API_KEY, created in the dashboard) so the requests run on your plan. Authentication covers keys.
Working Proxies
When a request succeeds through a proxy, the page saves that proxy ID in this browser. It keeps the request's time and, when FourA's answer names it, the exit country. The ID is the one FourA picked on Find Proxy, or the one you typed on Use Proxy.
On a wide screen, a Working Proxies panel lists the saved IDs, with a count at the bottom such as "3 proxies found":
- Use switches to Use Proxy and puts the ID in the proxy field.
- Ignore switches to Find Proxy and adds the ID to Ignore Proxies (IDs).
- Remove drops one ID, and Clear all drops them all.
- Minimize folds the panel into a small button that shows the count.
The same IDs appear as suggestions when you click the Use Proxy field or an Ignore Proxies (IDs) row, on any screen size. The list stays in this browser between visits and isn't part of a share link.
Sharing a Request
Share saves the whole form and copies a link such as https://foura.ai/playground/s/<id> to your clipboard. The button reads Copied for 3 seconds, or Failed when the link couldn't be made. An invalid Exit Countries value also causes Failed.
Opening the link fills in the same URL, method, options, proxy tab and fields, headers, body, timeouts, and validation, and the page says "Shared request configuration." under its heading. It doesn't run the request and carries no response, so whoever opens it clicks Scrape.
- A link lasts 7 days. After that, opening it shows "This link has expired. They only last 7 days, ask the sender for a new one."
- A form larger than 10 KB can't be shared, for example one with a long request body.
- One visitor can make 10 links an hour.
- Share is off while the URL is empty or a request is running.
Everything in the form goes into the link, including header values and the body, and anyone with the link can open it for 7 days. Take out passwords, tokens, and session cookies before you share.
From the Home Page
The home page has a small version of the Playground: a URL box, Scrape, and Try: buttons for three sample targets (JSON API, News, E-commerce). It sends a GET through Single with Browser profile on. It adds https:// when the URL has no scheme, and it shows the status code, time, and body size.
See full response in Playground opens the Playground with that URL filled in. Click Scrape there to run it with the full form. The full form starts on Find Proxy, so that run goes through Proxy. Open full Playground opens the Playground with its sample URL.
To send someone to the Playground with a target filled in, add the target as the url parameter, URL-encoded: https://foura.ai/playground?url=https%3A%2F%2Fexample.com%2F.
Public vs Dashboard Playground
- Account: the public Playground needs none. The dashboard Playground needs you signed in.
- Billing: nothing you run here counts against a plan. In the dashboard, a run counts against the plan of the key you pick.
- Endpoints: Single and Proxy here. The dashboard has Auto, Single, Proxy, Browser and Google search results.
- Proxy options: a proxy ID, Exit Countries, Ignore Proxies (IDs) and Max Tries here. The dashboard adds
exitClassand Exit location. - Browser profile: one on/off switch here. The dashboard also has the os, browser and version selects.
- Header rules (
validate.headers): only here. - Code: JSON, curl, Python and Node.js here. The dashboard shows JSON and curl, with Reveal key.
- Share links: only here, for 7 days.
- Cookie jar, History, Saved presets, Carry, credits spent and what the call needed: only in the dashboard.
Tips
- Set Exit Countries on Find Proxy to see what a site shows visitors from that country. When it works, click Use on that proxy in Working Proxies to repeat the call through the same exit on Use Proxy.
- Add a Data Validation string you expect on the real page, such as a product name, so a refusal page doesn't count as a success.
- Once the request does what you want, copy the Python or Node.js tab and put your own key in, and you've got your first integration. Quick Start takes it from there.
- Need JavaScript rendering, Auto, Google search results or a history of your runs? Sign up and use the dashboard Playground.
Related
- Quick Start: Make your first request with your own key
- Authentication: Create a key and send it with every request
- Dashboard Playground: The signed-in Playground with Auto, Browser and Google search results
- API Endpoints: Every parameter the form sends
- Reuse a Proxy Across Requests: Keep the same exit across calls