Perplexity SERP API – Extract AI Search Results, Answers, Sources & Images | VebAPI - VebAPI
GET Version 1.0 8 Credits

Perplexity Search

Get structured Perplexity AI search results. Extract answers, sources, images, related queries etc

Ready to query this endpoint?

Sign up to get a free API key instantly with free trial credits. No credit card required.

Request Details

GET /serp/perplexity

Perplexity SERP API

Retrieve Perplexity search results including answer content, sources, related queries, images, and parsed structured data.

Endpoint

GET https://vebapi.com/api/serp/perplexity

Authentication

Pass your API key using the X-API-KEY header.

X-API-KEY: YOUR_API_KEY

Query Parameters

Parameter Type Required Description
prompt string Yes The search query to send to Perplexity.
geo string No Geographic location for the search result context. Example: india.
device_type string No Browser/device profile to use. Example: desktop_chrome.

Example Request

curl -X GET "https://vebapi.com/api/serp/perplexity?prompt=laptop&geo=india&device_type=desktop_chrome" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Example Response

{
  "engine": "Vebapi v8",
  "node": "master",
  "provider": "vebapi.com",
  "request": {
    "target": "perplexity",
    "prompt": "laptop",
    "geo": "india",
    "device_type": "desktop_chrome"
  },
  "results": {
    "results": [
      {
        "content": {
          "results": {
            "additional_results": {
              "images_results": [
                {
                  "image_from_url": "https://en.wikipedia.org/wiki/Laptop",
                  "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/Laptop_collage.jpg/1280px-Laptop_collage.jpg",
                  "title": "Laptop - Wikipedia"
                }
              ],
              "sources_results": [
                {
                  "title": "Latest Laptops at the Best Prices in India (2026) with Easy EMI Options",
                  "url": "https://www.bajajfinserv.in/bmall/laptops"
                }
              ]
            },
            "answer_results_md": "A laptop is a portable personal computer...",
            "displayed_tabs": ["Answer", "Links", "Images"],
            "model": "turbo",
            "parse_status_code": 12000,
            "prompt_query": "laptop",
            "related_queries": [
              "Best laptops under 50000 in India",
              "Best gaming laptops 2026"
            ],
            "top_images": [
              {
                "title": "Various laptops",
                "url": "https://d2u1z1lopyfwlx.cloudfront.net/thumbnails/example.jpg"
              }
            ],
            "url": "https://www.perplexity.ai/search/laptop-xxxx"
          },
          "errors": [],
          "status_code": 12000,
          "task_id": "7440463213335939073"
        },
        "headers": {
          "cache-control": "no-cache, no-store",
          "cf-cache-status": "HIT"
        },
        "cookies": [],
        "status_code": 200,
        "task_id": "7440463213335939073",
        "created_at": "2026-03-19 18:24:27",
        "updated_at": "2026-03-19 18:25:03"
      }
    ]
  }
}

Response Fields

Top-level Fields

  • engine — Internal engine version.
  • node — Processing node name.
  • provider — API provider domain.
  • request — Original request details.
  • results — Parsed response payload.

Parsed Result Fields

  • answer_results — Structured answer blocks returned by the parser.
  • answer_results_md — Markdown version of the answer.
  • sources_results — Source links used in the answer.
  • images_results — Related image results.
  • related_queries — Suggested related search terms.
  • top_images — Highlighted image thumbnails.
  • url — Perplexity result page URL.
  • parse_status_code — Internal parsing status code.

Metadata Fields

  • headers — Response headers from the upstream request.
  • cookies — Cookies returned by the upstream request.
  • status_code — HTTP status code.
  • task_id — Internal task identifier.
  • created_at / updated_at — Request timestamps.

Notes

  • The API returns both structured data and readable markdown content.
  • You can directly render answer_results_md in your frontend for quick display.
  • Use sources_results and images_results for custom UI sections like sources and galleries.
  • status_code: 200 indicates the upstream request succeeded.
Request Example (cURL)
Expected JSON Response

Flexible Developer Pricing

Select the plan that fits your execution volume. Standard plans come with full access to all endpoints, high concurrency limits, and active support.

πŸ”₯ Special Offer Pricing

Simple, Transparent Pricing

Choose a plan now, scale anytime. One API key for all endpoints.

Monthly billing Yearly billing 2 months free
Loading pricing…
Need more? Contact us for custom pricing.