{"id":1097720,"date":"2025-01-08T15:14:35","date_gmt":"2025-01-08T07:14:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097720.html"},"modified":"2025-01-08T15:14:37","modified_gmt":"2025-01-08T07:14:37","slug":"python%e8%8e%b7%e5%8f%96%e8%82%a1%e7%a5%a8%e6%95%b0%e6%8d%ae%e5%a6%82%e4%bd%95%e4%bf%9d%e5%ad%98-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1097720.html","title":{"rendered":"python\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5982\u4f55\u4fdd\u5b58"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212335\/a177cbf8-1b62-4107-a46d-68897d6501c4.webp\" alt=\"python\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5982\u4f55\u4fdd\u5b58\" \/><\/p>\n<p><p> <strong>Python \u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u89c1\u7684\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528API\u83b7\u53d6\u6570\u636e\u3001\u4f7f\u7528\u722c\u866b\u6280\u672f\u6293\u53d6\u6570\u636e\u3001\u4f7f\u7528\u91d1\u878d\u6570\u636e\u5305\u7b49\u3002\u8981\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u91d1\u878d\u6570\u636eAPI\u3001\u4f7f\u7528\u722c\u866b\u6280\u672f\u6293\u53d6\u3001\u4f7f\u7528\u91d1\u878d\u6570\u636e\u5305\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u91d1\u878d\u6570\u636eAPI\u662f\u6700\u4e3a\u4fbf\u6377\u548c\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7API\u83b7\u53d6\u7684\u6570\u636e\u901a\u5e38\u66f4\u4e3a\u51c6\u786e\u548c\u5b9e\u65f6\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528API\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u91d1\u878d\u6570\u636eAPI<\/p>\n<\/p>\n<p><p>\u91d1\u878d\u6570\u636eAPI\u63d0\u4f9b\u4e86\u65b9\u4fbf\u3001\u5feb\u6377\u3001\u53ef\u9760\u7684\u6570\u636e\u83b7\u53d6\u65b9\u5f0f\uff0c\u8bb8\u591a\u91d1\u878d\u6570\u636e\u63d0\u4f9b\u5546\u90fd\u63d0\u4f9bAPI\u63a5\u53e3\uff0c\u5982Alpha Vantage\u3001Yahoo Finance\u3001IEX Cloud\u7b49\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Alpha Vantage API\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u8be6\u7ec6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>1\u3001\u83b7\u53d6API\u5bc6\u94a5<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728Alpha Vantage\u5b98\u7f51\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002\u6ce8\u518c\u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u4f1a\u83b7\u5f97\u4e00\u4e2a\u552f\u4e00\u7684API\u5bc6\u94a5\uff0c\u7528\u4e8e\u8bbf\u95eeAlpha Vantage\u7684API\u63a5\u53e3\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5b89\u88c5\u8bf7\u6c42\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528requests\u5e93\u6765\u53d1\u9001HTTP\u8bf7\u6c42\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5requests\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u7f16\u5199\u4ee3\u7801\u83b7\u53d6\u80a1\u7968\u6570\u636e<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u6bb5\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528Alpha Vantage API\u83b7\u53d6\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>import csv<\/p>\n<h2><strong>Alpha Vantage API\u5bc6\u94a5<\/strong><\/h2>\n<p>api_key = &#39;your_api_key&#39;<\/p>\n<h2><strong>\u80a1\u7968\u4ee3\u7801<\/strong><\/h2>\n<p>symbol = &#39;AAPL&#39;<\/p>\n<h2><strong>Alpha Vantage API\u8bf7\u6c42URL<\/strong><\/h2>\n<p>url = f&#39;https:\/\/www.alphavantage.co\/query?function=TIME_SERIES_D<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>LY&amp;symbol={symbol}&amp;apikey={api_key}&#39;<\/p>\n<h2><strong>\u53d1\u9001HTTP\u8bf7\u6c42\u83b7\u53d6\u6570\u636e<\/strong><\/h2>\n<p>response = requests.get(url)<\/p>\n<p>data = response.json()<\/p>\n<h2><strong>\u63d0\u53d6\u65f6\u95f4\u5e8f\u5217\u6570\u636e<\/strong><\/h2>\n<p>time_series = data[&#39;Time Series (Daily)&#39;]<\/p>\n<h2><strong>\u4fdd\u5b58\u6570\u636e\u5230CSV\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;stock_data.csv&#39;, &#39;w&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    fieldnames = [&#39;date&#39;, &#39;open&#39;, &#39;high&#39;, &#39;low&#39;, &#39;close&#39;, &#39;volume&#39;]<\/p>\n<p>    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<\/p>\n<p>    writer.writeheader()<\/p>\n<p>    for date, values in time_series.items():<\/p>\n<p>        writer.writerow({<\/p>\n<p>            &#39;date&#39;: date,<\/p>\n<p>            &#39;open&#39;: values[&#39;1. open&#39;],<\/p>\n<p>            &#39;high&#39;: values[&#39;2. high&#39;],<\/p>\n<p>            &#39;low&#39;: values[&#39;3. low&#39;],<\/p>\n<p>            &#39;close&#39;: values[&#39;4. close&#39;],<\/p>\n<p>            &#39;volume&#39;: values[&#39;5. volume&#39;]<\/p>\n<p>        })<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u83b7\u53d6\u4e86\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u5c06\u5176\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u722c\u866b\u6280\u672f\u6293\u53d6<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528API\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u722c\u866b\u6280\u672f\u4ece\u7f51\u7ad9\u4e0a\u6293\u53d6\u80a1\u7968\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528BeautifulSoup\u5e93\u4eceYahoo Finance\u7f51\u7ad9\u6293\u53d6\u80a1\u7968\u6570\u636e\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>1\u3001\u5b89\u88c5\u6240\u9700\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528requests\u5e93\u6765\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u4f7f\u7528BeautifulSoup\u5e93\u6765\u89e3\u6790HTML\u6587\u6863\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install requests beautifulsoup4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u7f16\u5199\u4ee3\u7801\u6293\u53d6\u80a1\u7968\u6570\u636e<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u6bb5\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528BeautifulSoup\u4eceYahoo Finance\u7f51\u7ad9\u6293\u53d6\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>import csv<\/p>\n<h2><strong>Yahoo Finance URL<\/strong><\/h2>\n<p>url = &#39;https:\/\/finance.yahoo.com\/quote\/AAPL\/history?p=AAPL&#39;<\/p>\n<h2><strong>\u53d1\u9001HTTP\u8bf7\u6c42\u83b7\u53d6\u9875\u9762\u5185\u5bb9<\/strong><\/h2>\n<p>response = requests.get(url)<\/p>\n<p>soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u63d0\u53d6\u80a1\u7968\u6570\u636e\u8868\u683c<\/strong><\/h2>\n<p>table = soup.find(&#39;table&#39;, {&#39;data-test&#39;: &#39;historical-prices&#39;})<\/p>\n<h2><strong>\u63d0\u53d6\u8868\u683c\u884c\u6570\u636e<\/strong><\/h2>\n<p>rows = table.find_all(&#39;tr&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u6570\u636e\u5230CSV\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;stock_data.csv&#39;, &#39;w&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    fieldnames = [&#39;date&#39;, &#39;open&#39;, &#39;high&#39;, &#39;low&#39;, &#39;close&#39;, &#39;volume&#39;]<\/p>\n<p>    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<\/p>\n<p>    writer.writeheader()<\/p>\n<p>    for row in rows[1:]:<\/p>\n<p>        cols = row.find_all(&#39;td&#39;)<\/p>\n<p>        if len(cols) &lt; 7:<\/p>\n<p>            continue<\/p>\n<p>        writer.writerow({<\/p>\n<p>            &#39;date&#39;: cols[0].text,<\/p>\n<p>            &#39;open&#39;: cols[1].text,<\/p>\n<p>            &#39;high&#39;: cols[2].text,<\/p>\n<p>            &#39;low&#39;: cols[3].text,<\/p>\n<p>            &#39;close&#39;: cols[4].text,<\/p>\n<p>            &#39;volume&#39;: cols[6].text<\/p>\n<p>        })<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4eceYahoo Finance\u7f51\u7ad9\u6293\u53d6\u4e86\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u5c06\u5176\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u91d1\u878d\u6570\u636e\u5305<\/p>\n<\/p>\n<p><p>Python\u4e2d\u8fd8\u6709\u4e00\u4e9b\u4e13\u95e8\u7528\u4e8e\u83b7\u53d6\u91d1\u878d\u6570\u636e\u7684\u5305\uff0c\u5982pandas_datareader\u3001yfinance\u7b49\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528yfinance\u5305\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>1\u3001\u5b89\u88c5yfinance\u5305<\/p>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5yfinance\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install yfinance<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u7f16\u5199\u4ee3\u7801\u83b7\u53d6\u80a1\u7968\u6570\u636e<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u6bb5\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528yfinance\u83b7\u53d6\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import yfinance as yf<\/p>\n<h2><strong>\u80a1\u7968\u4ee3\u7801<\/strong><\/h2>\n<p>symbol = &#39;AAPL&#39;<\/p>\n<h2><strong>\u83b7\u53d6\u80a1\u7968\u6570\u636e<\/strong><\/h2>\n<p>stock_data = yf.download(symbol, start=&#39;2020-01-01&#39;, end=&#39;2021-01-01&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u6570\u636e\u5230CSV\u6587\u4ef6<\/strong><\/h2>\n<p>stock_data.to_csv(&#39;stock_data.csv&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4f7f\u7528yfinance\u83b7\u53d6\u4e86\u82f9\u679c\u516c\u53f8\u7684\u80a1\u7968\u6570\u636e\u5e76\u5c06\u5176\u4fdd\u5b58\u5230CSV\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4f7f\u7528\u91d1\u878d\u6570\u636eAPI\u3001\u722c\u866b\u6280\u672f\u548c\u91d1\u878d\u6570\u636e\u5305\u90fd\u662f\u5e38\u89c1\u4e14\u6709\u6548\u7684\u65b9\u6cd5\u3002<strong>\u91d1\u878d\u6570\u636eAPI\u65b9\u4fbf\u5feb\u6377\u3001\u6570\u636e\u51c6\u786e\uff0c\u722c\u866b\u6280\u672f\u9002\u7528\u4e8e\u6ca1\u6709API\u63a5\u53e3\u7684\u7f51\u7ad9\uff0c\u91d1\u878d\u6570\u636e\u5305\u5219\u66f4\u52a0\u9ad8\u6548\u548c\u6613\u7528\u3002<\/strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u6765\u6e90\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u8ba9\u4f60\u80fd\u591f\u66f4\u597d\u5730\u83b7\u53d6\u548c\u4fdd\u5b58\u80a1\u7968\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u80a1\u7968\u6570\u636e\uff1f<\/strong><br \/>\u83b7\u53d6\u80a1\u7968\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u5404\u79cdAPI\u548c\u5e93\u6765\u5b9e\u73b0\uff0c\u5e38\u89c1\u7684\u6709yfinance\u3001Alpha Vantage\u548cPandas DataReader\u7b49\u3002\u4f8b\u5982\uff0c\u4f7f\u7528yfinance\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u51e0\u884c\u4ee3\u7801\u4e0b\u8f7d\u7279\u5b9a\u80a1\u7968\u7684\u5386\u53f2\u6570\u636e\uff0c\u5305\u62ec\u5f00\u76d8\u4ef7\u3001\u6536\u76d8\u4ef7\u3001\u6700\u9ad8\u4ef7\u3001\u6700\u4f4e\u4ef7\u548c\u6210\u4ea4\u91cf\u7b49\u4fe1\u606f\u3002\u53ea\u9700\u5b89\u88c5yfinance\u5e93\uff0c\u5e76\u4f7f\u7528<code>yf.download()<\/code>\u51fd\u6570\u5373\u53ef\u3002<\/p>\n<p><strong>\u83b7\u53d6\u7684\u80a1\u7968\u6570\u636e\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u54ea\u4e9b\u683c\u5f0f\uff1f<\/strong><br \/>\u83b7\u53d6\u7684\u80a1\u7968\u6570\u636e\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\uff0c\u6700\u5e38\u89c1\u7684\u662fCSV\u6587\u4ef6\u548cExcel\u6587\u4ef6\u3002\u901a\u8fc7\u4f7f\u7528Pandas\u5e93\u7684<code>to_csv()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u636e\u6846\u5b58\u50a8\u4e3aCSV\u6587\u4ef6\u3002\u6b64\u5916\uff0c<code>to_excel()<\/code>\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u5c06\u6570\u636e\u4fdd\u5b58\u4e3aExcel\u683c\u5f0f\uff0c\u65b9\u4fbf\u540e\u7eed\u5206\u6790\u548c\u5904\u7406\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fdd\u83b7\u53d6\u7684\u80a1\u7968\u6570\u636e\u662f\u6700\u65b0\u7684\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u83b7\u53d6\u7684\u80a1\u7968\u6570\u636e\u662f\u6700\u65b0\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b9e\u65f6\u6570\u636eAPI\u8fdb\u884c\u67e5\u8be2\u3002\u4f8b\u5982\uff0c\u4e00\u4e9bAPI\u63d0\u4f9b\u5b9e\u65f6\u6570\u636e\u83b7\u53d6\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9a\u671f\u66f4\u65b0\u6570\u636e\u3002\u7ed3\u5408Python\u7684\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\uff08\u5982schedule\u5e93\uff09\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\u81ea\u52a8\u83b7\u53d6\u6700\u65b0\u7684\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\uff0c\u786e\u4fdd\u6570\u636e\u7684\u65f6\u6548\u6027\u548c\u51c6\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u83b7\u53d6\u80a1\u7968\u6570\u636e\u5e76\u4fdd\u5b58\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u89c1\u7684\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528API\u83b7\u53d6\u6570\u636e\u3001\u4f7f\u7528\u722c\u866b\u6280\u672f\u6293\u53d6\u6570\u636e\u3001\u4f7f\u7528\u91d1\u878d [&hellip;]","protected":false},"author":3,"featured_media":1097727,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097720"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1097720"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097720\/revisions"}],"predecessor-version":[{"id":1097728,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097720\/revisions\/1097728"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097727"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}