- 操作 ID
actions.intent.GET_HOROSCOPE
- 说明
- 按出生日期或星座获取星座运势。
- 示例查询
- JSON-LD 示例
-
[ { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "Horoscope", "category": "love", "inLanguage": { "identifier": "fr" }, "relatedAstrologicalSign": "https://m.wikidata.org/wiki/Q164272", "relatedAstrologicalSystem": "https://m.wikidata.org/wiki/Q1976204", "temporalCoverage": "2019-01-08T00:00:00/2019-01-08T23:59:59" } ], "name": "astrologySign", "schemaType": [ "https://schema.googleapis.org/Horoscope" ] }, { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "Horoscope", "category": "love", "inLanguage": { "identifier": "fr" }, "relatedAstrologicalSign": "https://m.wikidata.org/wiki/Q164272", "relatedAstrologicalSystem": "https://m.wikidata.org/wiki/Q1976204", "temporalCoverage": "2019-01-08T00:00:00/2019-01-08T23:59:59" } ], "name": "horoscope", "schemaType": [ "https://schema.googleapis.org/Horoscope" ] } ]
获取星座运势
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.GET_HOROSCOPE\u003c/code\u003e action enables users to retrieve horoscopes based on their date of birth or astrological sign.\u003c/p\u003e\n"],["\u003cp\u003eUsers can trigger this action with simple queries like "Get horoscope" or "What's today's horoscope for taurus?".\u003c/p\u003e\n"],["\u003cp\u003eThe action utilizes JSON-LD to represent horoscopic data, including details like category, language, related astrological sign, and temporal coverage.\u003c/p\u003e\n"]]],[],null,["# Get horoscope\n\nAction ID\n: `actions.intent.GET_HOROSCOPE`\n\nDescription\n: Get a horoscope by date of birth or sign.\n\nExample queries\n:\n\n #### en-US\n\n - Get horoscope.\n - What's today's horoscope for taurus?\n\nJSON-LD sample\n:\n\n ```carbon\n [\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"Horoscope\",\n \"category\": \"love\",\n \"inLanguage\": {\n \"identifier\": \"fr\"\n },\n \"relatedAstrologicalSign\": \"https://m.wikidata.org/wiki/Q164272\",\n \"relatedAstrologicalSystem\": \"https://m.wikidata.org/wiki/Q1976204\",\n \"temporalCoverage\": \"2019-01-08T00:00:00/2019-01-08T23:59:59\"\n }\n ],\n \"name\": \"astrologySign\",\n \"schemaType\": [\n \"https://schema.googleapis.org/Horoscope\"\n ]\n },\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"Horoscope\",\n \"category\": \"love\",\n \"inLanguage\": {\n \"identifier\": \"fr\"\n },\n \"relatedAstrologicalSign\": \"https://m.wikidata.org/wiki/Q164272\",\n \"relatedAstrologicalSystem\": \"https://m.wikidata.org/wiki/Q1976204\",\n \"temporalCoverage\": \"2019-01-08T00:00:00/2019-01-08T23:59:59\"\n }\n ],\n \"name\": \"horoscope\",\n \"schemaType\": [\n \"https://schema.googleapis.org/Horoscope\"\n ]\n }\n ]\n ```"]]