and toolkitsMemoryCallbacksChat loadersProvidersMoreDataForSEOOn this pageDataForSEOThis page provides instructions on how to use the DataForSEO search APIs within LangChain.Installation and Setup‚ÄãGet a DataForSEO API Access login and password, and set them as environment variables (DATAFORSEO_LOGIN and DATAFORSEO_PASSWORD respectively). You can find it in your dashboard.Wrappers‚ÄãUtility‚ÄãThe DataForSEO utility wraps the API. To import this utility, use:from langchain.utilities.dataforseo_api_search import DataForSeoAPIWrapperFor a detailed walkthrough of this wrapper, see this notebook.Tool‚ÄãYou can also load this wrapper as a Tool to use with an Agent:from langchain.agents import load_toolstools = load_tools(["dataforseo-api-search"])Example usage‚Äãdataforseo = DataForSeoAPIWrapper(api_login="your_login", api_password="your_password")result = dataforseo.run("Bill Gates")print(result)Environment Variables‚ÄãYou can store your DataForSEO API Access login and password as environment variables. The wrapper will automatically check for these environment variables if no values are provided:import osos.environ["DATAFORSEO_LOGIN"] = "your_login"os.environ["DATAFORSEO_PASSWORD"] = "your_password"dataforseo = DataForSeoAPIWrapper()result = dataforseo.run("weather in Los Angeles")print(result)PreviousDatadog LogsNextDeepInfraInstallation and SetupWrappersUtilityToolExample usageEnvironment VariablesCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This page provides instructions on how to use the DataForSEO search APIs within LangChain.
This page provides instructions on how to use the DataForSEO search APIs within LangChain. ->: and toolkitsMemoryCallbacksChat loadersProvidersMoreDataForSEOOn this pageDataForSEOThis page provides instructions on how to use the DataForSEO search APIs within LangChain.Installation and Setup‚ÄãGet a DataForSEO API Access login and password, and set them as environment variables (DATAFORSEO_LOGIN and DATAFORSEO_PASSWORD respectively). You can find it in your dashboard.Wrappers‚ÄãUtility‚ÄãThe DataForSEO utility wraps the API. To import this utility, use:from langchain.utilities.dataforseo_api_search import DataForSeoAPIWrapperFor a detailed walkthrough of this wrapper, see this notebook.Tool‚ÄãYou can also load this wrapper as a Tool to use with an Agent:from langchain.agents import load_toolstools = load_tools(["dataforseo-api-search"])Example usage‚Äãdataforseo = DataForSeoAPIWrapper(api_login="your_login", api_password="your_password")result = dataforseo.run("Bill Gates")print(result)Environment Variables‚ÄãYou can store your DataForSEO API Access login and password as environment variables. The wrapper will automatically check for these environment variables if no values are provided:import osos.environ["DATAFORSEO_LOGIN"] = "your_login"os.environ["DATAFORSEO_PASSWORD"] = "your_password"dataforseo = DataForSeoAPIWrapper()result = dataforseo.run("weather in Los Angeles")print(result)PreviousDatadog LogsNextDeepInfraInstallation and SetupWrappersUtilityToolExample usageEnvironment VariablesCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.