stophy-dev Tripadvisor API
The Tripadvisor API from stophy-dev — 3 operation(s) for tripadvisor.
The Tripadvisor API from stophy-dev — 3 operation(s) for tripadvisor.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/stophy-dev:stophy-dev-tripadvisor-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Stophy Tripadvisor API
version: '1'
description: 'Every endpoint is a POST that takes its input as a JSON object body. Unknown fields are rejected with 400.
Responses leave out empty values: null, empty strings, empty objects and empty nested lists are not sent.
Text comes back whole. To get shorter responses, add ?maxTextLength= to the URL. Every text value longer than that is cut and ends with …. A screenshot is never cut, and a page whose text was cut has isTruncated set to true.
x-credits is what one call costs. Every call costs the same, whatever it returns, unless an operation''s description says it costs per 10 results, or per second of audio. Then x-credits is the lowest price and x-credits-max the most one call can cost. Where an operation takes limit, send it to return fewer results and pay for fewer.
When a response has a cursor, send it back unchanged with the same input to get the next page. When it has a page, send the next page number.
Endpoints whose security includes {} also work without an API key: 10 requests a minute and 50 a day per IP, and no paging.'
servers:
- url: https://api.stophy.dev
security:
- apiKey: []
tags:
- name: Tripadvisor
paths:
/v1/tripadvisor/search:
post:
operationId: tripadvisorSearch
summary: Scrape Tripadvisor search results
description: Costs 1 credit per call.
x-credits: 1
parameters:
- $ref: '#/components/parameters/MaxTextLength'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
minLength: 2
maxLength: 200
type:
default: all
type: string
enum:
- all
- hotels
- restaurants
- attractions
- geos
location:
type: string
minLength: 2
maxLength: 200
required:
- query
additionalProperties: false
example:
query: Ritz London
type: hotels
responses:
'200':
description: The data, and the credits this call used.
headers:
X-Request-ID:
$ref: '#/components/headers/RequestId'
x-credits-used:
$ref: '#/components/headers/CreditsUsed'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
x-cache:
$ref: '#/components/headers/Cache'
x-cache-age:
$ref: '#/components/headers/CacheAge'
content:
application/json:
schema:
type: object
required:
- success
- data
- creditsUsed
- requestId
properties:
success:
const: true
data:
type: object
additionalProperties: false
properties:
results:
type: array
items:
type: object
additionalProperties: false
properties:
placeId:
type: string
placeUrl:
type: string
format: uri
name:
type: string
type:
type: string
address:
type: string
parent:
type: string
latitude:
type: number
minimum: -90
maximum: 90
longitude:
type: number
minimum: -180
maximum: 180
imageUrl:
type: string
format: uri
required: []
required:
- results
creditsUsed:
type: integer
requestId:
type: string
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
tags:
- Tripadvisor
/v1/tripadvisor/place:
post:
operationId: tripadvisorPlace
summary: Scrape a Tripadvisor place page
description: Costs 1 credit per call.
x-credits: 1
parameters:
- $ref: '#/components/parameters/MaxTextLength'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
placeUrl:
type: string
description: Link to the Tripadvisor place, like https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London.html. Send this or placeId.
placeId:
type: string
description: Tripadvisor place id, like d187591. Send this or placeUrl.
sendOne:
- placeUrl
- placeId
additionalProperties: false
responses:
'200':
description: The data, and the credits this call used.
headers:
X-Request-ID:
$ref: '#/components/headers/RequestId'
x-credits-used:
$ref: '#/components/headers/CreditsUsed'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
x-cache:
$ref: '#/components/headers/Cache'
x-cache-age:
$ref: '#/components/headers/CacheAge'
content:
application/json:
schema:
type: object
required:
- success
- data
- creditsUsed
- requestId
properties:
success:
const: true
data:
type: object
additionalProperties: false
properties:
placeId:
type: string
placeUrl:
type: string
format: uri
name:
type: string
type:
type: string
subtypes:
type: array
items:
type: string
rating:
type: number
reviews:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
rankingText:
type: string
rankingPosition:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
rankingOf:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
rankingGeo:
type: string
priceLevel:
type: string
priceRangeText:
type: string
hotelClass:
type: number
description:
type: string
addressFull:
type: string
addressStreet:
type: string
addressCity:
type: string
addressRegion:
type: string
addressCountry:
type: string
addressPostalCode:
type: string
latitude:
type: number
minimum: -90
maximum: 90
longitude:
type: number
minimum: -180
maximum: 180
phone:
type: string
website:
type: string
format: uri
email:
type: string
neighborhoods:
type: array
items:
type: string
parents:
type: array
items:
type: object
additionalProperties: false
properties:
placeId:
type: string
name:
type: string
required: []
cuisines:
type: array
items:
type: string
hours:
type: array
items:
type: object
additionalProperties: false
properties:
days:
type: string
times:
type: array
items:
type: string
required: []
tags:
type: array
items:
type: string
imageUrl:
type: string
format: uri
timezone:
type: string
isClosed:
type: boolean
required:
- subtypes
- neighborhoods
- parents
- cuisines
- hours
- tags
- isClosed
creditsUsed:
type: integer
requestId:
type: string
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
tags:
- Tripadvisor
/v1/tripadvisor/reviews:
post:
operationId: tripadvisorReviews
summary: Scrape a Tripadvisor place's reviews
description: Costs 1 credit per call. Pages with page.
x-credits: 1
parameters:
- $ref: '#/components/parameters/MaxTextLength'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
placeUrl:
type: string
description: Link to the Tripadvisor place, like https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London.html. Send this or placeId.
placeId:
type: string
description: Tripadvisor place id, like d187591. Send this or placeUrl.
language:
default: en
type: string
pattern: ^(?:[Aa][Ll][Ll]|[A-Za-z]{2}(?:-[A-Za-z]{2})?)$
ratings:
default: []
maxItems: 5
type: array
items:
type: integer
minimum: 1
maximum: 5
travelerTypes:
default: []
description: 'Tripadvisor''s own Traveler type filter: families, couples, solo, business or friends. Only reviews from these travelers.'
maxItems: 5
type: array
items:
type: string
enum:
- families
- couples
- solo
- business
- friends
months:
default: []
description: 'Tripadvisor''s own Time of year filter: marMay, junAug, sepNov or decFeb. Only reviews written in these months of the year.'
maxItems: 4
type: array
items:
type: string
enum:
- marMay
- junAug
- sepNov
- decFeb
sort:
default: mostRecent
description: 'Tripadvisor''s own Sort by: mostRecent (Most recent) or detailed (Detailed reviews, ordered by recency and how much they say).'
type: string
enum:
- mostRecent
- detailed
page:
default: 1
description: Page number, starting at 1.
type: integer
minimum: 1
maximum: 500
sendOne:
- placeUrl
- placeId
additionalProperties: false
responses:
'200':
description: The data, and the credits this call used.
headers:
X-Request-ID:
$ref: '#/components/headers/RequestId'
x-credits-used:
$ref: '#/components/headers/CreditsUsed'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
x-cache:
$ref: '#/components/headers/Cache'
x-cache-age:
$ref: '#/components/headers/CacheAge'
content:
application/json:
schema:
type: object
required:
- success
- data
- creditsUsed
- requestId
properties:
success:
const: true
data:
type: object
additionalProperties: false
properties:
placeId:
type: string
placeName:
type: string
placeType:
type: string
placeUrl:
type: string
format: uri
total:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
results:
type: array
items:
type: object
additionalProperties: false
properties:
reviewId:
type: string
reviewUrl:
type: string
format: uri
rating:
type: number
title:
type: string
text:
type: string
language:
type: string
createdDate:
type: string
format: date
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
stayMonth:
type: string
pattern: ^\d{4}-(?:0[1-9]|1[0-2])$
tripType:
type: string
helpful:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
subRatings:
type: array
items:
type: object
additionalProperties: false
properties:
name:
type: string
rating:
type: number
required:
- rating
authorName:
type: string
authorUsername:
type: string
authorUrl:
type: string
format: uri
authorAddress:
type: string
authorContributions:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
ownerReplyText:
type: string
ownerReplyDate:
type: string
format: date
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
ownerReplyAuthor:
type: string
required:
- helpful
page:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
required:
- results
- page
creditsUsed:
type: integer
requestId:
type: string
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
tags:
- Tripadvisor
components:
headers:
RateLimitLimit:
description: Requests allowed in the current window.
schema:
type: integer
Cache:
description: hit if this result came from the cache, miss if it was fetched live.
schema:
type: string
RateLimitRemaining:
description: Requests left in the current window.
schema:
type: integer
CreditsUsed:
description: Credits this call used.
schema:
type: integer
CacheAge:
description: Seconds since the returned result was written to the cache.
schema:
type: integer
RateLimitReset:
description: Unix time in seconds when the current window resets.
schema:
type: integer
RequestId:
description: The request id. Quote it when you report a problem.
schema:
type: string
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
parameters:
MaxTextLength:
name: maxTextLength
in: query
required: false
description: Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
schema:
type: integer
minimum: 1
schemas:
Error:
type: object
required:
- success
- error
properties:
success:
const: false
error:
type: object
required:
- code
- message
- retryable
- requestId
properties:
code:
type: string
enum:
- cliSessionCompleted
- cliSessionExists
- cliSessionNotFound
- forbidden
- insufficientCredits
- internalError
- inviteClaimed
- inviteDisabled
- inviteExpired
- inviteUsedUp
- invalidCliSession
- invalidCliVerifier
- invalidRequest
- notFound
- rateLimited
- sourceChanged
- sourceRefused
- sourceTimeout
- sourceUnavailable
- unauthorized
- unsupportedMediaType
message:
type: string
retryable:
type: boolean
retryAfterSeconds:
type: integer
requestId:
type: string
requiredCredits:
type: number
availableCredits:
type: number
billingUrl:
type: string
const: https://stophy.dev/billing
responses:
Error:
description: The request failed. retryable says whether trying again can help.
headers:
X-Request-ID:
$ref: '#/components/headers/RequestId'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
apiKey:
type: http
scheme: bearer