Skånegy API


Gymnasiet + JSON = Sant

Här får du tillgång till gymnasieskolor och gymnasieprogram i Skåne och västra Blekinge.


API

Med Skånegys API kan du hämta alla skolor och program i Skåne och västra Blekinge.

APIet består utav tre endpoints. Ett index över alla skolor, detaljer för en enskild skola, och detaljer för ett enskilt program.

Endpoints

Ger dig ett index över alla skolor som finns i Skåne och västra Blekinge, med grundläggande information.

Varje skola har ett unikt ID och en url som leder dig till en endpoint som ger dig fullständig information om skolan.

URL http://api.skanegy.se/get/schools/
{
  status: {
    success: true,
    message: "",
    time: 0.439007997513
  },
  result: [
    {
      id: "297",
      name: "Nordenberg gymnasiskola - Olofström",
      detailsUrl: "http://api.skanegy.se/get/schools/297"
    },
    {
      id: "298",
      name: "Gymnasieskolan Knut Hahn ",
      detailsUrl: "http://api.skanegy.se/get/schools/298"
    },
    {
      id: "299",
      name: "Blekinge Naturbruksgymnasiet - Ronneby",
      detailsUrl: "http://api.skanegy.se/get/schools/299"
    },
  ]
}
           

Ger dig fullständig information om skolan.

Här får du endast grundläggande information om skolans program, men precis som för skolindexet så får du en url som leder dig till en endpoint med fullständig information om programmet.

URLhttp://api.skanegy.se/get/schools/906
{
  status: {
    success: true,
    message: "",
    time: 0.485163927078
  },
  result: {
    id: "906",
    name: "Malenagymnasiet",
    municipality: "Sjöbo",
    addresses: [
      {
        address1: "Verkstadsgatan 2A",
        address2: "",
        postalCode: "275 39",
        city: "Sjöbo",
        country: "SE"
      }
    ],
    phone: "0416-27051",
    email: "info@sydgym.se",
    website: "www.sydgym.se",
    contactPersons: [
      {
        id: "922",
        name: " Lars-Bruno Gustafsson",
        title: "studie- och yrkesvägledare",
        phone: "0416-27053",
        email: "lars-bruno.gustafsson@sydgym.se"
      }
    ],
    openHouses: [
      {
        id: "913",
        startTime: "2012-11-14T17:00:00+01:00",
        endTime: "2012-11-14T19:00:00+01:00",
        address1: "Verkstadsgatan 2A",
        address2: "",
        postalCode: "275 39",
        city: "Sjöbo"
      },
      {
        id: "914",
        startTime: "2013-01-15T17:00:00+01:00",
        endTime: "2013-01-15T19:00:00+01:00",
        address1: "Verkstadsgatan 2A",
        address2: "",
        postalCode: "275 39",
        city: "Sjöbo"
      }
    ],
    programs: [
      {
        id: "1056",
        name: "Hotell- och turismprogrammet",
        detailsUrl: "http://api.skanegy.se/get/programs/1056"
      },
      {
        id: "1057",
        name: "Hotell- och turismprogrammet",
        detailsUrl: "http://api.skanegy.se/get/programs/1057"
      },
      {
        id: "1058",
        name: "Fordons- och transportprogrammet",
        detailsUrl: "http://api.skanegy.se/get/programs/1058"
      },
      {
        id: "1059",
        name: "Bygg- och anläggningsprogrammet",
        detailsUrl: "http://api.skanegy.se/get/programs/1059"
      }
    ]
  }
}
           

Ger dig fullständig information om ett program.

Här finner du även alla sporter, musikinstrument och moderna språk som kan kombineras med programmet. Du får även en url som leder tillbaka till endpointen för skolan som programmet tillhör.

URLhttp://api.skanegy.se/get/programs/1100
{
 status: {
   success: true,
   message: "",
   time: 0.888831138611
 },
 result: {
   id: "1100",
   type: {
     id: "220",
     name: "Nationella program"
   },
   subType: null,
   program: {
     id: "231",
     name: "Ekonomiprogrammet"
   },
   orientation: {
     id: "232",
     name: "Ekonomi"
   },
   profile: "",
   variant: "",
   focus: "",
   apprentice: false,
   musicOptions: [],
   sports: [
     [],
     {
       sport: {
         id: "1692-367-nationallySportEducation",
         name: "Basket",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1693-368-nationallySportEducation",
         name: "Bordtennis",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1694-369-nationallySportEducation",
         name: "Brottning",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1695-370-sportSpecialization",
         name: "Fotboll",
         type: "sportSpecialization"
       }
     },
     {
       sport: {
         id: "1695-370-nationallySportEducation",
         name: "Fotboll",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1696-364-nationallySportEducation",
         name: "Friidrott",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1697-365-sportSpecialization",
         name: "Golf",
         type: "sportSpecialization"
       }
     },
     {
       sport: {
         id: "1697-365-nationalRecruitingSportEducation",
         name: "Golf",
         type: "nationalRecruitingSportEducation"
       }
     },
     {
       sport: {
         id: "1698-373-nationallySportEducation",
         name: "Handboll",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1699-375-nationallySportEducation",
         name: "Innebandy",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1700-378-nationallySportEducation",
         name: "Konståkning",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1701-380-sportSpecialization",
         name: "Ridsport",
         type: "sportSpecialization"
       }
     },
     {
       sport: {
         id: "1702-366-sportSpecialization",
         name: "Tennis",
         type: "sportSpecialization"
       }
     },
     {
       sport: {
         id: "1703-383-nationallySportEducation",
         name: "Simning",
         type: "nationallySportEducation"
       }
     },
     {
       sport: {
         id: "1704-400-nationallySportEducation",
         name: "Truppgymnastik",
         type: "nationallySportEducation"
       }
     }
   ],
   modernLanguages: [
     {
       code: "fre",
       language: "Franska",
       steps: [
         "1",
         "2",
         "3"
       ]
     },
     {
       code: "spa",
       language: "Spanska",
       steps: [
         "1",
         "2",
         "3"
       ]
     },
     {
       code: "ger",
       language: "Tyska",
       steps: [
         "1",
         "2",
         "3"
       ]
     },
     {
       code: "ara",
       language: "Arabiska",
       steps: [
         "3"
       ]
     }
   ],
   school: {
     id: "398",
     name: "Filbornaskolan",
     detailsUrl: "http://api.skanegy.se/get/schools/398"
   }
 }
}
           

Licens

Skånegy API är licensierat under CC-BY (Creative Commons Attribution 2.0 Generic License).