Skip to main content

AlsoAsked API overview

The AlsoAsked API gets the "People Also Ask" questions that Google shows for a term: the box of related questions on a Google results page. You send one or more terms, and the API returns the questions, their answers, and their child results. This page explains what the AlsoAsked API returns, what you can do with it, and what you need to start.

What the AlsoAsked API returns​

You send a search to the AlsoAsked API. A search is a set of 1 or more terms. A term is a question or phrase that AlsoAsked searches for, for example how to brew coffee.

For each term, the AlsoAsked API returns results. A result is one question that Google shows for the term. Each result has an answer. Some answers are AI overviews, which are answers that Google generates from more than one web page.

A result can have child results. A child result is a result inside another result. The depth field of a search sets how many levels of results the search gets. The value of the depth field is 1, 2, or 3.

What you can do with the AlsoAsked API​

The AlsoAsked API has 5 endpoints. With the AlsoAsked API, you can do these tasks:

TaskEndpoint
Perform a synchronous search or an asynchronous search.POST /v1.1/search
Get the status and the results of a search.GET /v1.1/search/{searchId}
List your previous searches.GET /v1.1/search
Delete a search.DELETE /v1.1/search/{searchId}
Get your account details and your credits.GET /v1.1/account

AlsoAsked can also send webhook events to your webhook endpoints when the status of a search changes. For details, see Webhooks.

Live API and sandbox API​

The AlsoAsked API has 2 environments: the live API and the sandbox API. Both environments have the same endpoints, and each environment has its own API keys.

Live APISandbox API
Base URLhttps://alsoaskedapi.com/v1.1https://sandbox.alsoaskedapi.com/v1.1
Plan that you needPro planAny plan
ResultsReal results from GoogleTest results
CreditsThe credits of your planSeparate sandbox credits
API key prefixaa-live-aa-sandbox-

Use the sandbox API while you develop and test your integration. Use the live API when you need real results from Google. A live API key works only on the live API, and a sandbox API key works only on the sandbox API. To compare plans, go to AlsoAsked pricing. For details, see Sandbox API and Authenticate requests.

API versions​

The AlsoAsked API has 2 versions: v1 and v1.1. Both versions have the same 5 endpoints. The AlsoAsked API documentation describes version v1.1. The version is part of the base URL, for example https://alsoaskedapi.com/v1.1.

Use version v1.1 for a new integration. Version v1 differs from version v1.1 in these ways:

  • The default value of the depth field is 3, not 2.
  • A query has no status field, and the queries field is null unless the status of the search is success.
  • A result has no position field, and child results also appear at the top level of the results field.
  • The GET /v1/search/{searchId} endpoint ignores the results_format query parameter.
  • A 422 Unprocessable Content validation error has no errors field.
  • The body of a webhook event has no event_id field.

Next steps​

Get help with the AlsoAsked API​

If you have a question about the AlsoAsked API, email AlsoAsked support at support@alsoasked.com.