
Stack Overflow
No credit card required
You can access the Stack Overflow programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "0.0",
5 "x-build-id": "vR3mrmRe7B8BZc8ub"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/jupri~stackexchange/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-jupri-stackexchange",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/jupri~stackexchange/runs": {
50 "post": {
51 "operationId": "runs-sync-jupri-stackexchange",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/jupri~stackexchange/run-sync": {
93 "post": {
94 "operationId": "run-sync-jupri-stackexchange",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "properties": {
134 "site": {
135 "title": "Site",
136 "enum": [
137 "stackoverflow",
138 "serverfault",
139 "superuser",
140 "meta",
141 "webapps",
142 "webapps.meta",
143 "gaming",
144 "gaming.meta",
145 "webmasters",
146 "webmasters.meta",
147 "cooking",
148 "cooking.meta",
149 "gamedev",
150 "gamedev.meta",
151 "photo",
152 "photo.meta",
153 "stats",
154 "stats.meta",
155 "math",
156 "math.meta",
157 "diy",
158 "diy.meta",
159 "meta.superuser",
160 "meta.serverfault",
161 "gis",
162 "gis.meta",
163 "tex",
164 "tex.meta",
165 "askubuntu",
166 "meta.askubuntu",
167 "money",
168 "money.meta",
169 "english",
170 "english.meta",
171 "stackapps",
172 "ux",
173 "ux.meta",
174 "unix",
175 "unix.meta",
176 "wordpress",
177 "wordpress.meta",
178 "cstheory",
179 "cstheory.meta",
180 "apple",
181 "apple.meta",
182 "rpg",
183 "rpg.meta",
184 "bicycles",
185 "bicycles.meta",
186 "softwareengineering",
187 "softwareengineering.meta",
188 "electronics",
189 "electronics.meta",
190 "android",
191 "android.meta",
192 "boardgames",
193 "boardgames.meta",
194 "physics",
195 "physics.meta",
196 "homebrew",
197 "homebrew.meta",
198 "security",
199 "security.meta",
200 "writing",
201 "writing.meta",
202 "video",
203 "video.meta",
204 "graphicdesign",
205 "graphicdesign.meta",
206 "dba",
207 "dba.meta",
208 "scifi",
209 "scifi.meta",
210 "codereview",
211 "codereview.meta",
212 "codegolf",
213 "codegolf.meta",
214 "quant",
215 "quant.meta",
216 "pm",
217 "pm.meta",
218 "skeptics",
219 "skeptics.meta",
220 "fitness",
221 "fitness.meta",
222 "drupal",
223 "drupal.meta",
224 "mechanics",
225 "mechanics.meta",
226 "parenting",
227 "parenting.meta",
228 "sharepoint",
229 "sharepoint.meta",
230 "music",
231 "music.meta",
232 "sqa",
233 "sqa.meta",
234 "judaism",
235 "judaism.meta",
236 "german",
237 "german.meta",
238 "japanese",
239 "japanese.meta",
240 "philosophy",
241 "philosophy.meta",
242 "gardening",
243 "gardening.meta",
244 "travel",
245 "travel.meta",
246 "crypto",
247 "crypto.meta",
248 "dsp",
249 "dsp.meta",
250 "french",
251 "french.meta",
252 "christianity",
253 "christianity.meta",
254 "bitcoin",
255 "bitcoin.meta",
256 "linguistics",
257 "linguistics.meta",
258 "hermeneutics",
259 "hermeneutics.meta",
260 "history",
261 "history.meta",
262 "bricks",
263 "bricks.meta",
264 "spanish",
265 "spanish.meta",
266 "scicomp",
267 "scicomp.meta",
268 "movies",
269 "movies.meta",
270 "chinese",
271 "chinese.meta",
272 "biology",
273 "biology.meta",
274 "poker",
275 "poker.meta",
276 "mathematica",
277 "mathematica.meta",
278 "psychology",
279 "psychology.meta",
280 "outdoors",
281 "outdoors.meta",
282 "martialarts",
283 "martialarts.meta",
284 "sports",
285 "sports.meta",
286 "academia",
287 "academia.meta",
288 "cs",
289 "cs.meta",
290 "workplace",
291 "workplace.meta",
292 "chemistry",
293 "chemistry.meta",
294 "chess",
295 "chess.meta",
296 "raspberrypi",
297 "raspberrypi.meta",
298 "russian",
299 "russian.meta",
300 "islam",
301 "islam.meta",
302 "salesforce",
303 "salesforce.meta",
304 "patents",
305 "patents.meta",
306 "genealogy",
307 "genealogy.meta",
308 "robotics",
309 "robotics.meta",
310 "expressionengine",
311 "expressionengine.meta",
312 "politics",
313 "politics.meta",
314 "anime",
315 "anime.meta",
316 "magento",
317 "magento.meta",
318 "ell",
319 "ell.meta",
320 "sustainability",
321 "sustainability.meta",
322 "tridion",
323 "tridion.meta",
324 "reverseengineering",
325 "reverseengineering.meta",
326 "networkengineering",
327 "networkengineering.meta",
328 "opendata",
329 "opendata.meta",
330 "freelancing",
331 "freelancing.meta",
332 "blender",
333 "blender.meta",
334 "mathoverflow.net",
335 "meta.mathoverflow.net",
336 "space",
337 "space.meta",
338 "sound",
339 "sound.meta",
340 "astronomy",
341 "astronomy.meta",
342 "tor",
343 "tor.meta",
344 "pets",
345 "pets.meta",
346 "ham",
347 "ham.meta",
348 "italian",
349 "italian.meta",
350 "pt.stackoverflow",
351 "pt.meta.stackoverflow",
352 "aviation",
353 "aviation.meta",
354 "ebooks",
355 "ebooks.meta",
356 "alcohol",
357 "alcohol.meta",
358 "softwarerecs",
359 "softwarerecs.meta",
360 "arduino",
361 "arduino.meta",
362 "cs50",
363 "cs50.meta",
364 "expatriates",
365 "expatriates.meta",
366 "matheducators",
367 "matheducators.meta",
368 "meta.stackoverflow",
369 "earthscience",
370 "earthscience.meta",
371 "joomla",
372 "joomla.meta",
373 "datascience",
374 "datascience.meta",
375 "puzzling",
376 "puzzling.meta",
377 "craftcms",
378 "craftcms.meta",
379 "buddhism",
380 "buddhism.meta",
381 "hinduism",
382 "hinduism.meta",
383 "communitybuilding",
384 "communitybuilding.meta",
385 "worldbuilding",
386 "worldbuilding.meta",
387 "ja.stackoverflow",
388 "ja.meta.stackoverflow",
389 "emacs",
390 "emacs.meta",
391 "hsm",
392 "hsm.meta",
393 "economics",
394 "economics.meta",
395 "lifehacks",
396 "lifehacks.meta",
397 "engineering",
398 "engineering.meta",
399 "coffee",
400 "coffee.meta",
401 "vi",
402 "vi.meta",
403 "musicfans",
404 "musicfans.meta",
405 "woodworking",
406 "woodworking.meta",
407 "civicrm",
408 "civicrm.meta",
409 "medicalsciences",
410 "medicalsciences.meta",
411 "ru.stackoverflow",
412 "ru.meta.stackoverflow",
413 "rus",
414 "rus.meta",
415 "mythology",
416 "mythology.meta",
417 "law",
418 "law.meta",
419 "opensource",
420 "opensource.meta",
421 "elementaryos",
422 "elementaryos.meta",
423 "portuguese",
424 "portuguese.meta",
425 "computergraphics",
426 "computergraphics.meta",
427 "hardwarerecs",
428 "hardwarerecs.meta",
429 "es.stackoverflow",
430 "es.meta.stackoverflow",
431 "3dprinting",
432 "3dprinting.meta",
433 "ethereum",
434 "ethereum.meta",
435 "latin",
436 "latin.meta",
437 "languagelearning",
438 "languagelearning.meta",
439 "retrocomputing",
440 "retrocomputing.meta",
441 "crafts",
442 "crafts.meta",
443 "korean",
444 "korean.meta",
445 "monero",
446 "monero.meta",
447 "ai",
448 "ai.meta",
449 "esperanto",
450 "esperanto.meta",
451 "sitecore",
452 "sitecore.meta",
453 "iot",
454 "iot.meta",
455 "literature",
456 "literature.meta",
457 "vegetarianism",
458 "vegetarianism.meta",
459 "ukrainian",
460 "ukrainian.meta",
461 "devops",
462 "devops.meta",
463 "bioinformatics",
464 "bioinformatics.meta",
465 "cseducators",
466 "cseducators.meta",
467 "interpersonal",
468 "interpersonal.meta",
469 "iota",
470 "iota.meta",
471 "stellar",
472 "stellar.meta",
473 "conlang",
474 "conlang.meta",
475 "quantumcomputing",
476 "quantumcomputing.meta",
477 "eosio",
478 "eosio.meta",
479 "tezos",
480 "tezos.meta",
481 "or",
482 "or.meta",
483 "drones",
484 "drones.meta",
485 "mattermodeling",
486 "mattermodeling.meta",
487 "cardano",
488 "cardano.meta",
489 "proofassistants",
490 "proofassistants.meta",
491 "substrate",
492 "substrate.meta",
493 "bioacoustics",
494 "bioacoustics.meta",
495 "solana",
496 "solana.meta",
497 "langdev",
498 "langdev.meta",
499 "genai",
500 "genai.meta"
501 ],
502 "type": "string",
503 "description": ""
504 },
505 "sort": {
506 "title": "Sort",
507 "enum": [
508 "activity",
509 "creation",
510 "votes",
511 "relevance"
512 ],
513 "type": "string",
514 "description": ""
515 },
516 "order": {
517 "title": "Order",
518 "enum": [
519 "asc",
520 "desc"
521 ],
522 "type": "string",
523 "description": ""
524 },
525 "limit": {
526 "title": "Limit",
527 "type": "integer",
528 "description": "",
529 "default": 1
530 },
531 "title": {
532 "title": "Title",
533 "type": "string",
534 "description": "Text which must appear in returned questions titles"
535 },
536 "question": {
537 "title": "Question",
538 "type": "string",
539 "description": "A free form text parameter, will match all question properties based on an undocumented algorithm"
540 },
541 "body": {
542 "title": "Body",
543 "type": "string",
544 "description": "Text which must appear in returned questions bodies"
545 },
546 "tags": {
547 "title": "Tags",
548 "type": "string",
549 "description": "A semicolon delimited list of tags, of which at least one will be present on all returned questions"
550 },
551 "fromdate": {
552 "title": "From Date",
553 "type": "string",
554 "description": ""
555 },
556 "todate": {
557 "title": "To Date",
558 "type": "string",
559 "description": ""
560 },
561 "answers": {
562 "title": "Answers",
563 "type": "integer",
564 "description": "The minimum number of answers returned questions must have"
565 },
566 "views": {
567 "title": "Views",
568 "type": "integer",
569 "description": "The minimum number of views returned questions must have"
570 }
571 }
572 },
573 "runsResponseSchema": {
574 "type": "object",
575 "properties": {
576 "data": {
577 "type": "object",
578 "properties": {
579 "id": {
580 "type": "string"
581 },
582 "actId": {
583 "type": "string"
584 },
585 "userId": {
586 "type": "string"
587 },
588 "startedAt": {
589 "type": "string",
590 "format": "date-time",
591 "example": "2025-01-08T00:00:00.000Z"
592 },
593 "finishedAt": {
594 "type": "string",
595 "format": "date-time",
596 "example": "2025-01-08T00:00:00.000Z"
597 },
598 "status": {
599 "type": "string",
600 "example": "READY"
601 },
602 "meta": {
603 "type": "object",
604 "properties": {
605 "origin": {
606 "type": "string",
607 "example": "API"
608 },
609 "userAgent": {
610 "type": "string"
611 }
612 }
613 },
614 "stats": {
615 "type": "object",
616 "properties": {
617 "inputBodyLen": {
618 "type": "integer",
619 "example": 2000
620 },
621 "rebootCount": {
622 "type": "integer",
623 "example": 0
624 },
625 "restartCount": {
626 "type": "integer",
627 "example": 0
628 },
629 "resurrectCount": {
630 "type": "integer",
631 "example": 0
632 },
633 "computeUnits": {
634 "type": "integer",
635 "example": 0
636 }
637 }
638 },
639 "options": {
640 "type": "object",
641 "properties": {
642 "build": {
643 "type": "string",
644 "example": "latest"
645 },
646 "timeoutSecs": {
647 "type": "integer",
648 "example": 300
649 },
650 "memoryMbytes": {
651 "type": "integer",
652 "example": 1024
653 },
654 "diskMbytes": {
655 "type": "integer",
656 "example": 2048
657 }
658 }
659 },
660 "buildId": {
661 "type": "string"
662 },
663 "defaultKeyValueStoreId": {
664 "type": "string"
665 },
666 "defaultDatasetId": {
667 "type": "string"
668 },
669 "defaultRequestQueueId": {
670 "type": "string"
671 },
672 "buildNumber": {
673 "type": "string",
674 "example": "1.0.0"
675 },
676 "containerUrl": {
677 "type": "string"
678 },
679 "usage": {
680 "type": "object",
681 "properties": {
682 "ACTOR_COMPUTE_UNITS": {
683 "type": "integer",
684 "example": 0
685 },
686 "DATASET_READS": {
687 "type": "integer",
688 "example": 0
689 },
690 "DATASET_WRITES": {
691 "type": "integer",
692 "example": 0
693 },
694 "KEY_VALUE_STORE_READS": {
695 "type": "integer",
696 "example": 0
697 },
698 "KEY_VALUE_STORE_WRITES": {
699 "type": "integer",
700 "example": 1
701 },
702 "KEY_VALUE_STORE_LISTS": {
703 "type": "integer",
704 "example": 0
705 },
706 "REQUEST_QUEUE_READS": {
707 "type": "integer",
708 "example": 0
709 },
710 "REQUEST_QUEUE_WRITES": {
711 "type": "integer",
712 "example": 0
713 },
714 "DATA_TRANSFER_INTERNAL_GBYTES": {
715 "type": "integer",
716 "example": 0
717 },
718 "DATA_TRANSFER_EXTERNAL_GBYTES": {
719 "type": "integer",
720 "example": 0
721 },
722 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
723 "type": "integer",
724 "example": 0
725 },
726 "PROXY_SERPS": {
727 "type": "integer",
728 "example": 0
729 }
730 }
731 },
732 "usageTotalUsd": {
733 "type": "number",
734 "example": 0.00005
735 },
736 "usageUsd": {
737 "type": "object",
738 "properties": {
739 "ACTOR_COMPUTE_UNITS": {
740 "type": "integer",
741 "example": 0
742 },
743 "DATASET_READS": {
744 "type": "integer",
745 "example": 0
746 },
747 "DATASET_WRITES": {
748 "type": "integer",
749 "example": 0
750 },
751 "KEY_VALUE_STORE_READS": {
752 "type": "integer",
753 "example": 0
754 },
755 "KEY_VALUE_STORE_WRITES": {
756 "type": "number",
757 "example": 0.00005
758 },
759 "KEY_VALUE_STORE_LISTS": {
760 "type": "integer",
761 "example": 0
762 },
763 "REQUEST_QUEUE_READS": {
764 "type": "integer",
765 "example": 0
766 },
767 "REQUEST_QUEUE_WRITES": {
768 "type": "integer",
769 "example": 0
770 },
771 "DATA_TRANSFER_INTERNAL_GBYTES": {
772 "type": "integer",
773 "example": 0
774 },
775 "DATA_TRANSFER_EXTERNAL_GBYTES": {
776 "type": "integer",
777 "example": 0
778 },
779 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
780 "type": "integer",
781 "example": 0
782 },
783 "PROXY_SERPS": {
784 "type": "integer",
785 "example": 0
786 }
787 }
788 }
789 }
790 }
791 }
792 }
793 }
794 }
795}
Stack Overflow OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Stack Overflow from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: