Search for businesses
curl --request GET \
--url https://api.partoo.co/v2/business/search \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/business/search"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/business/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/business/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/business/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/business/search")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/business/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"max_page": 10,
"count": 287,
"businesses": [
{
"id": "5409c35a97bbc544d8e26737",
"created": 1409925979.5,
"modified": 1561335111.681374,
"code": "CS-75019",
"status": "open",
"opening_date": "2025-01-01",
"org_id": 42,
"groups": [
1,
2,
3
],
"name": "Corner shop",
"address": "<string>",
"address_full": "12 bis rue du coquelicot",
"address2": "<string>",
"city": "Paris",
"zipcode": "75019",
"region": "Ile-de-France",
"country": "FR",
"default_lang": "fr",
"categories": [
"gcid:restaurant",
"gcid:fast_food_restaurant",
"gcid:hamburger_restaurant"
],
"time_slot_reference": [
"10:00-14:00"
],
"open_hours": {
"monday": [
"10:00-14:00"
],
"tuesday": [
"10:00-14:00"
],
"wednesday": [
"10:00-14:00"
],
"thursday": [
"10:00-14:00"
],
"friday": [
"10:00-14:00"
],
"saturday": [
"10:00-14:00"
],
"sunday": [
"10:00-14:00"
]
},
"specific_hours": {
"open": [
{
"starts_at": "2020-01-20",
"ends_at": "2020-01-20",
"open_hours": [
"10:00-14:00"
]
}
],
"close": [
{
"starts_at": "2020-01-20",
"ends_at": "2020-01-22"
}
]
},
"description_short": "lorem ipsum",
"description_long": "lorem ipsum dolor sit amet",
"website_url": "https://www.corner-shop.co/",
"facebook_url": "https://www.facebook.com/the-corner-shop",
"twitter_url": "https://www.twitter.com/the-corner-shop",
"google_location_id": "<string>",
"facebook_page_id": "<string>",
"national_identification_number": "<string>",
"logo_url": "<string>",
"contacts": [
{
"name": "Hubert Bonisseur de la Bath",
"email": "hubert@oss117.fr",
"phone_numbers": [
"+33302060628"
],
"fax": "+33302060629"
}
],
"photos": {
"LOGO": "<string>",
"primary": "<string>",
"secondary": [
"<string>"
]
},
"lat": -3.585993,
"long": 47.870341,
"subscriptions": {
"presence_management": {
"active": true
},
"review_management": {
"active": true
},
"review_booster": {
"active": false
},
"messages": {
"active": false
}
},
"features": [
"business_edition",
"diffusion",
"review_management",
"review_invite",
"messages"
],
"custom_fields": [
{
"id": 1,
"type": "BOOLEAN",
"name": "Parking",
"value": true,
"order": 1
},
{
"id": 2,
"type": "TEXT",
"name": "ManagerName",
"value": "toto",
"order": 2
},
{
"id": 3,
"type": "TEXT",
"name": "Supervisor",
"value": null,
"order": 2
},
{
"id": 4,
"type": "INTEGER",
"name": "Surface",
"value": 2,
"order": 3
},
{
"id": 5,
"type": "FLOAT",
"name": "DistanceFromSubway",
"value": 2.55,
"order": 4
},
{
"id": 6,
"type": "SINGLE_SELECT",
"name": "Level",
"value": "two",
"order": 4
},
{
"id": 7,
"type": "MULTIPLE_SELECT",
"name": "Services",
"value": [
"one",
"two"
],
"order": 5
},
{
"id": 8,
"type": "MULTIPLE_SELECT_IMAGE",
"name": "BannerImage",
"value": [
"image 1",
"image 2"
],
"order": 6
},
{
"id": 9,
"type": "IMAGES_UPLOADER",
"name": "TeamMembers",
"value": [
{
"url": "image1",
"texts": {
"name1": "value 1",
"name2": "value 2"
}
}
],
"order": 7
}
],
"completion_rate": 77,
"promos": [
{
"title": "<string>",
"description": "<string>",
"begin": 123,
"end": 123,
"term_of_use": "<string>",
"additional_informations": "<string>",
"images": [
"<string>"
],
"client_offer_url": "<string>",
"promo_url": "<string>"
}
]
}
]
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}Businesses
Search for businesses
This lets you search among the businesses you have READ access to. You can use several filters. The response is paginated (30 results per page).
GET
/
business
/
search
Search for businesses
curl --request GET \
--url https://api.partoo.co/v2/business/search \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/business/search"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/business/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/business/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/business/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/business/search")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/business/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"max_page": 10,
"count": 287,
"businesses": [
{
"id": "5409c35a97bbc544d8e26737",
"created": 1409925979.5,
"modified": 1561335111.681374,
"code": "CS-75019",
"status": "open",
"opening_date": "2025-01-01",
"org_id": 42,
"groups": [
1,
2,
3
],
"name": "Corner shop",
"address": "<string>",
"address_full": "12 bis rue du coquelicot",
"address2": "<string>",
"city": "Paris",
"zipcode": "75019",
"region": "Ile-de-France",
"country": "FR",
"default_lang": "fr",
"categories": [
"gcid:restaurant",
"gcid:fast_food_restaurant",
"gcid:hamburger_restaurant"
],
"time_slot_reference": [
"10:00-14:00"
],
"open_hours": {
"monday": [
"10:00-14:00"
],
"tuesday": [
"10:00-14:00"
],
"wednesday": [
"10:00-14:00"
],
"thursday": [
"10:00-14:00"
],
"friday": [
"10:00-14:00"
],
"saturday": [
"10:00-14:00"
],
"sunday": [
"10:00-14:00"
]
},
"specific_hours": {
"open": [
{
"starts_at": "2020-01-20",
"ends_at": "2020-01-20",
"open_hours": [
"10:00-14:00"
]
}
],
"close": [
{
"starts_at": "2020-01-20",
"ends_at": "2020-01-22"
}
]
},
"description_short": "lorem ipsum",
"description_long": "lorem ipsum dolor sit amet",
"website_url": "https://www.corner-shop.co/",
"facebook_url": "https://www.facebook.com/the-corner-shop",
"twitter_url": "https://www.twitter.com/the-corner-shop",
"google_location_id": "<string>",
"facebook_page_id": "<string>",
"national_identification_number": "<string>",
"logo_url": "<string>",
"contacts": [
{
"name": "Hubert Bonisseur de la Bath",
"email": "hubert@oss117.fr",
"phone_numbers": [
"+33302060628"
],
"fax": "+33302060629"
}
],
"photos": {
"LOGO": "<string>",
"primary": "<string>",
"secondary": [
"<string>"
]
},
"lat": -3.585993,
"long": 47.870341,
"subscriptions": {
"presence_management": {
"active": true
},
"review_management": {
"active": true
},
"review_booster": {
"active": false
},
"messages": {
"active": false
}
},
"features": [
"business_edition",
"diffusion",
"review_management",
"review_invite",
"messages"
],
"custom_fields": [
{
"id": 1,
"type": "BOOLEAN",
"name": "Parking",
"value": true,
"order": 1
},
{
"id": 2,
"type": "TEXT",
"name": "ManagerName",
"value": "toto",
"order": 2
},
{
"id": 3,
"type": "TEXT",
"name": "Supervisor",
"value": null,
"order": 2
},
{
"id": 4,
"type": "INTEGER",
"name": "Surface",
"value": 2,
"order": 3
},
{
"id": 5,
"type": "FLOAT",
"name": "DistanceFromSubway",
"value": 2.55,
"order": 4
},
{
"id": 6,
"type": "SINGLE_SELECT",
"name": "Level",
"value": "two",
"order": 4
},
{
"id": 7,
"type": "MULTIPLE_SELECT",
"name": "Services",
"value": [
"one",
"two"
],
"order": 5
},
{
"id": 8,
"type": "MULTIPLE_SELECT_IMAGE",
"name": "BannerImage",
"value": [
"image 1",
"image 2"
],
"order": 6
},
{
"id": 9,
"type": "IMAGES_UPLOADER",
"name": "TeamMembers",
"value": [
{
"url": "image1",
"texts": {
"name1": "value 1",
"name2": "value 2"
}
}
],
"order": 7
}
],
"completion_rate": 77,
"promos": [
{
"title": "<string>",
"description": "<string>",
"begin": 123,
"end": 123,
"term_of_use": "<string>",
"additional_informations": "<string>",
"images": [
"<string>"
],
"client_offer_url": "<string>",
"promo_url": "<string>"
}
]
}
]
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}Authorizations
Query Parameters
Filter by groups, using the access logic with the and/or depending on the groups sections
Defines the current status of the business.
Openindicates the business is up and running.Closedmeans that the business has definitely closed.Opening Soonindicates the business is open with an opening date set in the future.Temporarily closedmeans that the business is temporarily closed.
â ď¸ To get all businesses with the status open, regardless of whether the opening_date has passed yet or not, submit both the open and opening_soon options in the filter: status=open,opening_soon.
Available options:
open, closed, opening_soon, closed_temporarily Example:
"open"
Order result by given attribute.
Reverse order can as well be obtained by using a - (minus sign) before the attribute name, e.g. order_by=-name
Available options:
id, name, code, created, modified, country, city, zipcode, completion_rate, -id, -name, -code, -created, -modified, -country, -city, -zipcode, -completion_rate Was this page helpful?