# LangSearch Web Search API

Category: [AI search and web reading](https://free-web-services.com/web-services/ai/search/)  
Page: https://free-web-services.com/web-services/ai/search/langsearch-web-search-api.html  
Documentation: https://docs.langsearch.com/reference/search-api-guide

The LangSearch Web Search API searches the web for AI apps and agents and returns ranked results with URLs, titles and snippets, or the full page text when asked, for example to give a language model current sources to cite. Send a JSON POST to /v1/web-search with a Bearer API key and set the number of results and freshness. Free with a free API key, within a daily token allowance and rate limits. An official MCP server at https://mcp.langsearch.com/mcp lets AI agents search the web.

- API key: Needed, free
- Pricing: Free with a free API key, within a daily token allowance and rate limits.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, MCP
- Provider: docs.langsearch.com
- Last checked: Working on November 3rd, 2026

Example request:

```sh
curl -X POST 'https://api.langsearch.com/v1/web-search' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"London weather","count":3}'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

