Perplexity Scraper

The scraper.perplexity actor returns Perplexity responses enriched with related prompts, citations, and media assets so you can benchmark how the model answers across markets.

Request Example

curl 'https://api.scrapeless.com/api/v2/scraper/request' \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: {you_api_key}' \
  --data '{
    "actor": "scraper.perplexity",
    "input": {
      "prompt": "Recommended attractions in New York",
      "country": "US",
      "web_search": true
    },
    "webhook": {
      "url": "http://www.youwebhook.com"
    }
  }'

Body Parameters

ParameterTypeRequiredDescription
promptstringYesPrompt to send to Perplexity.
countrystringYesCountry or region code.
web_searchbooleanNoEnable or disable web search.
should_fetch_share_linkbooleanNoGet sharing link.

Response Fields

ParameterTypeDescription
promptstringOriginal prompt.
result_textstringMarkdown answer from Perplexity.
related_promptarrayRelated follow-up questions.
web_resultsarraySearch data Perplexity referenced.
web_results.namestringTitle of the source.
web_results.urlstringSource URL.
web_results.snippetstringShort snippet or description.
media_itemsarrayMedia references returned by Perplexity.
media_items.mediumstringMedia type such as map or video.
media_items.urlstringLink to the media resource.
media_items.imagestringPreview image.
media_items.sourcestringOrigin (e.g., web, youtube).
media_items.thumbnailstringThumbnail URL.
media_items.locationsarrayLocation data for map media.
media_items.locations.latfloatLatitude.
media_items.locations.lngfloatLongitude.
media_items.locations.namestringLocation name.
media_items.locations.descriptionstringDescription of the location.
media_items.locations.image_urlstringImage link.
media_items.locations.num_reviewsintNumber of reviews.
media_items.locations.urlstringTarget URL.
media_items.locations.categoriesarrayAssociated categories.
media_items.locations.addressarrayAddress lines.
share_urlstringShare link.
shoppingarrayProduct recommendations included in the Perplexity response. Each item contains a source domain, image URL, title, and link.
shopping.domainstringDomain of the website hosting the recommendation, such as smzdm.com.
shopping.imagestringURL of the product image.
shopping.titlestringTitle of the recommended product or offer.
shopping.urlstringLink to the product or offer page on the source website.
shopping.pricestringPrice description.
shopping.price_labelstringPrice label.
shopping.merchantstringMerchant.
shopping.ratingstringRating.
shopping.sourcestringData extraction method. Defaults to answer_table.
shopping.sourcesarrayList of product citation sources.
shopping.sources.indexstringCitation number.
shopping.sources.titlestringCitation title.
shopping.sources.urlstringCitation URL.