How to reach Samara beach?
By daily public bus service direct from San Jose to Samara and return. It is quite rustic but very cheap, just $15. The trip takes about 4-5 hours. From the terminal you also will be picked up by the hotel car.
A taxi would bring you to Samara in about 4 hours with a cost of about $400. On request and for a minimum stay of one week, the hotel owner would pick you up in San Jose and bring you to Sámara for a covering cost of $180.
Also you can rent a car at the airport, where various companies are operating. It this case you would leave San Jose or the airport and go on the Panamerican Hayway, heading north to Nicaragua, or just follow signs pointing to Liberia. After about 2 hours drive, at Sardinal you turn off left on a sign indicating Puente de Amistad you follow to the town of Nicoya, and from there it is another 34 kilometers drive into Samara.