API Hop

Documentación

Documentación de API Hop

Referencia de Yelp

Busca negocios en Yelp y consulta sus datos, menús y reseñas.

Límite de concurrencia

IA y Data comparten cada uno un grupo de solicitudes simultáneas por cuenta: 5 IA / 2 Data por defecto, según la suscripción. Los límites específicos de endpoints también están sujetos al límite de categoría. Alcanzar cualquiera de los límites devuelve HTTP 429. Las tareas asíncronas ocupan una plaza hasta finalizar su ejecución.

GET /v1/yelp/search
Límite predeterminado: 2
GET /v1/yelp/place
Límite predeterminado: 2
GET /v1/yelp/reviews
Límite predeterminado: 2

Busca negocios en Yelp y consulta sus datos, menús y reseñas.

Autenticación y facturación

El precio predeterminado es $0.0003 (300 credits) por solicitud correcta. Usa tu clave API API Hop. El acceso depende de las pasarelas activas y los permisos. Consulta el catálogo y tu cuenta para el precio por solicitud correcta; prevalece el precio de la cuenta. Los resultados vacíos correctos se cobran. Los fallos liberan la reserva. Límite: 60 segundos, sin reintentos ni paginación automática. Un fallo de liquidación no repite la solicitud al proveedor.

http
Authorization: Bearer YOUR_API_KEY

Yelp: Buscar lugares

GET https://api.apihop.ai/v1/yelp/search

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: optional; UTF-8 bytes: 8192coffee shop
languagestringIdioma; language: optional-
locationstringLugar de búsqueda; location: optionalAustin, TX
latitudenumberLatitud; latitude: optional; min: -90; max: 90-90
longitudenumberLongitud; longitude: optional; min: -180; max: 180-180
pageintegerPágina desde 1; (page - 1) × limit < 200; Ejemplos: limit=20 → page=1..10; page: optional; min: 1; max: 2001
limitintegerLímite de resultados; limit: optional; min: 1; max: 1001
sort_bystringOrden; sort_by: optional; recommendedrecommended
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
startintegerPosición de resultados; start: optional; min: 0; max: 1990
lstringZona o barrio; l: optional; UTF-8 bytes: 750-
cfltstringAlias de categorías; cflt: optional; UTF-8 bytes: 2000-
attrsstringFiltros de atributos; attrs: optional; UTF-8 bytes: 2000-
yelp_domainstringDominio regional de Yelp; yelp_domain: optional; yelp.at, yelp.be, yelp.ca, yelp.ch, yelp.cl, yelp.co.jp, yelp.co.nz, yelp.co.uk, yelp.com, yelp.com.ar, yelp.com.au, yelp.com.br, yelp.com.hk, yelp.com.mx, yelp.com.ph, yelp.com.sg, yelp.com.tr, yelp.com.tw, yelp.cz, yelp.de, yelp.dk, yelp.es, yelp.fi, yelp.fr, yelp.ie, yelp.it, yelp.my, yelp.nl, yelp.no, yelp.pl, yelp.ptyelp.at

Validación

Solo parámetros de consulta, sin cuerpo. Se rechazan valores desconocidos, repetidos, vacíos o inválidos. Solo respuestas JSON; sin paginación ni reintentos automáticos. Reglas: AND = ambos, OR = o, XOR = exactamente uno, NOT = excluido, => = requiere.

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • latitude => longitude; longitude => latitude
  • location XOR (latitude AND longitude): required; query optional
  • NOT (page AND start); (page - 1) * limit < 200; omitted page = 1, limit = 20; start <= 199
  • l => NOT latitude AND NOT longitude; l = g:west,south,east,north OR p:region:city::neighborhood; neighborhood => location
  • g: -180 <= west < east <= 180; -90 <= south < north <= 90

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/yelp/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee shop" \
  --data-urlencode "location=Austin, TX"

Yelp: Consultar datos del lugar

GET https://api.apihop.ai/v1/yelp/place

Parámetros

