Feed to JSON API

Feed to JSON API / XML Converter in JSON documentation


Basic information

This service is a kind of API for quickly and easily converting an RSS feed to JSON.

Works with any XML format ;)


Token and service authentication

You need to be logged in user before you can use the service.

We simplified the login / registration in the easiest way possible. Only you need to sign in with your Google / Gmail account to continue. After logging into the token field (below) you will be able to use your personal token on PHP.mk services.

Personal Token

Login to show token!


Using the Service v1.0

Version ({version}): v1.0

Link to RSS feed ({url}): ?url= e.g. "https://doktori.mk/feed/" * for WordPress sites just add "/ feed" as a suffix

service end-point



Example HTTP/GET request


Example PHP

$response= json_decode($jsonResponse,true);
echo '<pre>';

Example cUrl

curl -X GET  'https://api.php.mk/feed2json/v1.0?token=&url=https://doktori.mk/feed/';

Example Javascript

var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    var response_data=JSON.parse(this.responseText).data;
xhr.open("GET", "https://api.php.mk/feed2json/v1.0?token=&url=https://doktori.mk/feed/");

Пример jQuery / JavaScript







Service response

The answer is always in JSON format

The response from the service contains the content and the same structure of the XML translated into JSON format.

Example response

    "error": false,
    "status_text": "OK",
    "status_code": 200,
    "data": {
        "_attributes": {
            "version": "2.0",
            "content": "http://purl.org/rss/1.0/modules/content/",
            "wfw": "http://wellformedweb.org/CommentAPI/",
            "dc": "http://purl.org/dc/elements/1.1/",
            "atom": "http://www.w3.org/2005/Atom",
            "sy": "http://purl.org/rss/1.0/modules/syndication/",
            "slash": "http://purl.org/rss/1.0/modules/slash/"
        "channel": {
            "title": "Доктори",
            "atom_link": {
                "_attributes": {
                    "href": "https://doktori.mk/feed/",
                    "rel": "self",
                    "type": "application/rss+xml"
            "link": "https://doktori.mk",
            "description": "doktori.com.mk",
            "lastBuildDate": "Sat, 09 Feb 2019 11:45:01 +0000",
            "language": "en-US",
            "sy_updatePeriod": "hourly",
            "sy_updateFrequency": "1",
            "generator": "https://wordpress.org/?v=4.9.9",
            "image": {
                "url": "https://doktori.mk/wp-content/uploads/2018/12/dok-150x150.jpg",
                "title": "Доктори",
                "link": "https://doktori.mk",
                "width": "32",
                "height": "32"
            "item": [
                    "title": "Како да се постигне здрава и урамнотежена цревна микрофлора",
                    "link": "https://doktori.mk/2019/02/09/kako-da-se-postigne-zdrava-i-uramnotezhena-tsrevna-mikroflora/",
                    "comments": "https://doktori.mk/2019/02/09/kako-da-se-postigne-zdrava-i-uramnotezhena-tsrevna-mikroflora/#respond",
                    "pubDate": "Sat, 09 Feb 2019 11:08:42 +0000",
                    "dc_creator": "М-р Филип Ачкоски",
                    "category": [
                        "Дигестивен систем",
                        "Витамин Б6",
                        "екстракт од лист од нане",
                        "млечнокиселински бактерии",
                        "цвет од камилица",
                        "цревна флора",
                    "guid": "https://doktori.com.mk/?p=2463"...