Skip to content

Conversation

@rajputshivam2324
Copy link
Contributor

Update API key environment variable reference ,

In credentials , environmental variable is defined like this :
process.env.GOOGLE_SCHOLAR_API_KEY="your-serp-api-key"
to : SERPAPI_API_KEY="your-serp-api-key"

@github-actions github-actions bot added langchain For docs changes to LangChain oss javascript labels Nov 4, 2025
@mdrxy
Copy link
Collaborator

mdrxy commented Nov 4, 2025

Can you provide attribution?

@rajputshivam2324
Copy link
Contributor Author

In the credentials section, it mentioned using the below code snippets in the .env file.
However, in the .env file, we don’t write process.env.API_KEY_NAME; we only define the key name and its value.

Also, since there’s no official Google Scholar API key, the SERPAPI_API_KEY is actually used for this purpose and the same is referenced later in the docs.
This change helps avoid confusion for beginners who might misunderstand the snippet.

@mdrxy mdrxy merged commit 9ad0a4e into langchain-ai:main Nov 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants