Discover/Riyasewana API
live

Riyasewana APIriyasewana.com

Access Sri Lanka vehicle listings from Riyasewana via API. Browse by category, search with filters, and retrieve full specs, images, and seller info.

Endpoint health
verified 4d ago
get_listings
search_vehicles
get_listing_detail
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Riyasewana API?

The Riyasewana API exposes 3 endpoints covering Sri Lanka's largest vehicle marketplace, returning listings across cars, SUVs, motorcycles, lorries, and more. The get_listings endpoint delivers paginated results by category with title, price, year, city, mileage, and posting date, while search_vehicles lets you filter by make, model, fuel type, transmission, price range, and year range. A third endpoint retrieves full listing details including high-resolution images and vehicle options.

Try it
Page number for pagination.
Vehicle category slug.
api.parse.bot/scraper/a20b5c9d-d197-43eb-a622-4b464d151c87/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a20b5c9d-d197-43eb-a622-4b464d151c87/get_listings?page=1&category=cars' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace riyasewana-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.riyasewana_vehicle_marketplace_api import Riyasewana, Category, FuelType, Transmission

client = Riyasewana()

# Browse SUV listings by category
for listing in client.listingsummaries.by_category(category=Category.SUVS, limit=5):
    print(listing.title, listing.price, listing.city)

# Search for automatic Toyota vehicles
for result in client.listingsummaries.search(make="Toyota", transmission=Transmission.AUTOMATIC, limit=3):
    print(result.title, result.year, result.mileage)
    # Drill into full details
    detail = result.details()
    print(detail.make, detail.model, detail.fuel_type, detail.engine_cc)

# Fetch a specific listing directly by URL
car = client.listings.get(url="https://riyasewana.com/buy/toyota-prius-sale-colombo-12345678")
print(car.title, car.price, car.gear, car.posted_location)
All endpoints · 3 totalmissing one? ·

Fetch paginated vehicle listings for a given category. Returns up to 40 listings per page. Categories map to the site's main navigation sections. Pagination is page-number based; total_results reflects the category's full inventory size.

Input
ParamTypeDescription
pageintegerPage number for pagination.
categorystringVehicle category slug.
Response
{
  "type": "object",
  "fields": {
    "page": "integer - current page number",
    "category": "string - the requested category slug",
    "listings": "array of ListingSummary objects",
    "total_results": "integer - total number of listings in this category"
  },
  "sample": {
    "data": {
      "page": 1,
      "category": "cars",
      "listings": [
        {
          "url": "https://riyasewana.com/buy/suzuki-baleno-turbo-sale-kesbewa-11750331",
          "city": "Kesbewa",
          "year": "2016",
          "price": "Rs. 7,690,000",
          "title": "Suzuki Baleno Turbo 2016 Car",
          "mileage": "102,000 km",
          "thumbnail": "https://riyasewana.com/thumb/thumbsuzuki-baleno-413194010191.jpg",
          "date_posted": "Jun 7"
        }
      ],
      "total_results": 14985
    },
    "status": "success"
  }
}

About the Riyasewana API

Browse and Search Vehicle Listings

The get_listings endpoint returns up to 40 vehicles per page for eight category slugs: cars, suvs, vans, motorcycles, three-wheels, pickups, lorries, and heavy-d. Each listing in the response includes title, url, thumbnail, city, price, year, mileage, and date_posted, plus a total_results count for the full category. Paginate through results using the page parameter.

Filtered Search

search_vehicles accepts up to eight filter parameters simultaneously: make (e.g., Toyota, Honda), model (e.g., Prius, Alto), city (e.g., Colombo, Kandy), fuel (petrol, diesel, electric, hybrid), year_min, year_max, and price_max in LKR. The response mirrors the listings shape from get_listings and also returns a search_url field that encodes the resolved query, which you can use to anchor pagination across subsequent calls.

Full Listing Detail

get_listing_detail accepts any Riyasewana listing URL and returns the complete record: make, model, year, gear (transmission), price, options (comma-separated features), an images array of full-resolution URLs, and a contact field for the seller's phone number. Note that contact may be empty for some listings — the phone number is not guaranteed to be present in all cases.

Coverage Notes

