serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
52 stars 5 forks source link

[Google Search API] Keys Not Shown for Rich Snippet Table in Search Inspector/Playground #882

Closed schaferyan closed 1 year ago

schaferyan commented 1 year ago

A customer reported invalid JSON in a rich_snippet_table in Google Search API results. It looks to me like there are some values missing either keys or array tags.

Screenshot 2023-05-22 at 9 16 26 AM

Playground | Search Archive | Intercom

hartator commented 1 year ago

JSON does contain the valid data:

      "rich_snippet_table": [
        {
          "year": "Revenue",
          "2022": "1,358",
          "2021": "1,815",
          "2020": "958",
          "2019": "277.53"
        },
        {
          "year": "Revenue Growth (YoY)",
          "2022": "‑25.18%",
          "2021": "89.46%",
          "2020": "245.18%",
          "2019": "‑"
        },
        {
          "year": "Cost of Revenue",
          "2022": "179",
          "2021": "158",
          "2020": "114",
          "2019": "45.46"
        }
      ],

But, it's not displayed on our serpapi.com pages.

I think it's an UI issue related to https://github.com/serpapi/public-roadmap/issues/883.