Using our Google search autocomplete API
Introduction
The Keyword Quill API provides a convenient way to retrieve popular keyword suggestions that people are searching for on Google. By integrating with this API, developers can conduct keyword research to identify trending topics and optimize their content for better visibility in search engines.
Autocomplete suggestions are returned in JSON format, allowing for easy integration into various applications and platforms.
Authentication
Access to the Keyword Quill API requires authentication using an API key. You can obtain an API key by signing up to Keyword Quill and finding it in your account dashboard.
Request Method
POST to https://queries.keywordquill.com/search
Request Headers
- X-API-KEY: Your unique API key obtained from Keyword Quill.
- Content-Type: application/json
Request Body
The request body should be a JSON object with the following fields:
- keyword (required): The search keyword for which autocomplete suggestions are to be retrieved. If left empty, the API will return an error.
- gl (optional): The country code (ISO 3166-1 alpha-2) to restrict the search to a specific country. Default is "US".
- hl (optional): The language code (ISO 639-1) to restrict the search to a specific language. Default is "en".
{ "keyword": "air fryers", "gl": "US", "hl": "en" }
Response
The response contains an array of autocomplete suggestions relevant to the provided keyword. Each suggestion is represented as a string in the data array.
Example response:
{ account: { credits: 15, api_key: API_KEY }, meta: { gl: "US", hl: "en", keyword: "air fryer" }, data: { keywords: ["best air fryers","air fryer recipes","air fryer chicken", ...] } }
In case of errors, the API returns appropriate HTTP status codes along with error messages in the response body.
For any inquiries or assistance regarding the Keyword Quill API, please contact help@keywordquill.com.
Post Summary
- API Documentation
- Discover how to harness Google's autocomplete suggestions for insightful keyword data with our API guide.
- Last Updated: 27 March, 2024