Tools

Get browser info (PUT)

Changed on

Returns information about the HTTP request, including the client IP address, country code, request headers, and body length.

This endpoint is designed for proxy testing. It accepts any HTTP method so you can verify that your proxy correctly forwards requests of any type and that client IP addresses are anonymized.

put/v2/browser-info

Request

  • Base URL
    https://api.apify.com
  • Auth
    none required

Query parameters

skipHeadersboolean

If true or 1, the response omits the headers field.

rawHeadersboolean

If true or 1, the response includes the rawHeaders field with the raw request headers.

Response

methodstring required

HTTP method of the request.

clientIpstring nullable required

IP address of the client.

countryCodestring nullable required

Two-letter country code resolved from the client IP address.

bodyLengthinteger required

Length of the request body in bytes.

headersobject

Request headers. Omitted when skipHeaders=true.

rawHeadersstring[]

Raw request headers as a flat list of alternating name/value strings. Included only when rawHeaders=true.

Example response

{
  "method": "GET",
  "clientIp": "1.2.3.4",
  "countryCode": "US"
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • warning

      added the new full-permissions-require-verified-owner enum value to the / response property for the response status

    • warning

      added the new full-permissions-require-verified-owner enum value to the / response property for the response status

    • warning

      added the new input-validation-timed-out enum value to the / response property for the response status

    • warning

      added the new input-validation-timed-out enum value to the / response property for the response status

    • warning

      added the new mcp-connector-actor-not-allowed enum value to the / response property for the response status

    • warning

      added the new mcp-connector-actor-not-allowed enum value to the / response property for the response status

    • warning

      added the new more-public-actors-require-verified-owner enum value to the / response property for the response status

    • warning

      added the new more-public-actors-require-verified-owner enum value to the / response property for the response status

    • warning

      added the new readme-required enum value to the / response property for the response status

    • warning

      added the new readme-required enum value to the / response property for the response status

    • warning

      added the new schemas-required enum value to the / response property for the response status

    • warning

      added the new schemas-required enum value to the / response property for the response status

    • warning

      added the new standby-deployment-invalid enum value to the / response property for the response status

    • warning

      added the new standby-deployment-invalid enum value to the / response property for the response status

    • warning

      added the new too-many-public-actor-tasks-per-account enum value to the / response property for the response status

    • warning

      added the new too-many-public-actor-tasks-per-account enum value to the / response property for the response status

    • warning

      added the new too-many-public-actor-tasks-per-actor enum value to the / response property for the response status

    • warning

      added the new too-many-public-actor-tasks-per-actor enum value to the / response property for the response status