从 Google Docs 文档(不是 Sheets 电子表格)读取 JSON 的 URL 格式

lin*_*iii 1 google-docs

我知道从 Google Sheets 电子表格读取 JSON 的 URL 格式,如下所示:

https://spreadsheets.google.com/feeds/cells/[sheet_id]/[sheet_number]/public/basic?alt=json
Run Code Online (Sandbox Code Playgroud)

是否有类似的 URL 格式可以从 Google Docs 文档读取 JSON 数据?

lin*_*iii 5

我找到了答案,以防其他人遇到这个问题:

https://docs.google.com/feeds/download/documents/export/Export?id=[document_id]&exportFormat=[format]
Run Code Online (Sandbox Code Playgroud)

哪里[format]可能是txthtml、 或pdf

干杯!

  • 这可行,但请记住 Doclist API 已被关闭。所以它将来可能会停止工作。 (2认同)