People Also Ask API
Quickstart
curl --location 'https://paa.api.kwrds.ai/people-also-ask?keyword=facet&search_country=US&search_language=en&X-API-KEY=YOUR_API_KEY_GOES_HERE'
To increase your API limits, please choose your plan right from our pricing page.
Introduction
The People Also Ask (PAA) API allows you to retrieve questions that people frequently search for, related to a specific keyword. This is a powerful tool for content creation, SEO, and understanding the questions your target audience is asking.
Watch kwrds.ai in action
Watch our video to learn how kwrds.ai can help you with people also ask tool and content optimization.
Read our full guide on People Also Ask to learn more about how to use them to boost your SEO strategy.
Overview
The PAA API provides a list of questions related to a keyword, along with metadata that helps you understand how these questions are being asked. This data can be used to create content that directly addresses the needs of your audience, helping you improve search rankings and engagement.
Endpoint
GET /people-also-ask
This endpoint retrieves the PAA questions related to the specified keyword.
Example Request
Here’s an example of how to use the PAA API with curl
:
curl --location 'https://paa.api.kwrds.ai/people-also-ask?keyword=keyword=nike%20shoes&search_country=US&search_language=en&X-API-KEY=YOUR_API_KEY_GOES_HERE'
Query Parameters
keyword
: (Required) The keyword for which you want to retrieve PAA questions. This parameter should be URL-encoded if it contains spaces or special characters.search_country
: (Required) The country code (e.g.,US
) for which the search should be localized. The first part is the ISO 639-1 language code, and the second part is the ISO 3166-1 alpha-2 country code.search_language
: (Required) The language code (e.g.,en
) for which the search should be localized. This is the ISO 639-1 language code.X-API-KEY
: (Required) Your API key for authentication.
Example Response
The API returns a JSON object with an array of questions and additional metadata. Here’s an example response:
{"results": [{"question": "What shoes are trending in 2024?","google_answer": "These are the summer 2024 shoe trends Glamour editors are obsessed withâplus how to style them in the real world.Slim sneakers. Christian Vierig/Getty Images. ... Thong heels. Raimonda Kulikauskiene/Getty Images. ... Mesh footwear. ... Mary Jane flats. ... Tall, structured boots. ... Boat shoes. ... Fisherman sandals. ... Shoes as jewelry.","google_answer_source_url": "https://www.glamour.com/story/shoe-trends-2024","google_answer_source_title": "9 Summer 2024 Shoe Trends to Know and Shop Ahead of Fall | Glamour"},{"question": "What shoes are trending right now in 2024?","google_answer": "Suede boots. Edward Berthelot/Getty Images. ... Slim sneakers. Christian Vierig/Getty Images. ... Stacked loafers. Edward Berthelot/Getty Images. ... Moto boots. Raimonda Kulikauskiene/Getty Images. ... Shoes as jewelry. Christian Vierig/Getty Images. ... Academic Flats. Edward Berthelot/Getty Images. ... Boat shoes. ... Kitten heels.","google_answer_source_url": "https://www.glamour.com/story/shoe-trends-2024","google_answer_source_title": "9 Fall 2024 Shoe Trends You Need to Know (and Shop) Now | Glamour"},{"question": "Are flip flops out of style in 2024?","google_answer": "Sandals are naturally a key component of any spring/summer fashion show, and for 2024 the collections were awash with an abundance of feel-good styles, such as jelly shoes, rope sandals, flip flops and crochet fishermans.","google_answer_source_url": "https://www.vogue.co.uk/article/sandal-trends-2024","google_answer_source_title": "8 Sandal Trends That Will Be Everywhere In Summer 2024"},{"question": "What toe shape is in style in 2024?","google_answer": ""The slingback pointy toe is currently the top of the most-wanted list for 2024, and the traditional 'ballet'-style ballet flat is close behind," the stylist told BI.","google_answer_source_url": "https://www.businessinsider.com/shoe-trends-whats-popular-and-going-out-in-2024","google_answer_source_title": "Stylists reveal 8 shoe trends that are in and 6 that are out this year"},{"question": "Are Converse out of style in 2024?","google_answer": "That isn't to say that Converse sneakers aren't 'in' for 2024 (in fact, you'll notice a significant portion of the style set sub in a pair of Chuck Taylor All-Stars on the regular â see above for photographic proof) but they're also never really 'out' â making them the perfect antidote to FYP-led footwear that will ...","google_answer_source_url": "https://www.elle.com.au/shopping/converse-sneakers/","google_answer_source_title": "How Fashion Girls Are Styling Converse Sneakers In 2024 | ELLE"},{"question": "Are flip flops in style in 2024?","google_answer": "And clearly, the catwalks have sparked a full-blown obsession with the newly elevated summer shoe style: on eBay, searches for 'designer flip flops' have increased by more than 335% since the start of the year, and it's the same story over on Lyst, where Margiela, Dries Van Noten and Brunello Cucinelli's flip flop ...","google_answer_source_url": "https://www.elle.com/uk/fashion/what-to-wear/g61748065/stylish-flip-flops/","google_answer_source_title": "The Most Stylish Flip Flops To Shop For Summer 2024 - ELLE"},]}
Response Structure
results
: An array of questions related to the keyword.- Each item in the array contains:
question
: The question that users commonly ask.google_answer
(optional): The answer provided by Google, if available.google_answer_source_url
(optional): The source URL for the Google answer, if available.google_answer_source_title
(optional): The title of the source for the Google answer, if available.
- Each item in the array contains:
paa_search_count
(optional): The usage count for the PAA search. If not returned, it means the you were not charged for the request. This usually happens when the PAA is not found in the search results or the results were cached and returned, at no extra charge.
Use Cases
The PAA API can be used in various ways:
- Content Creation: Use the PAA questions to generate content ideas that directly address what users are searching for.
- SEO Strategy: Integrate the questions and their answers into your SEO strategy to target long-tail keywords and improve search rankings.
- User Engagement: Provide users with answers to the most commonly asked questions, improving user experience and engagement on your site.
Best Practices
- Localization: Always specify the
search_country
andsearch_language
parameters to get the most relevant results for your target audience. - API Key Management: Keep your API key secure and do not expose it in public repositories. Please read our API Key Setup guide for best practices.
Error Handling
The Keyword Research API returns standard HTTP status codes:
- 200 OK: The request was successful, and the data is returned in the response.
- 400 Bad Request: The request was invalid or malformed. Check your request body and parameters.
- 401 Unauthorized: The API key is missing or invalid. Ensure that your
X-API-KEY
header is correct. - 5XX Internal Server Error: An error occurred on the server. Retry the request or contact support if the issue persists.
Next Steps
Now that you're familiar with the PAA API, you can start integrating it into your projects. For further details, explore the full kwrds.ai documentation or reach out to hello@kwrds.ai for support.
Explanation:
- Response Structure Update: The
Example Response
andResponse Structure
sections have been updated to reflect the provided JSON response. - Use Cases: The use cases and best practices are explained to help users understand how to effectively use the PAA API.
- Error Handling: A section dedicated to error handling ensures users know what to do if something goes wrong.
For further questions or support, please contact hello@kwrds.ai.