Zum Inhalt springen
GET /v1/answer

Instant answer for a query

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/answer-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/answer-api/v1/answer" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/answer-api/v1/answer", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/answer-api/v1/answer");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/answer-api/v1/answer",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "type": "A",
        "image": "https://duckduckgo.com/i/4d83768732377cf3.png",
        "query": "python programming",
        "answer": null,
        "heading": "Python (programming language)",
        "abstract": "Python is a high-level, general-purpose programming language that emphasizes code readability, simplicity, and ease-of-writing with the use of significant indentation, \"plain English\" naming, an extensive standard library, and garbage collection. Python supports multiple programming paradigms but with an emphasis on object-oriented programming and dynamic typing. Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language. Python 3.0, released in 2008, was a major revision and not completely backward-compatible with earlier versions. Beginning with Python 3.5, capabilities and keywords for typing were added to the language, allowing optional static typing. As of 2026, the Python Software Foundation supports Python 3.10, 3.11, 3.12, 3.13, and 3.14, following the project's annual release cycle and five-year support policy. Python 3.15 is currently in the alpha development phase, and the stable release is expected to launch in October 2026.",
        "definition": null,
        "answer_type": null,
        "abstract_url": "https://en.wikipedia.org/wiki/Python_(programming_language)",
        "definition_url": null,
        "related_topics": [
            {
                "url": "https://duckduckgo.com/c/Python_(programming_language)",
                "text": "Python (programming language) Category"
            },
            {
                "url": "https://duckduckgo.com/Pydoc",
                "text": "Pydoc - Pydoc is the standard documentation module for the programming language Python."
            },
            {
                "url": "https://duckduckgo.com/NumPy",
                "text": "NumPy - NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays."
            },
            {
                "url": "https://duckduckgo.com/SciPy",
                "text": "SciPy - SciPy is a free and open-source Python library used for scientific computing and technical computing."
            },
            {
                "url": "https://duckduckgo.com/Project_Jupyter",
                "text": "Jupyter - Project Jupyter is a project to develop open-source software, open standards, and services for interactive computing across multiple programming languages."
            },
            {
                "url": "https://duckduckgo.com/PyTorch",
                "text": "PyTorch - PyTorch is an open-source deep learning library, originally developed by Meta Platforms and currently developed with support from the Linux Foundation."
            },
            {
                "url": "https://duckduckgo.com/Cython"
…