{"name":"Busonlineticket.com Bus Tickets API","description":"Bus Tickets on Busonlineticket.com, as its pages list them.","api_id":"generated_37f132c9f1d453cef0e7a748","slug":"busonlineticket-com-bus-tickets-api","source":{"name":"Busonlineticket","domain":"busonlineticket.com","url":"https://www.busonlineticket.com/"},"category":null,"countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-12-03","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-12-02T15:32:22.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_37f132c9f1d453cef0e7a748_search","name":"List Busonlineticket.com Bus Tickets","description":"Return records within the accepted scope.","definition_version":"04585b42ae90243b2b3f9071108c37b39ade3e7db147156bde3f8cc636283dc9","method":"POST","path":"/v1/catalog/public/apis/generated_37f132c9f1d453cef0e7a748/endpoints/generated_37f132c9f1d453cef0e7a748_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_37f132c9f1d453cef0e7a748/endpoints/generated_37f132c9f1d453cef0e7a748_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"enrich_records":{"type":"boolean","default":true,"description":"true: read each returned record's product/detail page and merge its fields into the record. false: return list/search-level fields only, with no detail page reads. Every returned record's detail page is read within the run's time budget; records the time budget leaves unread are returned without detail fields, and summary.record_enrichment reports how many records were enriched and why any were not (run_time_budget). Detail fields are optional."},"route":{"x-enum-labels":["kuala-lumpur-to-penang-bus-tickets.aspx","kuala-lumpur-to-penang-sentral-bus-tickets"],"x-value-status":["observed","verified"],"x-source-key":"route","type":"string","pattern":"^[A-Za-z0-9][A-Za-z\\-\\._0-9]{0,127}$","minLength":1,"maxLength":128,"examples":["kuala-lumpur-to-penang-bus-tickets.aspx","kuala-lumpur-to-penang-sentral-bus-tickets"],"x-open-values":true,"description":"Optional. The name of a page of the same kind as the pages the pasted one links (any name that fits the pattern; the examples are the names it links). The site decides: a name it does not serve is refused as input_value_unverified. Omitted: kuala-lumpur-to-penang-bus-tickets.aspx, the value of the page this API was built from.","not":{"type":"string","pattern":"\\n"},"x-source-route":"path_segment","x-input-type":{"kind":"string"},"default":"kuala-lumpur-to-penang-bus-tickets.aspx","x-default-basis":"build_page"},"from_url":{"type":"string","format":"uri","description":"Optional. A results link copied from the site (its own address bar): a category page, a search or a filtered list. It is read as this API's own inputs and the run echoes them as `decoded`. Tracking and paging keys are dropped. A link from another site, or one that names a page or filter this API has no input for, is refused with the unread parts listed; it is never served from another page.","x-from-url":{"origin":"https://www.busonlineticket.com"}}},"required":[],"additionalProperties":false},"output_schema":{"type":"object","additionalProperties":true,"properties":{"seats_available":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string","format":"uri"},"description":{"type":"string"},"image":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string"}}}},"url":{"type":"string"},"media":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","array"],"items":{"type":"string"}}},"description":"media"}},"additionalProperties":false},"rating":{"type":["number","string"],"description":"Rating"},"popular":{"type":"object","properties":{"terminals":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","array"],"items":{"type":"string"}}},"description":"popular bus terminals"},"routes":{"type":"string"},"other_bus_route":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","array"],"items":{"type":"string"}}},"description":"other popular bus route"},"other_bus_routes":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","boolean","array"],"items":{"type":"string"}}},"description":"other popular bus routes"},"terminal_list":{"type":"string"},"other_routes":{"type":"string"}},"additionalProperties":false},"dates":{"type":"object","properties":{"modified":{"type":"string","description":"date modified"},"published":{"type":"string","description":"date published"}},"additionalProperties":false},"other_details":{"type":"object","additionalProperties":{"type":["object","array"],"additionalProperties":{"type":["string","boolean"]},"items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}}}}},"full_description":{"type":"string"}},"required":["title","url"]},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-12-02T15:32:22.398Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"dates":{"modified":"2026-09-21T07:33:22+00:00","published":"2019-04-18T03:41:01+00:00"},"image":{"url":"https://cdn.busonlineticket.com/vehicle-images/aerobus-1.jpg"},"popular":{"other_routes":"Kuala Lumpur to KLIA2 >","routes":"KLIA to Genting Highlands >","terminal_list":"Awana Bus Terminal, Genting Highlands >"},"description":"Aerobus was established in 2007 and has grown into a familiar express bus operator serving airport, city and leisure travel routes in Malaysia. The operator is known for its focus on the 3C concept, which stands for cheap, convenient and comfort. With services connecting important destinations such as KLIA, KLIA2, Genting Highlands, KL Sentral, Ipoh and Butterworth, Aerobus is suitable for passengers looking for practical and convenient bus travel options.","full_description":"Aerobus was established in 2007 and has grown into a familiar express bus operator serving airport, city and leisure travel routes in Malaysia. The operator is known for its focus on the 3C concept, which stands for cheap, convenient and comfort. With services connecting important destinations such as KLIA, KLIA2, Genting Highlands, KL Sentral, Ipoh and Butterworth, Aerobus is suitable for passengers looking for practical and convenient bus travel options.\nAerobus provides useful routes for travellers heading to Genting Highlands directly from the airport, as well as passengers travelling between city terminals and northern destinations. Its services are especially convenient for tourists, airport passengers and regular travellers who want an easier way to connect between major transport hubs.","rating":"(655 votes)","seats_available":14,"title":"Aerobus","url":"https://www.busonlineticket.com/bus/aerobus/"},{"dates":{"modified":"2025-12-09T03:13:58+00:00","published":"2019-04-18T03:34:30+00:00"},"rating":"(266 votes)","seats_available":20,"title":"Alisan Golden Coach","url":"https://www.busonlineticket.com/bus/alisan-golden-coach-express/"}]}],"request_example":{"body":{"input":{},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_37f132c9f1d453cef0e7a748/endpoints/generated_37f132c9f1d453cef0e7a748_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {},\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_37f132c9f1d453cef0e7a748/endpoints/generated_37f132c9f1d453cef0e7a748_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/busonlineticket-com-bus-tickets-api/","markdown":"https://cleanedweb.com/catalog/busonlineticket-com-bus-tickets-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_37f132c9f1d453cef0e7a748/endpoints/generated_37f132c9f1d453cef0e7a748_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/busonlineticket-com-bus-tickets-api/","markdown":"https://cleanedweb.com/catalog/busonlineticket-com-bus-tickets-api/index.md","contract":"https://cleanedweb.com/catalog/busonlineticket-com-bus-tickets-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
