zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Search Tools/Stack Overflow
Logo Stack Overflow

Stack Overflow

Stack Overflow & Stack Exchange search — Q&A programming dengan tags, score, view count. Support stackoverflow/superuser/serverfault/askubuntu.

Endpoints
1
Requests
37
Updated
3 months ago
For LLMs
llms.txt
Endpoint health9 hours ago
  • searchpassing, 0.6s
1/1 passingdaily 01:00 WIB

Playground

1 endpoint
GET/v1/search-tools:stackoverflow/search3m cache3 paramschecking key…
Parameters
querystringrequired

Search keyword

pagenumber

Result page (default 1, max 50)

siteenum

Stack Exchange site (default stackoverflow)

·
Response
EXAMPLE
{
  "page": 1,
  "count": 15,
  "items": [
    {
      "url": "https://stackoverflow.com/questions/32308370/what-is-the-syntax-for-typescript-arrow-functions-with-generics",
      "tags": [
        "typescript"
      ],
      "score": 825,
      "title": "What is the syntax for Typescript arrow functions with generics?",
      "author": "Andreas Frische",
      "source": "stackoverflow.com",
      "createdAt": "2015-08-31T09:46:38.000Z",
      "viewCount": 524972,
      "isAnswered": true,
      "answerCount": 18
    },
    {
      "url": "https://stackoverflow.com/questions/12710905/how-do-i-dynamically-assign-properties-to-an-object-in-typescript",
      "tags": [
        "typescript"
      ],
      "score": 900,
      "title": "How do I dynamically assign properties to an object in TypeScript?",
      "author": "Peter Olson",
      "source": "stackoverflow.com",
      "createdAt": "2012-10-03T14:42:54.000Z",
      "viewCount": 1084771,
      "isAnswered": true,
      "answerCount": 31
    },
    {
      "url": "https://stackoverflow.com/questions/33535879/how-to-run-typescript-files-from-command-line",
      "tags": [
        "node.js",
        "typescript"
      ],
      "score": 831,
      "title": "How to run TypeScript files from command line?",
      "author": "Gunchars",
      "source": "stackoverflow.com",
      "createdAt": "2015-11-05T02:54:39.000Z",
      "viewCount": 1282643,
      "isAnswered": true,
      "answerCount": 29
    },
    {
      "url": "https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript",
      "tags": [
        "javascript",
        "typescript",
        "interface"
      ],
      "score": 723,
      "title": "Interface type check with Typescript",
      "author": "lhk",
      "source": "stackoverflow.com",
      "createdAt": "2013-01-20T14:37:38.000Z",
      "viewCount": 986629,
      "isAnswered": true,
      "answerCount": 30
    },
    {
      "url": "https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref",
      "tags": [
        "reactjs",
        "typescript",
        "generics"
      ],
      "score": 175,
      "title": "React with Typescript -- Generics while using React.forwardRef",
      "author": "Primm",
      "source": "stackoverflow.com",
      "createdAt": "2019-10-20T00:58:22.000Z",
      "viewCount": 81791,
      "isAnswered": true,
      "answerCount": 7
    },
    {
      "url": "https://stackoverflow.com/questions/59988667/typescript-react-fcprops-confusion",
      "tags": [
        "javascript",
        "reactjs",
        "typescript",
        "react-functional-component"
      ],
      "score": 257,
      "title": "TypeScript React.FC<Props> confusion",
      "author": "Kuldeep Bora",
      "source": "stackoverflow.com",
      "createdAt": "2020-01-30T14:52:54.000Z",
      "viewCount": 423457,
      "isAnswered": true,
      "answerCount": 5
    },
    {
      "url": "https://stackoverflow.com/questions/17655607/defining-typescript-generics-with-type-safety",
      "tags": [
        "generics",
        "typescript"
      ],
      "score": 45,
      "title": "Defining typescript generics with type safety",
      "author": "Tim",
      "source": "stackoverflow.com",
      "createdAt": "2013-07-15T13:37:06.000Z",
      "viewCount": 17891,
      "isAnswered": true,
      "answerCount": 2
    },
    {
      "url": "https://stackoverflow.com/questions/56843790/typescript-generic-type-with-equal-operator-means",
      "tags": [
        "typescript"
      ],
      "score": 85,
      "title": "typescript generic type with equal operator means?",
      "author": "Bill",
      "source": "stackoverflow.com",
      "createdAt": "2019-07-02T00:02:44.000Z",
      "viewCount": 18613,
      "isAnswered": true,
      "answerCount": 1
    }
  ],
  "hasMore": true,
  "nextPage": 2
}

Code examples

