# StackExchange Search ## Overview | Property | Value | |----------|-------| | **Status** | private | | **Method** | `GET` | | **Endpoint** | `/v2/stackexchange/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/stackexchange-search | ## Description Extract relevant Q&A data from StackExchange with our API, perfect for content enrichment, market research, and enhancing user engagement. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/stackexchange/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Example ```json { "query": "j'aime la vie", "results": [ { "url": "https://french.stackexchange.com/questions/25565/why-is-bonne-nuit-more-common-than-bienvenue", "title": "Why is 'Bonne nuit' more common than 'Bienvenue'?", "excerpt": "In French, 'Bonne nuit' is more common for good night, but why is that so?" }, { "url": "https://french.stackexchange.com/questions/23078/what-is-the-best-way-to-express-happiness-in-french", "title": "What is the best way to express happiness in French?", "excerpt": "I would like to know the different ways to express happiness in French. Would 'j'aime la vie' be appropriate?" }, { "url": "https://french.stackexchange.com/questions/24090/which-is-correct-je-taime-beaucoup-or-simply-je-taime", "title": "Which is correct: 'Je t'aime beaucoup' or simply 'Je t'aime'?", "excerpt": "I'm learning French and I want to know when to use each expression. Should I say 'Je t'aime beaucoup' or keep it simple with 'Je t'aime'?" } ] } ``` ## Documentation ## Overview Extract relevant Q&A data from StackExchange with our API, perfect for content enrichment, market research, and enhancing user engagement. ## Quickstart ``` GET https://api.piloterr.com/v2/stackexchange/search?query=example ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Search query or target identifier | ## Main use cases - Integrate StackExchange Search data into enrichment, analytics, and monitoring pipelines - Automate large-scale extraction from Stackexchange without maintaining scrapers - Power internal dashboards and workflow automations with live Stackexchange data