String Web Access API
Fetch

Proxies & geolocation

Route a request through a specific country.

The Web Access API selects the proxy class a target needs automatically — standard or premium, residential where required. You control geolocation with countryCode.

countryCode

An ISO 3166-1 alpha-2 country code routes the request through a proxy in that country. Useful for geo-restricted or geo-personalized content.

curl https://request.usestring.ai/v1/fetch \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com", "countryCode": "US" }'

The value is validated against the list of supported country codes and normalized to uppercase.

Proxy class affects price

Premium proxies cost more than a standard request. The API only escalates to them when the target requires it. See Pricing.

On this page