from langchain.chains.api import tmdb_docs
headers = {"Authorization": f"Bearer {os.environ['TMDB_BEARER_TOKEN']}"}
chain = APIChain.from_llm_and_api_docs(llm, tmdb_docs.TMDB_DOCS, headers=headers, verbose=True)
chain.run("Search for 'Avatar'")
> Entering new APIChain chain...
 https://api.themoviedb.org/3/search/movie?query=Avatar&language=en-US
rtdocs_stable/api.python.langchain.com/en/stable/modules/chains/examples/api.html