# Glossary

This page lists the terms that the AlsoAsked API documentation uses, with the meaning of each term.

| Term | Meaning | Example |
| --- | --- | --- |
| account | Your AlsoAsked account. The API keys, credits, and plan belong to it. | The response contains the credits in your account. |
| AI overview | An answer that Google generates from more than one web page. | If `ai_overview` is `true`, the answer is an AI overview. |
| AlsoAsked API | The HTTP API that you use to perform searches and get results. | The AlsoAsked API accepts JSON request bodies. |
| API key | The secret value that identifies your account in each request. It starts with `aa-live-` or `aa-sandbox-`. | Create an API key on the API keys page. |
| asynchronous search | A search where the API sends the response immediately, before the search is complete. The `async` field is `true`. | An asynchronous search returns the search ID immediately. |
| body | The JSON content of a request or response. | The response body contains the search. |
| child result | A result inside another result. The result that contains it is its parent result. | The `results` field of a result contains its child results. |
| credit | The unit that AlsoAsked uses to charge for searches. A search costs credits for each term. The cost depends on the depth. | The cost of a search depends on the number of terms and the depth. |
| delete | To remove access to a search and its results with the `DELETE /v1.1/search/{searchId}` endpoint. | Delete the search when you don't need it. |
| depth | The number of levels of results that a search gets. The value is 1, 2, or 3. | Set the `depth` field to `3` to get 3 levels of results. |
| endpoint | One HTTP method and path of the AlsoAsked API, for example `POST /v1.1/search`. | Send the request to the `GET /v1.1/account` endpoint. |
| error type | The value of the `status` field in an error response body, for example `insufficient_credits`. | The API returns the status code `404 Not Found` with the error type `not_found`. |
| field | A name and value in a JSON object, for example `"depth": 2`. | Set the `depth` field to `3`. |
| get | To read data from the AlsoAsked API with a `GET` request. | Get the search with the `GET /v1.1/search/{searchId}` endpoint. |
| header | A name and value in the HTTP headers of a request or response. | Put your API key in the `X-Api-Key` header. |
| history limit | How old a search in your search history can be. Your plan sets the history limit. | For a Pro plan, the history limit is 1 year. |
| language code | The code of the language for a search, for example `en`. | The default language code is `en`. |
| live API | The AlsoAsked API that gets real results from Google and uses credits. Its host is `alsoaskedapi.com`. | You need a Pro plan to use the live API. |
| parameter | A value in the path or the query string of a request URL. | Use the `page` query parameter to get the next page. |
| pay-as-you-go credits | The credits that you buy in addition to your plan. They don't renew, and only a Pro plan can use them. The `api_credits` field has them. | Automatic top-up buys pay-as-you-go credits when your credits fall below 100. |
| perform | To start a new search with the `POST /v1.1/search` endpoint. | Perform a search with the terms that you want results for. |
| plan | The AlsoAsked subscription level of an account, for example Pro. | You need a Pro plan to use the live API. |
| plan credits | The credits that come with your plan. They renew on the date in the `credits_reset_at` field. The `web_credits` field has them. | AlsoAsked uses your plan credits before your pay-as-you-go credits. |
| query | One item in the `queries` field of a search. A query contains one term and the results for that term. | The `queries` field contains one query for each term in the search. |
| rate limit | The maximum number of requests that you can send in a time window. | If you send more requests than the rate limit allows, the API returns the status code `429`. |
| region code | The two-letter ISO 3166-1 code of the country for a search, for example `us`. | The default region code is `us`. |
| request | An HTTP message that you send to an endpoint. | Each request must include the `X-Api-Key` header. |
| response | The HTTP message that the AlsoAsked API returns for a request. | The response has the status code `200 OK`. |
| result | One question that Google shows for a term. A result has an answer and can have child results. | Each result has a `question` field and an `answer_excerpt` field. |
| return | To give a response to a request. The AlsoAsked API returns a response. | The API returns the status code `404` if the search doesn't exist. |
| sandbox API | The AlsoAsked API for testing. It returns test results and uses separate sandbox credits, not the credits of your plan. Its host is `sandbox.alsoaskedapi.com`. | Use the sandbox API while you develop your integration. |
| sandbox credits | The credits that the sandbox API uses. Each account has 1,000 sandbox credits, which reset 24 hours after the last reset. | A sandbox search costs sandbox credits, not the credits of your plan. |
| search | A set of 1 or more terms that you send to the AlsoAsked API in one request. Each search has an ID, a status, and a depth. | The search has 3 terms and a depth of 2. |
| search history | The searches that you can list, get, and delete with the AlsoAsked API. On the live API, the history limit of your plan sets how old a search in it can be. | A deleted search stays in your search history. |
| search object | The JSON object that describes one search in a response body or in the body of a webhook event, with fields such as `id`, `status`, and `queries`. | The response body of the `GET /v1.1/search/{searchId}` endpoint is the search object. |
| send | To transmit a request to the AlsoAsked API, or a webhook event to a webhook endpoint. | Send a request to the `GET /v1.1/account` endpoint. |
| signature | The value in the `X-AlsoAsked-Signature` header that shows that AlsoAsked sent the webhook event. | Verify the signature before you use the body. |
| status | The stage of a search or of one of its terms: `queueing`, `pending`, `running`, `fetching`, `error`, `no_results`, or `success`. | When the status of a query is `success`, the `results` field of the query contains the results. |
| status code | The three-digit number in an HTTP response that shows the result of the request, for example `429`. | The status code `429` tells you that you sent too many requests. |
| stored result | A result that AlsoAsked stored for an earlier search by any account, and uses again instead of getting new results from Google. On the live API, a term with stored results costs no credits. Set `fresh` to `true` to get new results. | Set `fresh` to `true` if you don't want stored results. |
| synchronous search | A search where the API sends the response only when the search is complete, or after 90 seconds. The `async` field is `false`. | A synchronous search returns the results in the response body. |
| team administrator | A team member that the team owner gave the administrator role. A team administrator sees the searches of the team members, but not the searches of the team owner. | A team administrator sees the searches of the team members. |
| team owner | The account that owns a team. The team members use the plan and the credits of the team owner. | The team owner sees all the searches of the team. |
| term | A question or phrase that AlsoAsked searches for. A search has 1 to 1,000 terms. | Put each term in the `terms` field. |
| test term | A term that makes the sandbox API behave in a known way, for example `[error]` or `[delay 2]`. | Add the test term `[error]` to test a term that fails. |
| top-level result | A result that isn't inside another result. Its `position` field has one number. | A search with a depth of 1 gets only top-level results. |
| verify | To make sure that a signature is correct. | Verify the signature of each webhook event. |
| webhook endpoint | A URL on your server that receives webhook events from AlsoAsked. | Add a webhook endpoint on the Webhooks page. |
| webhook event | A request that AlsoAsked sends to your webhook endpoints when the status of a search changes, for example `search_succeeded`. | AlsoAsked sends a `search_started` webhook event when the search starts. |
| webhook request | The HTTP `POST` request that carries one webhook event to a webhook endpoint. | Each webhook request has a signature in the `X-AlsoAsked-Signature` header. |
| webhook signing key | The secret value that AlsoAsked uses to make the signature of each webhook event. | Use your webhook signing key to verify the signature. |
