Function Details

People Also Ask

Provided by

Logo

DataForSEO

Provides the 'People Also Ask' data for the specified keywords.

Outputs

This function outputs either in text or structured json format.

For text (default), the output will look like this:

Question #1: What is the best way to cook a steak?
Answer #1:
The best way to cook a steak is to sear it on a hot pan for 2 minutes on each side, then finish it in the oven at 400 degrees for 5 minutes.
Page Title: How to Cook the Perfect Steak
Source URL: https://www.example.com/how-to-cook-steak
---
...Other questions and answers

For the structured JSON output, the output will be:

[
  {
    "question": "What is the best way to cook a steak?",
    "answers": [
      {
        "snippet": "The best way to cook a steak is to sear it on a hot pan for 2 minutes on each side, then finish it in the oven at 400 degrees for 5 minutes.",
        "title": "How to Cook the Perfect Steak",
        "url": "https://www.example.com/how-to-cook-steak"
      }, ...Other answers...
    ]
  },
...Other questions...
]