CampoTipoLímitesEjemplo
idstringID del lugar; id: REQUIREDhalcyon-austin-2
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
yelp_domainstringDominio regional de Yelp; yelp_domain: optional; yelp.at, yelp.be, yelp.ca, yelp.ch, yelp.cl, yelp.co.jp, yelp.co.nz, yelp.co.uk, yelp.com, yelp.com.ar, yelp.com.au, yelp.com.br, yelp.com.hk, yelp.com.mx, yelp.com.ph, yelp.com.sg, yelp.com.tr, yelp.com.tw, yelp.cz, yelp.de, yelp.dk, yelp.es, yelp.fi, yelp.fr, yelp.ie, yelp.it, yelp.my, yelp.nl, yelp.no, yelp.pl, yelp.ptyelp.at
full_menubooleanMenú completo; full_menu: optionaltrue
menu_namestringNombre del menú; menu_name: optional; UTF-8 bytes: 128; ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$-
business_alertbooleanEstado del negocio; business_alert: optionaltrue

Validación

Solo parámetros de consulta, sin cuerpo. Se rechazan valores desconocidos, repetidos, vacíos o inválidos. Solo respuestas JSON; sin paginación ni reintentos automáticos. Reglas: AND = ambos, OR = o, XOR = exactamente uno, NOT = excluido, => = requiere.

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[A-Za-z0-9][A-Za-z0-9_-]{0,255}$/; menu_name => full_menu = true

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/yelp/place" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "id=halcyon-austin-2"

Yelp: Consultar reseñas

GET https://api.apihop.ai/v1/yelp/reviews

Parámetros

CampoTipoLímitesEjemplo
idstringID del lugar; id: REQUIREDhalcyon-austin-2
languagestringIdioma; language: optional-
pageintegerPágina desde 1; page: optional; min: 1; max: 10001
limitintegerLímite de resultados; limit: optional; min: 1; max: 1001
sort_bystringOrden; sort_by: optional; recommended, newest, oldest, highest_rating, lowest_rating, elitesrecommended
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
querystringTexto de búsqueda; query: optional-
yelp_domainstringDominio regional de Yelp; yelp_domain: optional; yelp.at, yelp.be, yelp.ca, yelp.ch, yelp.cl, yelp.co.jp, yelp.co.nz, yelp.co.uk, yelp.com, yelp.com.ar, yelp.com.au, yelp.com.br, yelp.com.hk, yelp.com.mx, yelp.com.ph, yelp.com.sg, yelp.com.tr, yelp.com.tw, yelp.cz, yelp.de, yelp.dk, yelp.es, yelp.fi, yelp.fr, yelp.ie, yelp.it, yelp.my, yelp.nl, yelp.no, yelp.pl, yelp.ptyelp.at
ratingstringEstrellas separadas por comas; rating: optional; UTF-8 bytes: 9; ^[1-5](,[1-5]){0,4}$-
startintegerPosición de resultados; start: optional; min: 0; max: 1000000
not_recommendedbooleanReseñas no recomendadas; not_recommended: optionaltrue
not_recommended_startintegerPosición de reseñas no recomendadas; not_recommended_start: optional; min: 0; max: 1000000

Validación

Solo parámetros de consulta, sin cuerpo. Se rechazan valores desconocidos, repetidos, vacíos o inválidos. Solo respuestas JSON; sin paginación ni reintentos automáticos. Reglas: AND = ambos, OR = o, XOR = exactamente uno, NOT = excluido, => = requiere.

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[A-Za-z0-9][A-Za-z0-9_-]{0,255}$/; page => NOT start AND NOT not_recommended_start
  • not_recommended_start => not_recommended = true; not_recommended = true => NOT start; rating: distinct 1..5, comma-separated

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/yelp/reviews" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "id=halcyon-austin-2"

Respuestas y errores

Se conservan JSON nativo y precisión. Ejemplo de resultado vacío correcto. HTTP 400: entrada; 401: autenticación; 402: saldo; 403: acceso; 405: método; 429: límite; 5xx: servicio. Guarda X-Request-Id.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}