All prices are denominated in LKR (Sri Lankan Rupees). The API covers the publicly visible listings on Riyasewana without requiring account authentication. Category slugs and fuel type values are fixed enumerations; passing an unsupported value will return no results rather than an error.

Reliability & maintenanceVerified

The Riyasewana API is a managed, monitored endpoint for riyasewana.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when riyasewana.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official riyasewana.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a price-tracker that monitors LKR asking prices for a specific make/model combination over time using search_vehicles
  • Aggregate mileage and year distributions across the cars or suvs category to analyze the Sri Lankan used-car market
  • Pull full-resolution listing images via get_listing_detail to populate a vehicle comparison tool
  • Alert users when new motorcycles or three-wheelers appear in a target city by polling get_listings with the relevant category slug
  • Feed vehicle specs and options from get_listing_detail into an inventory database for a Sri Lankan dealership or broker
  • Filter by fuel type (electric or hybrid) across cities to research EV availability in the Sri Lankan market
  • Map listings geographically by extracting the city field from paginated get_listings results
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Riyasewana offer an official developer API?+
Riyasewana does not publish an official public developer API or documented data access program. This Parse API is the structured programmatic interface to that data.
What does the `search_vehicles` endpoint return that `get_listings` does not?+
search_vehicles supports cross-cutting filters — make, model, city, fuel type, year range, and price ceiling — that get_listings does not. It also returns a search_url field encoding the resolved query, which is useful for stable pagination. Both endpoints return the same listing fields: title, url, thumbnail, city, price, year, mileage, and date_posted.
Is the seller phone number always available in `get_listing_detail`?+
No. The contact field in get_listing_detail is populated when a phone number is accessible, but it may be empty. Some listings require a user interaction on the site to reveal the number, and in those cases the field will return an empty string.
Does the API cover commercial vehicles or only personal vehicles?+
Yes — the category parameter in get_listings includes lorries, pickups, and heavy-d alongside personal-vehicle categories like cars, suvs, and motorcycles. All eight category slugs are supported for paginated browsing.
Can I retrieve saved searches, user profiles, or dealer inventory pages?+
Not currently. The API covers public listing browsing via get_listings, filtered search via search_vehicles, and individual listing detail via get_listing_detail. User accounts, saved searches, and dealer profile pages are not exposed. You can fork this API on Parse and revise it to add an endpoint targeting dealer or seller profile pages.
Page content last updated . Spec covers 3 endpoints from riyasewana.com.
Related APIs in AutomotiveSee all →
cars.com API
Search for vehicles on Cars.com using filters like price, make, and model, then get detailed specifications and dealer inventory information for any listing you're interested in. Access comprehensive vehicle details including pricing, features, and dealer contact information all in one place.
carousell.com.my API
Search for used car listings on Carousell Malaysia and retrieve detailed information including pricing, mileage, vehicle specifications, condition, and seller details. Browse available inventory or look up comprehensive information on specific listings.
carsforsale.com API
Search vehicle listings and browse detailed car inventory by make, model, and trim to find the perfect vehicle on CarsForSale.com. Access comprehensive listing details including pricing, specifications, and availability all in one place.
carsales.com API
Search for cars on Carsales and retrieve detailed listings with technical specifications, makes, and models. Filter and browse available vehicles by make to find exactly what you're looking for.
autotrader.ca API
Search vehicle listings on AutoTrader.ca and retrieve detailed information including specifications, pricing, mileage, and seller contact details. Compare listings across makes, models, and locations to support vehicle research and purchasing decisions.
chileautos.cl API
Search car listings and get detailed vehicle information from Chile's largest auto marketplace, including brands, specifications, and pricing. Find your next vehicle by browsing available cars with complete details all in one place.
autotrader.co.za API
Search and access comprehensive vehicle listings from South Africa's AutoTrader with pricing, specifications, location details, and seller information. Get everything you need to compare cars and make informed purchasing decisions, though direct seller phone numbers aren't available due to security protections.
list.am API
Search and browse vehicles, parts, and accessories listings on the Armenian List.am marketplace, filter by category, view detailed listing information, and retrieve seller contact numbers. Access comprehensive vehicle catalogs with category filtering to find exactly what you're looking for.