API

We offer you our database of over 31 300 different webpages.

What is this API for?

Our API allows you to access data on the webpages of your choice. You can use it to realize for example lists of sites, comparatives. You will be able to access the titles, descriptions, favicons and many other data of them.

Prix

Starter - 0€

  • 1 000 requests per day
  • Access to this data:
    • Title
    • Description
    • Favicon URL
  • One language
Try now

Premium

  • 100 000 requests per day
  • Access to this data:
    • Title
    • Description
    • Favicon URL
    • SaneSearch Index
    • Quality Score
    • Dates of the first and the last crawl
  • All languages supported by Swiftea
Coming soon

How to use the Starter API?

Step 1

Call this URL https://swiftea.yo.fr/api.php?url= with your URL in parameter.

For example:
https://swiftea.yo.fr/api.php?url=https://fr.yahoo.com

Step 2

You will then retrieve a response in JSON format that you can use in your preferred language.

For example:

{"title":"Yahoo","description":"Actualit\u00e9s, mails et recherche... Ce n\u2019est que le d\u00e9but ! \u00c0 chaque jour sa nouvelle d\u00e9couverte... Explorez de nouveaux horizons.","favicon":"https:\/\/mbp.yimg.com\/sy\/rz\/l\/favicon.ico"}

Step 3

You just have to parse this answer in order to make it a usable variable in the language of your choice.

For example in PHP:

$json = file_get_contents('https://swiftea.yo.fr/api.php?url=https://fr.yahoo.com');
$obj = json_decode($json);
$title = $obj->title;