Skip to content

Feature Request: Support HTTPS_PROXY / HTTP_PROXY / NO_PROXY environment variables for proxying #27

Open
@sondt2709

Description

@sondt2709

Hi SerpApi team 👋,

I’m using serpapi-javascript in a Dockerized Node.js environment where external network traffic must go through a corporate proxy.

Currently, it appears that the library does not respect standard environment variables like HTTPS_PROXY, HTTP_PROXY, and NO_PROXY. From reviewing the source, it looks like the underlying https module is used directly, which doesn’t automatically inherit proxy settings from the environment.

Expected Behavior

The library should support proxy configuration via environment variables, similar to how tools like axios, got, or node-fetch behave.

Feature Request

Would you consider adding proxy support either via:
• Native support for HTTPS_PROXY/HTTP_PROXY/NO_PROXY in the client
• Or, allowing users to pass a custom HTTP(S) agent when initializing the SerpApi client?

Thanks for considering this!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions