Fast Search API
Overview
Here is the list of the different parameters you can use with ScrapingBee's Fast Search API.
You can also discover this API using our Postman collection covering every ScrapingBee's features.
type]
(default)Getting Started
Our Fast Search API delivers search results in under a second, with a simple, lightweight request.
To make a request, you only need:
- your API key, available here
- a search query (learn more about search query)
Request Example
Once you have those two settings, simply do this.
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&country_code=us&language=en&search=pizza+in+new+york"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'country_code': 'us',
'language': 'en',
'search': 'pizza in new york',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'country_code': us,
'language': en,
'search': pizza in new york,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=us&language=en&search=pizza+in+new+york")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=us&language=en&search=pizza+in+new+york')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=us&language=en&search=pizza+in+new+york');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=us&language=en&search=pizza+in+new+york", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}Response Example
The API responds with a JSON payload containing structured results, that looks like this:
{
"organic": [
{
"description": "Pizza in Penrith · 1. Bella Italia Center Parcs Whinfell. 4.2. (917 reviews) · 2. Shap Pizzas. 4.8. (36 reviews) · 3. Woodstone Pizza & ...",
"extensions": [],
"link": "https://www.tripadvisor.co.uk/Restaurants-g186328-c31-Penrith_Eden_District_Lake_District_Cumbria_England.html",
"rank": 1,
"title": "THE 10 BEST Pizza Places in Penrith (Updated 2026) - Tripadvisor"
},
{
"description": "We've got all your favourite Domino's pizzas, including Pepperoni Passion®, Vegi Supreme, Mighty Meaty®, Texas BBQ®, plus our Original Cheese & Tomato.",
"extensions": [],
"link": "https://www.dominos.co.uk/pizza-near-me/cumbria/25-cornmarket",
"rank": 2,
"title": "Domino's Penrith - Cornmarket | Order Pizza Delivery or Takeaway"
},
{
"description": "Pizza is an Italian dish typically consisting of a flat base of leavened wheat-based dough topped with tomato, cheese, and other ingredients, baked at a high ...",
"extensions": [],
"link": "https://en.wikipedia.org/wiki/Pizza",
"rank": 3,
"title": "Pizza - Wikipedia"
},
{
"description": "Start your order. Deliver, Collect, Dine-in, Delivery. postcode For example, SG5 3RD. View Deals. Use My Current Location.",
"extensions": [],
"link": "https://www.pizzahut.co.uk/",
"rank": 4,
"title": "Pizza Hut | Pizza Delivery"
},
{
"description": "It's fired up for 12 hours every day and the menu offers a range of pizzas, flame grill burgers, steaks and kebabs as well as pasta dishes and chicken parma ...",
"extensions": [],
"link": "https://woodstonerestaurant.co.uk/",
"rank": 5,
"title": "Woodstone Pizza & Flame Grill Restaurant | Keswick and Penrith"
},
{
"description": "Contact us on 01768 891791 to make a booking. Download Pre-order form. 01768 891791; Gianni's Ristorante Pizzeria, 11 Market Square, Penrith , CA11 7BY. © ...",
"extensions": [],
"link": "https://www.giannis-penrith.co.uk/",
"rank": 6,
"title": "Gianni's Ristorante Pizzeria - Cooking & serving authentic ... - Penrith"
},
{
"description": "Pizza Piatto, Penrith, UK. 495 likes · 150 were here. Fast food restaurant.",
"extensions": [],
"link": "https://www.facebook.com/pages/Pizza-Piatto/130936850287533",
"rank": 7,
"title": "Pizza Piatto - Penrith, Cumbria - Menu, prices, restaurant reviews"
},
{
"description": "21 Lowther Street, Carlisle, CA3 8ES. 01228 599638 · Find out more. Kendal Wainwrights Yard. Closed - Opens at 11:30. 6 Wainwright's Yard, Kendal, LA9 4AP.",
"extensions": [],
"link": "https://pizzaexpress.com/restaurants/cumbria",
"rank": 8,
"title": "Italian Restaurants in Cumbria | PizzaExpress"
},
{
"description": "Rating 4.6 (30) · ££ - £££ Pizza Piatto, Penrith: See 30 unbiased reviews of Pizza Piatto, rated 4.6 of 5 on Tripadvisor and ranked #91 of 156 restaurants in Penrith.",
"extensions": [],
"link": "https://www.tripadvisor.co.uk/Restaurant_Review-g186328-d5254468-Reviews-Pizza_Piatto-Penrith_Eden_District_Lake_District_Cumbria_England.html",
"rank": 9,
"title": "PIZZA PIATTO, Penrith - 2026 Reviews & Information - Tripadvisor"
},
{
"description": "Enjoy Pizza delivery and takeaway with Uber Eats near you in Penrith. Browse Penrith restaurants serving Pizza nearby, place your order and enjoy!",
"extensions": [],
"link": "https://www.ubereats.com/gb/category/penrith-eng/pizza%3Fsrsltid%3DAfmBOopLTtlv9icLDnG1OOZ0YAwDQkvH4FFWofaGhAm9GyhKKtYu55GY",
"rank": 10,
"title": "THE 10 BEST Pizza Takeaway in Penrith 2026 - Uber Eats"
}
],
"status": "done",
"top_stories": [],
"url": "https://www.google.com/search?hl=en-US&start=0&q=Pizza"
}
Each successful API call costs 10 API credits.
API key
All requests are authenticated using your private API key.
To get access to your API key, just create an account here and confirm your email.
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&search=pizza"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'search': 'pizza',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'search': pizza,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=pizza")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=pizza')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=pizza');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=pizza", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}Search
The search parameter is the text you want to search for. It is required.
And make sure to URL-encode the search term, especially if it contains special characters such as: :, & or +.
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&search=YOUR-SEARCH-STRING"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'search': 'YOUR-SEARCH-STRING',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'search': YOUR-SEARCH-STRING,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=YOUR-SEARCH-STRING")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=YOUR-SEARCH-STRING')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=YOUR-SEARCH-STRING');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&search=YOUR-SEARCH-STRING", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}Page number
The page number you want to extract results from. Default is 1, just use page=2 to jump to the second page.
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&page=2&search=pizza+in+new+york"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'page': '2',
'search': 'pizza in new york',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'page': 2,
'search': pizza in new york,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&page=2&search=pizza+in+new+york")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&page=2&search=pizza+in+new+york')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&page=2&search=pizza+in+new+york');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&page=2&search=pizza+in+new+york", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}Geolocation
country_code localizes results to the chosen country. Use ISO 3166‑1 alpha‑2 codes such as us, fr, or de.
You can find the full list of supported country codes here.
| country_code | Country Name |
|---|---|
| br | Brazil |
| in | India |
| mx | Mexico |
| ... | ... |
| ua | Ukraine |
| us | United States |
| gb | United Kingdom |
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&country_code=fr&search=pizza+%C3%A0+paris"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'country_code': 'fr',
'search': 'pizza à paris',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'country_code': fr,
'search': pizza à paris,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=fr&search=pizza+%C3%A0+paris")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=fr&search=pizza+%C3%A0+paris')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=fr&search=pizza+%C3%A0+paris');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&country_code=fr&search=pizza+%C3%A0+paris", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}Language
language sets the language of the search results (for example, en or fr).
The list of supported languages is available here.
curl "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&language=fr&search=pizza"# Install the Python Requests library:
# pip install requests
import requests
def send_request():
response = requests.get(
url='https://app.scrapingbee.com/api/v1/fast_search',
params={
'api_key': 'YOUR-API-KEY',
'language': 'fr',
'search': 'pizza',
},
)
print('Response HTTP Status Code: ', response.status_code)
print('Response HTTP Response Body: ', response.content)
send_request()
// Install the Node Axios package
// npm install axios
const axios = require('axios');
axios.get('https://app.scrapingbee.com/api/v1/fast_search', {
params: {
'api_key': 'YOUR-API-KEY',
'url': 'YOUR-URL',
'language': fr,
'search': pizza,
}
}).then(function (response) {
// handle success
console.log(response);
})
import java.io.IOException;
import org.apache.http.client.fluent.*;
public class SendRequest
{
public static void main(String[] args) {
sendRequest();
}
private static void sendRequest() {
// Classic (GET )
try {
// Create request
Content content = Request.Get("https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&language=fr&search=pizza")
// Fetch request and return content
.execute().returnContent();
// Print content
System.out.println(content);
}
catch (IOException e) { System.out.println(e); }
}
}
require 'net/http'
require 'net/https'
# Classic (GET )
def send_request
uri = URI('https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&language=fr&search=pizza')
# Create client
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
# Create Request
req = Net::HTTP::Get.new(uri)
# Fetch Request
res = http.request(req)
puts "Response HTTP Status Code: #{ res.code }"
puts "Response HTTP Response Body: #{ res.body }"
rescue StandardError => e
puts "HTTP Request failed (#{ e.message })"
end
send_request()<?php
// get cURL resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, 'https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&language=fr&search=pizza');
// set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// send the request and save response to $response
$response = curl_exec($ch);
// stop if fails
if (!$response) {
die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
}
echo 'HTTP Status Code: ' . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
echo 'Response Body: ' . $response . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
>package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func sendClassic() {
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://app.scrapingbee.com/api/v1/fast_search?api_key=YOUR-API-KEY&url=YOUR-URL&language=fr&search=pizza", nil)
parseFormErr := req.ParseForm()
if parseFormErr != nil {
fmt.Println(parseFormErr)
}
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := ioutil.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
func main() {
sendClassic()
}