Search Yelp businesses
litescrape.yelp.business.searchReturns Yelp businesses in `organic_results`
- Price
- $0.00015/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffeePreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
Four live requests returned upstream 503 service_unavailable. The documented request contract and price are retained; no successful result is verified yet.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
l | string | Opcional | Yelp map-bounds token, up to 1,024 characters. | g:-97.80,30.20,-97.70,30.30 |
cflt | string | Opcional | Yelp category identifier, such as coffee. | coffee |
attrs | string | Opcional | Comma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters. | OutdoorSeating |
start | inteiro | Opcional | Result offset from 0 through 10,000. | |
sortby | string | Opcional | Result order. | |
timeout | número | Opcional | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
find_loc | string | Obrigatório | Search location, 1 to 500 characters. | Austin, TX |
find_desc | string | Opcional | Business name, category, or search terms, up to 500 characters. | coffee |
yelp_domain | string | Opcional | Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname. | www.yelp.com |
- Parâmetros de consulta
lstringOpcionalYelp map-bounds token, up to 1,024 characters.
Exemplo:
g:-97.80,30.20,-97.70,30.30cfltstringOpcionalYelp category identifier, such as coffee.
Exemplo:
coffeeattrsstringOpcionalComma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
Exemplo:
OutdoorSeatingstartinteiroOpcionalResult offset from 0 through 10,000.
sortbystringOpcionalResult order.
timeoutnúmeroOpcionalOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
find_locstringObrigatórioSearch location, 1 to 500 characters.
Exemplo:
Austin, TXfind_descstringOpcionalBusiness name, category, or search terms, up to 500 characters.
Exemplo:
coffeeyelp_domainstringOpcionalSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
Exemplo:
www.yelp.com
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00015/success, incluindo a taxa de serviço.