Can't use API anymore?

Discussion in 'Feeding' started by Dutch, Jun 16, 2022.

  1. Dutch

    Dutch Member

    Hello,

    Last week I could still read data using the API, today I noticed I suddenly only one airplane back, and that showed this data:
    "Id":"AD5B00","FlightNr":"NEEDFEED","Registration":"CONTACTADSBX"

    Did I miss anything? I also donated some money. And I do have a feeder running! It's called Dutchy. I am a bit confused, as there seem to be two now. Do I need to do something?
     
  2. James

    James Guest

  3. Dutch

    Dutch Member

    Thank you. I was not aware of that.
     
  4. jdubner

    jdubner Member

    > I was not aware of that.

    Neither was I. When I used the contact form, James helped me out with a pointer to the Version 2 API fields and an updated endpoint. The field documentation is not 100% accurate but it's close and I was able to (mostly) restore the functionality I had in Version 1.

    What I'd really like to have is the 'wtc' (Wake Turbulence Category) field from Version 1. I need it to filter out all the airliners, of which I have no interest.

    Is there any more endpoint documentation? V1 had endpoints that did various filtering.

    Thanks,
    Joe
     
  5. James

    James Guest

    VRS style data is not coming back.

    You will want A1 for light aircraft < 15,500 lbs.


    https://www.adsbexchange.com/version-2-api-wip/
    • category: emitter category to identify particular aircraft or vehicle classes (values A0 – D7) (2.2.3.2.5.2)


      Code:
      {
          "hex": "abaf30",
          "type": "adsb_icao",
          "flight": "VAR452  ",
          "r": "N852EF",
          "t": "SR20",
          "alt_baro": 2700,
          "alt_geom": 2575,
          "gs": 127.9,
          "track": 58.42,
          "baro_rate": -640,
          "geom_rate": -960,
          "squawk": "1200",
          "emergency": "none",
          "category": "A1",
          "nav_qnh": 1008.8,
          "nav_altitude_mcp": 5888,
          "lat": 32.920715,
          "lon": -111.836646,
          "nic": 9,
          "rc": 75,
          "seen_pos": 0.332,
          "version": 2,
          "nic_baro": 1,
          "nac_p": 10,
          "nac_v": 2,
          "sil": 3,
          "sil_type": "perhour",
          "gva": 2,
          "sda": 2,
          "alert": 0,
          "spi": 0,
          "mlat": [],
          "tisb": ["geom_rate"],
          "messages": 6927374,
          "seen": 0.2,
          "rssi": -25.0
      }
      
      
     
    Last edited by a moderator: Jun 20, 2022
  6. jdubner

    jdubner Member

    This is from DO-260B I presume? Can you point me to a PDF? Or documentation of those values?
     
  7. James

    James Guest

    Code:
    const (
        A0 AcCat = "A0" // No ADS-B emitter category information
        A1 AcCat = "A1" // Light (< 15500 lbs)
        A2 AcCat = "A2" // Small (15500 to 75000 lbs)
        A3 AcCat = "A3" // Large (75000 to 300000 lbs)
        A4 AcCat = "A4" // High vortex large (aircraft such as B-757)
        A5 AcCat = "A5" // Heavy (> 300000 lbs)
        A6 AcCat = "A6" // High performance (> 5g acceleration and 400 kts)
        A7 AcCat = "A7" // Rotorcraft
    
        B0 AcCat = "B0" // No ADS-B emitter category information
        B1 AcCat = "B1" // Glider / sailplane
        B2 AcCat = "B2" // Lighter-than-air
        B3 AcCat = "B3" // Parachutist / skydiver
        B4 AcCat = "B4" // Ultralight / hang-glider / paraglider
        B5 AcCat = "B5" // Reserved
        B6 AcCat = "B6" // Unmanned aerial vehicle
        B7 AcCat = "B7" // Space / trans-atmospheric vehicle
        C0 AcCat = "C0" // No ADS-B emitter category information
        C1 AcCat = "C1" // Surface vehicle – emergency vehicle
        C2 AcCat = "C2" // Surface vehicle – service vehicle
        C3 AcCat = "C3" // Point obstacle (includes tethered balloons)
        C4 AcCat = "C4" // Cluster obstacle
        C5 AcCat = "C5" // Line obstacle
        C6 AcCat = "C6" // Reserved
        C7 AcCat = "C7" // Reserved
    )
    
    
     
    Last edited by a moderator: Jun 20, 2022
  8. James

    James Guest

    • ICAO WTC L (Light) is equivalent to ADS-B (TC=4, CA=1) or A1
    • ICAO WTC M (Medium) is equivalent to ADS-B (TC=4, CA=2 or CA=3) or A2 and A3.
    • ICAO WTC H (Heavy) or J (Super) is equivalent to ADS-B (TC=4, CA=5) or A4 and A5
     
  9. jdubner

    jdubner Member

    Great! That will work for me. Thanks.
     
  10. Dutch

    Dutch Member

    James helped me out as well. All my apps are running again.