Add SearchApi API

pull/4/head
SebastjanPrachovskij 2023-08-14 14:21:09 +03:00
parent 0171442975
commit 117a1e1bc9
No known key found for this signature in database
GPG Key ID: 3F8EEA97BA64FB8C
2 changed files with 60 additions and 0 deletions

View File

@ -140,6 +140,7 @@ Detailed information about API
* [ScrapingDog](/scrapingdog/)
* [Screenshot API](/screenshot-api/)
* [screenshotlayer](/screenshotlayer/)
* [SearchApi](/searchapi/)
* [SeatGeek](/seatgeek/)
* [serpstack](/serpstack/)
* [Smartsheet](/smartsheet/)

59
searchapi/README.md Normal file
View File

@ -0,0 +1,59 @@
# [SearchApi](https://www.searchapi.io/docs/google)
## Description
Real-time Google SERP API
## __Example Request__
* Curl
```
curl "https://www.searchapi.io/api/v1/search?api_key={{token}}&engine=google&q=AI"
```
* Raw
```
GET /api/v1/search?api_key={{token}}&engine=google&q=chatgpt HTTP/1.1
Host: www.searchapi.io
```
## __Response__
* Success
```
{
"search_metadata": {
"id": "search_zx6dAL2p4KqYsxVxk7wnGOmN",
"status": "Success",
"created_at": "2023-08-14T11:09:36Z",
"request_time_taken": 1.03,
"parsing_time_taken": 0.15,
"total_time_taken": 1.19,
"request_url": "https://www.google.com/search?q=AI&oq=AI&gl=us&hl=en&ie=UTF-8",
"html_url": "https://www.searchapi.io/api/v1/searches/search_zx6dAL2p4KqYsxVxk7wnGOmN.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_zx6dAL2p4KqYsxVxk7wnGOmN"
},
"search_parameters": {
"engine": "google",
"q": "AI",
"device": "desktop",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
...
}
```
* Error
```
{
"error": "Invalid API key."
}
```
## __Regex__
```
[a-f0-9]{32}
```
## __Example API key__
```
57c3219371de68c9128b6788488a0ef3
```