Logo

API-Documentation

General Information

With the API you can make use of many functions of escort data. Administrative functions are not ported.

To use the API you must first log in using the login function.

All responses have a status code and a status message. When here is mentioned "No response Data" this means no payload data.

Base Methods

The base functions can be accessed via /api/ path.

login

Logs the given user in when password is correct. A session will be created and filled with user data.

  • Method: POST
  • Parameters:
    • username
      String with username to login
    • password
      String with corresponding password
  • Response:
    • No response data

logout

Logs the actual user out and destroys the session.

  • Method: GET
  • Parameters:
    • None
  • Response:
    • No response data

Client Database

The base functions can be accessed via /api/number/ path.

search

Searches for numbers with the given part

  • Method: GET
  • Parameters:
    • number
      String with a complete number or part of it. Wildcards will be added automatically
  • Response:
    • numbered array with the found numbers
      • number
        complete found number
      • dateadded
        date when the number was added to database
      • dateedited
        last update date
      • rating
        float value of the user ratings (0.00 - 1.00)

Example:

https://escortdata.net/api/number/search/49123456


open

Opens a number entry

  • Method: GET
  • Parameters:
    • number
      String with a complete number to open
  • Response:
    • number
      complete found number
    • dateadded
      date when the number was added to database
    • dateedited
      last update date
    • uidupdated
      User-ID who made last update
    • uidinserted
      Uder-ID who inserted the entry
    • commentcount
      count of comments
    • likecount
      Count of likes
    • taboocount
      Count of taboos
    • tagcount
      Count of tags
    • rating
      float value of the user ratings (0.00 - 1.00)
    • rating_perc
      integer value of the user ratings
    • age
      from users guessed age
    • taboos
      numbered array with taboos of the Client
      • sid
        ID of the service
      • service
        title of the service
    • likes
      numbered array with likes of the Client
      • sid
        ID of the service
      • service
        title of the service
    • tags
      numbered array with Tags
      • tid
        ID of the tag
      • tag
        title of the tag
      • ident
        long text of the tag
      • image
        name of the corresponding symbol
    • comments
      numbered array with the comments
      • cid
        Number of the comment
      • title
        title of the comment
      • comment
        The complete text f the comment
      • rating
        single rating of the commentator (-1, 0, 1)
      • dateadded
        Date on which the comment was added
      • username
        Username of the commentator
    • mynote
      array with the personal note
      • noid
        Id of the note
      • uid
        User-ID of who the note is (usually you)
      • number
        number to which the note belongs
      • note
        Text of the note
      • isnew
        Boolean (1/0) if the note is new
    • favorite
      Boolean if this number is in your favorite list

Example:

https://escortdata.net/api/number/open/99123456789


favorite

Toggles favorite status of a number

  • Method: GET
  • Parameters:
    • number
      String with a complete number
  • Response:
    • No response data

Example:

https://escortdata.net/api/number/favorite/99123456789