"<?php\n// PHP 8.5 recommended (latest stable in Jan 2026)\n\n$api_url = \"https://apidevelopers.ir/api/v1/hafez-poem\";\n\n$params = [\n    'apiKey' => 'YOUR_API_KEY',\n\n];\n\n$options = [\n    'http' => [\n        'header'  => \"Content-type: application/x-www-form-urlencoded\",\n        'method'  => 'POST',\n        'content' => http_build_query($params),\n        'ignore_errors' => true,\n    ],\n];\n\n$context  = stream_context_create($options);\n$response = file_get_contents($api_url, false, $context);\n\nif ($response === false) {\n    echo \"Error occurred\\n\";\n    // you can read $http_response_header for more info\n} else {\n    echo $response;\n}\n?>"
#ParameterTypeDefaultDescriptionStatus
1apiKeystring-Your API key for authenticationRequired