Search
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("search-tools:stackoverflow", "search", {
  "query": "python",
  "page": 1,
  "site": "stackoverflow"
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/search-tools:stackoverflow/search?query=python&page=1&site=stackoverflow" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

1 endpoint · plain text
GETSearch/v1/search-tools:stackoverflow/searchCari hasil pencarian berdasarkan keyword dengan pagination.

Parameters

querystringrequired
Search keyword
pagenumberoptional
Result page (default 1, max 50)
siteenumoptional
Stack Exchange site (default stackoverflow) Values: stackoverflow, superuser, serverfault, askubuntu.

Request

curl -X GET "https://api.zpi.web.id/v1/search-tools:stackoverflow/search?query=python&page=1&site=stackoverflow" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "page": 1,
  "count": 15,
  "items": [
    {
      "url": "https://stackoverflow.com/questions/32308370/what-is-the-syntax-for-typescript-arrow-functions-with-generics",
      "tags": [
        "typescript"
      ],
      "score": 825,
      "title": "What is the syntax for Typescript arrow functions with generics?",
      "author": "Andreas Frische",
      "source": "stackoverflow.com",
      "createdAt": "2015-08-31T09:46:38.000Z",
      "viewCount": 524972,
      "isAnswered": true,
      "answerCount": 18
    },
    {
      "url": "https://stackoverflow.com/questions/12710905/how-do-i-dynamically-assign-properties-to-an-object-in-typescript",
      "tags": [
        "typescript"
      ],
      "score": 900,
      "title": "How do I dynamically assign properties to an object in TypeScript?",
      "author": "Peter Olson",
      "source": "stackoverflow.com",
      "createdAt": "2012-10-03T14:42:54.000Z",
      "viewCount": 1084771,
      "isAnswered": true,
      "answerCount": 31
    },
    {
      "url": "https://stackoverflow.com/questions/33535879/how-to-run-typescript-files-from-command-line",
      "tags": [
        "node.js",
        "typescript"
      ],
      "score": 831,
      "title": "How to run TypeScript files from command line?",
      "author": "Gunchars",
      "source": "stackoverflow.com",
      "createdAt": "2015-11-05T02:54:39.000Z",
      "viewCount": 1282643,
      "isAnswered": true,
      "answerCount": 29
    },
    {
      "url": "https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript",
      "tags": [
        "javascript",
        "typescript",
        "interface"
      ],
      "score": 723,
      "title": "Interface type check with Typescript",
      "author": "lhk",
      "source": "stackoverflow.com",
      "createdAt": "2013-01-20T14:37:38.000Z",
      "viewCount": 986629,
      "isAnswered": true,
      "answerCount": 30
    },
    {
      "url": "https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref",
      "tags": [
        "reactjs",
        "typescript",
        "generics"
      ],
      "score": 175,
      "title": "React with Typescript -- Generics while using React.forwardRef",
      "author": "Primm",
      "source": "stackoverflow.com",
      "createdAt": "2019-10-20T00:58:22.000Z",
      "viewCount": 81791,
      "isAnswered": true,
      "answerCount": 7
    },
    {
      "url": "https://stackoverflow.com/questions/59988667/typescript-react-fcprops-confusion",
      "tags": [
        "javascript",
        "reactjs",
        "typescript",
        "react-functional-component"
      ],
      "score": 257,
      "title": "TypeScript React.FC<Props> confusion",
      "author": "Kuldeep Bora",
      "source": "stackoverflow.com",
      "createdAt": "2020-01-30T14:52:54.000Z",
      "viewCount": 423457,
      "isAnswered": true,
      "answerCount": 5
    },
    {
      "url": "https://stackoverflow.com/questions/17655607/defining-typescript-generics-with-type-safety",
      "tags": [
        "generics",
        "typescript"
      ],
      "score": 45,
      "title": "Defining typescript generics with type safety",
      "author": "Tim",
      "source": "stackoverflow.com",
      "createdAt": "2013-07-15T13:37:06.000Z",
      "viewCount": 17891,
      "isAnswered": true,
      "answerCount": 2
    },
    {
      "url": "https://stackoverflow.com/questions/56843790/typescript-generic-type-with-equal-operator-means",
      "tags": [
        "typescript"
      ],
      "score": 85,
      "title": "typescript generic type with equal operator means?",
      "author": "Bill",
      "source": "stackoverflow.com",
      "createdAt": "2019-07-02T00:02:44.000Z",
      "viewCount": 18613,
      "isAnswered": true,
      "answerCount": 1
    }
  ],
  "hasMore": true,
  "nextPage": 2
}

Related APIs

More in search-tools

Brave Search

search-tools/brave

Web search via Brave — datacenter-friendly, no captcha, real-time dengan title/URL/snippet.

5K calls·1h cache

Bing Search

search-tools/bing

Bing Search. pencarian web lengkap, snippet, link, multi-bahasa dan region

5.5K calls·1h cache

DuckDuckGo

search-tools/duckduckgo

DuckDuckGo web search — privacy-focused search engine, no tracking, hasil pencarian web umum dengan title, URL, snippet.

736 calls·15m cache

GitHub Search

search-tools/github-code

Searches public code and repositories and returns matching file or repo metadata.

58 calls·5m cache

Wikipedia

search-tools/wikipedia

Wikipedia search — pencarian artikel ensiklopedia multi-bahasa (en/id) dengan title, snippet, URL halaman.

51 calls·3m cache

Hacker News

search-tools/hackernews

Hacker News search via Algolia API — pencarian post & komentar tech/startup community dengan points, comments, author.

48 calls·3m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026