Travel
Afar logo

Afar API

afar.com

Travel destination guides, articles, and curated itineraries.

Actions
6
Category
Travel
Login
Not required
Output
JSON

Call the Afar API

Submit a task, then poll the job until it settles. This example runs act_afar_destination_guide_ssr_country.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_afar_destination_guide_ssr_country",
    "params": {
      "country_slug": "united-states"
    }
  }'

6 actions on afar.com

Read

  • Country Destination Guide

    act_afar_destination_guide_ssr_countryread1 credit / call

    Returns a country travel guide with overview and links to its regions.

    country_slug
    string · required
  • Homepage

    act_afar_homepage_ssrread1 credit / call

    Returns the homepage with featured travel articles and their links.

  • Journey Itinerary Details

    act_afar_journey_itinerary_detailread1 credit / call

    Returns a curated journey itinerary with headline, body, and day-by-day plan.

    journey_slug
    string · required
  • Journeys Listing

    act_afar_journeys_listing_ssrread1 credit / call

    Returns curated travel itineraries with titles, descriptions, categories, and dates.

  • Region Destination Guide

    act_afar_destination_guide_ssr_regionread1 credit / call

    Returns a region travel guide with headline, overview, and linked articles.

    country_slug
    string · required
    region_slug
    string · required
  • Travel Article

    act_afar_travel_article_ssrread1 credit / call

    Returns a full travel article or hotel review with headline and body.

    article_slug
    string · required

Afar API questions

Is there an API for Afar?
Afar does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for afar.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Afar data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when afar.com changes its markup, Anakin updates the action.
Do I need a Afar account?
No. Every Afar action listed here runs anonymously — no account and no credentials required.
What does the Afar API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Travel APIs

All Travel sites