Get Available Webshare Proxies
This endpoint provides a direct view into the pool of proxies currently available via the configured Webshare API key. It allows filtering by country code and limiting the number of results.This endpoint requires specific permissions and might expose sensitive information about the available proxy pool. It should typically only be accessible to administrators or internal services.
This endpoint requires authentication via bearer token representing a valid user session managed by Supabase Auth (cookies).Testing Note: Due to the requirement for a live user session, this endpoint cannot be successfully tested directly using the ‘Send’ button in this documentation with a static token.To test:
- Call this endpoint from your web application after logging in.
- Use
curl
or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.
curl
, you need the JWT access token stored by Supabase Auth in your browser.
- Log in to your application normally in your browser.
- Open Developer Tools (usually F12).
- Go to the Application tab (it might be called Storage in Firefox).
- Under the Storage section, find Cookies and select your application’s domain (e.g.,
http://localhost:3000
orhttps://onlyautomator.com
). - Look for a cookie named similar to
sb-access-token
(the exact name might vary slightly based on Supabase configuration). - Copy the entire value of this cookie. This is your Bearer token.
- Use this copied value in the
Authorization: Bearer <your_copied_token>
header for yourcurl
or other API tool requests.
Error Codes
Status Code | Description |
---|---|
401 | Authentication is required or token lacks necessary permissions |
500 | Internal error fetching or processing data from Webshare |
503 | Webshare API itself is down or returned an error status |
Code Examples
Notes
- This endpoint directly queries the Webshare
/proxy/list/
API using the configuredWEBSHARE_API_KEY
. - The response includes proxies considered
valid
by Webshare. - It does not filter out proxies already assigned to accounts in the OnlyAutomator system; it shows the raw available pool.
- Use this endpoint primarily for diagnostics or internal tooling, not typically for direct end-user consumption.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer token for authentication (JWT)
Query Parameters
Optional ISO country code to filter proxies.
Example:
"DE"
Maximum number of proxies to return.
Required range:
x <= 1000